Web Search API reference
Search the live web and get ranked results with summaries, dates and authority.
The Web Search API has 1 endpoint, called the same way: POST /execute with the endpoint ID as capability and its fields as input, or pin Web Search in the MCP server and call each one as a tool. The data comes back as JSON in results[0].data, with what the call cost in billing.credits_charged.
Every endpoint costs 2 credits per call, and a failed call costs nothing.
Endpoints
Open an endpoint for its input, the fields it returns and the request in cURL, Python and Node.js.
| Endpoint | What it returns | Price |
|---|---|---|
web.search |
Return ranked web results (title, URL, snippet, summary, date, authority) for a query, with language, freshness and include or exclude domain filters. | 2 credits |
What to know
- Returns up to 50 results per call from a live web index.
- No country targeting; use language, freshness and include/exclude domains.
- It does not read the result pages; web.markdown does that.
Something missing or unclear? Ask the team that builds the Web Search endpoints.