- Search: send a query, get structured web search results (title, link, summaries, optional page body)
- Fetch: send a public web page URL to attempt to extract usable content as Markdown
deepseek-search, deepseek-fetch. Endpoints: POST /v1/tools/search, POST /v1/tools/fetch. Available in the default / svip groups.
The capability matrix comes from APIYI testing on October 21, 2026 (UTC+8). Error handling guidance incorporates investigation and retesting on October 30, 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 - Reconcile successfully billed calls in the console by model name,
deepseek-searchordeepseek-fetch. Some parameter errors or fetch failures may not appear in billing logs; a missing entry does not prove that no request was sent
Quick start
model field; if you send one it is ignored.
Request parameters
Search: POST /v1/tools/search
query exceeds 128 characters, the API returns 400 with 'query' must be at most 128 characters. Shorten the keywords or split them into separate searches; retrying the unchanged request will not fix the length error. ori_question also has a 128-character limit.
Search operators (inside 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
Distinguish page retrieval failures from service errors
Distinguish page retrieval failures from service errors
404 failed to fetch URL means Fetch did not obtain usable content from the URL. It does not necessarily mean the page is missing or the API endpoint does not exist.
A missing page, nonexistent domain, private address or refusal by the target site can produce this error; the message alone does not establish why a particular URL failed.
Retrieval depends on both the target page and the fetch service. A page opening in a browser does not guarantee Fetch can retrieve it. Internal service errors or timeouts can also return 500 / 504, so failures are not limited to 404.shell_api_error alone does not identify the cause. Use the HTTP status code plus message:- 400: fix the parameters before retrying; shorten or split queries that exceed the length limit.
- 404: keep the existing search results and try another URL or reading method instead of repeatedly retrying the same link.
- 429 / 500 / 504: wait and retry a limited number of times, increasing the delay each time. If failures persist, stop retrying and report the error details.
- 503 with
no available channels: check the key’s group and whether the API is enabled; retrying unchanged requests will not fix the configuration.
Does a client suggestion to change the endpoint mean I must change it?
Does a client suggestion to change the endpoint mean I must change it?
WEB_PROVIDER_ERROR is a client error wrapper and does not identify the root cause. Some DeepSeek Harness versions append generic endpoint configuration advice after API errors.
Check the actual request path, HTTP status code and original message. The full paths for Search / Fetch are /v1/tools/search and /v1/tools/fetch.
If the same endpoint has successful calls and only some URLs return failed to fetch URL, investigate the target URLs first. Do not change the Base URL solely because of generic advice.Why is an error missing from the console logs?
Why is an error missing from the console logs?
Authorization header.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.