{"uid":"cap_ZrWevd6BHFhae9XzUrFoc","slug":"agent402-tools-search-autocomplete-94b8034c","name":"agent402.tools Search Autocomplete","description":"Search autocomplete: query suggestions for a partial input as a flat JSON array. Useful for query expansion, did-you-mean refinement, and topic exploration. Returns up to 20 suggestions.","url":"https://agent402.tools/api/search-suggest","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Partial query (max 400 chars)"},"count":{"type":"number","description":"Suggestions to return, 1-20 (default 5)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["query","count","suggestions"],"properties":{"count":{"type":"integer"},"query":{"type":"string"},"suggestions":{"type":"array","items":{"type":"string"}}}}}}}},"responseSchema":{"type":"json","example":{"count":5,"query":"agent4","suggestions":["agent402","agent4 mexico","agent4 movie","agent4you","agent 47"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Xh1GtcAOVvHfaP8wRI8Ri","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns up to 20 query suggestions for a partial text input as a flat JSON array, useful for query expansion and topic exploration.","exampleAgentPrompt":"Can you give me 10 autocomplete suggestions for the partial search query 'climate cha' so I can see what related topics people search for?","exampleUseCases":null,"resultDescription":"A flat JSON array of up to 20 string suggestions that complete or relate to the partial input query, suitable for query expansion, did-you-mean refinement, or topic exploration.","failureModes":["Missing required 'q' parameter returns an error","Query exceeding 400 characters is rejected","Count parameter outside 1-20 range may return default of 5 suggestions","Empty or whitespace-only query may return empty array","Network or service unavailability returns HTTP error"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast query suggestion or autocomplete functionality without spinning up a full search engine. Ideal for query expansion pipelines, building search UIs, did-you-mean features, or exploring related topics from a seed term. Prefer this over a full-text search endpoint when you only need suggestion strings, not actual search results or ranked documents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:01:47.360Z","isFirstParty":false}