Skip to main content
DeepSeek offers two standalone tool APIs for agents and RAG pipelines that need live web data:
  • 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
They are not chat models. They consume no tokens and are billed per successful request. Your code decides when and what to search, then feeds the results to any model.
Model names: 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).
Keys in the ClaudeCode group cannot call these two APIs. They return 503 no available channels for model deepseek-search. Create a separate key in the default or svip group.

What it is and when to use it

The usual pattern is Search first, then Fetch a few results: each result’s summary is enough for a model to judge relevance, so only fetch the pages you need in full.
Finding a page does not guarantee Fetch can retrieve it. Even when you set need_content=true in a Search request and the response contains content, a subsequent Fetch request for the same result URL can fail. Reuse available content first and check whether it is complete and sufficient for your question. If only summary / snippet is available, identify it as a summary. If you need more content and Fetch fails, try another accessible source or abstract page, or download the document for your client to read. need_content does not guarantee complete content for every page either.

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

Pricing in one sentence: set against the “large-deposit customer with 20% bonus” baseline, so it lands on par with the official price once the bonus applies. The list price is $0.0009 per request; with the 20% top-up bonus the effective cost is $0.00075 per request, the same as DeepSeek’s official price. General customers with the 10% bonus pay about 1.09× the official price. Prices include tax and can be invoiced. DeepSeek offers no discount on these APIs and APIYI doesn’t price them for profit: they are offered to secure supply and serve customers. One APIYI key covers search, fetch and every major model, with no separate DeepSeek account or top-up needed.
Model prices are aligned with official pricing and may change with it; the table above is for reference only, and the Model Pricing tab in the top navigation is authoritative: Model Pricing.
Billing rules (same as the official API):
  • 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_content or 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-search or deepseek-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

The request body does not need a model field; if you send one it is ignored.

Request parameters

Search: POST /v1/tools/search

If 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: Fetch returns {"title": "...", "content": "..."}, where content is the Markdown body.

Test results

Tested on 2026-10-21 (UTC+8):

Things you need to know

A search engine almost always returns something: in testing, a string of random characters still returned 3 results and was billed. Likewise, some sites answer a missing page with their home page or a notice page instead of a 404 (a “soft 404”); Fetch treats that as a successful fetch and bills it. Validate queries and URLs in your own code before calling.
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.
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.
Billing logs may not include every failed request. Keep the time and time zone, API path, full target URL or search query, HTTP status, error body and any request IDs returned in the response in your client logs. Include these details when reporting an issue so they can be matched to server records. Do not include your API key or the Authorization header.
Search and Fetch return raw content from the internet, which may include ads, wrong information, or even prompt injection aimed at AI. When you pass results to a model, tell it explicitly that this is external web content, not instructions. When you show results in a web page or app, escape the HTML.
The upstream limits are 100 QPS for Search and 25 QPS for Fetch, and Fetch has a separate limit per target domain. Going over returns 429; wait and retry a limited number of times with increasing delays. When fetching many pages from the same site, throttle on the client side.

FAQ

Those are built-in tools of chat models: the model decides whether and what to search, and searches are billed as tool calls on top (OpenAI 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.
Not directly yet. Web searches the model starts inside Claude Code go through the chat API’s server-side tool, not through this API, and keys in the ClaudeCode group cannot call this API either. APIYI will support built-in search for DeepSeek models in those clients in a later release.
Results carry a date field, and you can use the after: operator to get only recent content. In testing, news published the same day showed up.

Search Playground

Parameter reference, error codes, and a live request panel

Fetch Playground

Extract usable content from public web pages as Markdown

DeepSeek V4 Flash

A chat model to pair with it

Top-up bonuses

The more you top up, the bigger the bonus; large-deposit customers pay the official price