{"uid":"cap_CfKyMN5AKEeCJgTjAAT7c","slug":"weblens-search-autocomplete-96cd74c1","name":"WebLens Search Autocomplete","description":"Google Autocomplete suggestions for a partial query. Useful for keyword research and intent discovery.","url":"https://api.weblens.dev/search/autocomplete?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"limit":{"type":"number","default":10,"example":10,"maximum":20,"minimum":1,"description":"Maximum results to return"},"query":{"type":"string","example":"x402 payment protocol","maxLength":500,"minLength":1,"description":"Search query"}}},"responseSchema":{"type":"json","example":{"query":"how to deploy cloudf","requestId":"req_auto123","searchedAt":"2026-07-25T12:00:00.000Z","suggestions":["how to deploy cloudflare workers","how to deploy cloudflare pages"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PdHvfcj6k8EWjXuNdvC8b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns AI-powered search query suggestions/completions given a partial query string","exampleAgentPrompt":"Can you autocomplete this partial search query for me — 'how to deploy cloudf' — and give me the top suggestions for what people are actually searching for?","exampleUseCases":[{"title":"Typeahead search box suggestions","prompt":"I'm building a search bar and the user just typed 'best python libr' — can you fetch autocomplete suggestions so I can show them a dropdown of likely full queries?"},{"title":"Research query expansion","prompt":"I want to research 'machine learning for med' but I'm not sure of the best phrasing — can you autocomplete that and show me what full queries people typically search for?"},{"title":"SEO keyword discovery","prompt":"I'm doing keyword research and I have the partial phrase 'how to start an e' — can you run autocomplete on that and tell me what complete search queries come back?"}],"resultDescription":"A JSON object containing the original partial query, a unique request ID, the timestamp of the search, and an array of suggested full query strings that complete the input prefix.","failureModes":["Empty or too-short query string returns no suggestions or an error","Network timeout if the upstream search intelligence layer is slow","Invalid or malformed POST body returns a 400 error","x402 payment failure or insufficient USDC balance results in a 402 payment required response","Rate limiting if too many requests are made in a short window"],"whenToPreferThis":"Choose this endpoint when you need real-time, AI-powered query completion for a partial search string — especially useful for building typeahead/autocomplete UI components, expanding research queries, or discovering how users phrase searches. Prefer this over a full web search endpoint when you only need suggestion strings, not full page results, and want a lightweight, low-cost call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T06:39:17.923Z","isFirstParty":false,"canonicalSlug":"weblens-search-autocomplete-96cd74c1"}