{"uid":"cap_CfKyMN5AKEeCJgTjAAT7c","slug":"weblens-search-autocomplete-96cd74c1","name":"WebLens Search Autocomplete","description":"# WebLens - Web Intelligence API, pay per call\n\nScrape, crawl, map and extract the web. No account, no API key, no monthly\nminimum — you pay for the calls you make and nothing else.\n\n## Pricing\nPage fetching starts at **$0.002**, whole-site crawling at\n**$0.0015/page**, and sitemap discovery at **$0.004**.\nComparable services bill $0.007-0.008 per request, or reach a lower per-page\nrate only on a $99/month commitment. WebLens has no commitment to reach.\n\n## Payment Protocol\nAll paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native\nmicropayments (USDC on Base).\n\n## Cache Discount\nCached responses are **70% cheaper** than fresh fetches.","url":"https://api.weblens.dev/search/autocomplete?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"limit":{"type":"number","maximum":20,"description":"Max results (default 10, max 20)"},"query":{"type":"string","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.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PdHvfcj6k8EWjXuNdvC8b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","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-10-10T06:38:12.171Z","isFirstParty":false,"canonicalSlug":"weblens-search-autocomplete-96cd74c1"}