{"openapi":"3.0.3","info":{"title":"🔍 websearch","description":"Internet search, always fetched through a paid proxy obtained from proxy-pool -- every search genuinely consumes and pays for a real proxy, no direct/unproxied fallback.","x-guidance":"Internet search, always fetched through a paid proxy obtained from proxy-pool -- every search genuinely consumes and pays for a real proxy, no direct/unproxied fallback.","version":"1.0.0","contact":{"email":"contact@17711.xyz"}},"paths":{"/v1/websearch/search_web":{"post":{"operationId":"websearch_search_web","summary":"Web search API: searches the web through a proxy and returns result titles, URLs and snippets ($0.009, x402)","description":"Performs a real internet search, ALWAYS fetched through a proxy sourced from `proxy-pool` -- the proxy itself is a FREE PUBLIC proxy; the small fee this tool charges (and the smaller fee it itself pays `proxy-pool`) is for the selection/verification SERVICE, not for the proxy. Never a direct/unproxied request, by design. Reuses a proxy this service has itself recently proven to work, when one is available, before paying `proxy-pool` for a fresh pick. Retries up to 8 times, each attempt through a different proxy, since a single dead/blocked free proxy is common, and always resolves to real results -- a zero-result parse is itself treated as a failure and retried, never returned as a silent empty response. **Response time varies noticeably as a result**: a cached or already-proven-good proxy answers quickly, while a cold search that needs several retries against slow free proxies can take up to roughly two minutes -- a deliberate trade-off for reliability over a fast failure, not an inconsistency. A repeat of the exact same query is served from a short-lived in-process cache instead of paying for and re-fetching again. Returns up to 10 results (title/url/snippet, with redirect links decoded back to the real destination URL). Free for the first few calls, then a real x402 payment (a `402` response carrying a `PAYMENT-REQUIRED` challenge) is required to continue. Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.009 USDC per call.","x-price-usdc":"0.009","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.009000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"The search query text, e.g. `\"rust async runtime comparison\"`."}},"required":["query"]},"example":{"query":"string"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResultItem"}}},"required":["results"]},"example":{"results":[{"title":"string","url":"string","snippet":"string"}]}}}},"402":{"description":"Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired challenge","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"}}},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string","description":"Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}},"required":["x402Version","accepts"]}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}},"/v1/websearch/search_web_async":{"post":{"operationId":"websearch_search_web_async","summary":"Enqueues a websearch_search_web job and returns a task id immediately ($0.009, x402)","description":"Fire-and-forget sibling of `websearch_search_web`: enqueues the SAME search onto this service's task queue and returns a `task_id` immediately, without waiting for the search itself (which can legitimately take up to ~2 minutes worst-case against slow free proxies). Requires at least one instance of this service running with `PLATFORM_MODE=worker` to ever process the enqueued job. Poll `websearch_get_task_status` with the returned `task_id` for the eventual result, or set `callback_url` to have it POSTed there instead. Priced identically to `websearch_search_web` -- free for the first few calls, then a small x402 payment, same quota. Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.009 USDC per call.","x-price-usdc":"0.009","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.009000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"The search query text, e.g. `\"rust async runtime comparison\"`."},"callback_url":{"description":"When set, the worker that processes this task POSTs the eventual result (a `TaskResult` JSON body) here, best-effort -- polling `websearch_get_task_status` always works too, regardless of whether this is set.","type":["string","null"]}},"required":["query"]},"example":{"query":"string","callback_url":"string"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string"}},"required":["task_id"],"description":"The fixed response shape of every `*_async` tool -- deliberately NOT generic over the underlying sync tool's own response type, since no work has actually happened yet at this point."},"example":{"task_id":"string"}}}},"402":{"description":"Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired challenge","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"}}},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string","description":"Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}},"required":["x402Version","accepts"]}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}},"/v1/websearch/get_task_status":{"post":{"operationId":"websearch_get_task_status","summary":"Polls for the result of a task enqueued by a *_async tool","description":"Reads back the result of a task previously enqueued by `websearch_search_web_async` -- pure read, no search performed. `status` is one of `pending` (still queued/running), `finished` (see `ok`/`result`), or `unknown` (the id is invalid or has expired).","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"task_id":{"type":"string","description":"The `task_id` a `*_async` tool returned."}},"required":["task_id"]},"example":{"task_id":"string"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/TaskStatusKind"},"ok":{"type":["boolean","null"]},"result":true},"required":["status"]},"example":{"status":"pending","ok":false,"result":null}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}}},"servers":[{"url":"/registry/websearch"}],"components":{"schemas":{"SearchResultItem":{"type":"object","properties":{"title":{"type":"string"},"url":{"type":"string"},"snippet":{"type":"string"}},"required":["title","url","snippet"]},"TaskStatusKind":{"type":"string","enum":["pending","finished","unknown"],"description":"`\"pending\"` (enqueued, no result yet), `\"finished\"` (a worker wrote a result -- see `ok`/ `result`), or `\"unknown\"` (this id was never valid, or both it and its result have expired -- see [`nimpoleon_tasks::TaskState`]'s own doc comment for why this is 3 states, not 2)."}}}}