- Search: send a query, get structured web search results (title, link, summaries, optional page body)
- Fetch: send a URL, get the page body already converted to Markdown
deepseek-search, deepseek-fetch. Endpoints: POST /v1/tools/search, POST /v1/tools/fetch. Available in the default / svip groups.
All data on this page comes from APIYI testing on October 21, 2026 (UTC+8).What it is and when to use it
summary is enough for a model to judge relevance, so only fetch the pages you need in full.
How this relates to built-in search in Claude Code
This page is a plain API: your code calls/v1/tools/search and /v1/tools/fetch directly.
In clients such as Claude Code and Codex, web searches started by the model go through a server-side tool (web_search) inside the chat API, which is a different thing. APIYI will support built-in search for DeepSeek models in those clients in a later release and will announce it separately.
Pricing
- Only successful requests are billed: HTTP 200 with a result
- Parameter errors (400) and fetch failures (404) are not billed
- The price does not depend on
count,need_contentor response length: 1 result or 50 results with page bodies is still one request - Each call is its own row in the console logs, under the model name
deepseek-searchordeepseek-fetch, so you can reconcile by model
Quick start
model field; if you send one it is ignored.
Request parameters
Search: POST /v1/tools/search
query):
Fetch: POST /v1/tools/fetch
Response fields
Search returns{"results": [...]}; each result has:
{"title": "...", "content": "..."}, where content is the Markdown body.
Test results
Tested on 2026-10-21 (UTC+8):Things you need to know
"No results, no charge" rarely applies
"No results, no charge" rarely applies
Every fetch failure is a 404; branch on the HTTP status code
Every fetch failure is a 404; branch on the HTTP status code
failed to fetch URL, whether the target page is 404, the domain does not exist, the address is private, or the site refused access.
The type field in the error body is always shell_api_error, so use the HTTP status code plus message to tell errors apart:
on 400 fix the parameters; on 404 try another URL; on 429 / 5xx wait and retry.Results are raw third-party web content; treat them as untrusted input
Results are raw third-party web content; treat them as untrusted input
Rate limits
Rate limits
FAQ
How is this different from OpenAI / Claude / Gemini web search?
How is this different from OpenAI / Claude / Gemini web search?
web_search is $10 per 1,000 calls).
This page is a standalone search API: your code decides when and what to search, the unit price is a small fraction of that, and the results can go to any model.
For built-in tools, see OpenAI Web Search, Claude Web Search and Gemini Web Search.Can I use it in Claude Code?
Can I use it in Claude Code?
How fresh are the results?
How fresh are the results?
date field, and you can use the after: operator to get only recent content. In testing, news published the same day showed up.