web_search
Retrieves real-time web search results for agents, including ranked titles, URLs, snippets and an optional synthesized answer, to support fresh-information queries.
Instructions
[Trading Data API] Real-time web search for agents: ranked results with title, URL, snippet and score, plus an optional synthesized answer. Pay per search; general or news topic.
Example: /v1/web-search?q=latest+ethereum+upgrade&max_results=5&topic=news
Use when an agent needs fresh web results with titles, URLs and snippets. Not for verifying a claim (use sanity_check with mode open).
Behavior: read-only. Priced via x402 (USDC on Base) or free with WICKEDAPI_API_KEY; with neither, you get HTTP 402 with the decoded price in payment_required (a price quote, not a failure).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Required. The search query (max 400 characters). | |
| topic | No | Optional. general (default) or news. | |
| max_results | No | Optional. 1-10 (default 5). | |
| include_answer | No | Optional. true (default) or false to skip the synthesized answer. |