Building an assistant that knows recent events requires more than a capable language model. It needs a retrieval system, clear source attribution, and predictable costs. The DeepSeek web search API gives developers several ways to connect generated answers to current web content, but those integration paths have different behavior and billing.
This guide uses official DeepSeek documentation checked on November 23, 2026. It separates standalone search endpoints from model-managed web tools, explains verified prices, and shows how to design a dependable DeepSeek API integration without assuming that every search result is accurate or immediately current.
What is the DeepSeek web search API?
DeepSeek offers standalone Search and Fetch APIs alongside server-side tools used during model conversations. The Search API finds pages and returns structured results. The Fetch API retrieves one page and returns its content as Markdown. Your application decides when to call these endpoints and what to do with the results.
The conversation tools take another approach. Declare the supported DeepSeek search tool, and the model decides whether it needs online information. DeepSeek executes searches and page retrieval on its servers. Your client consumes tool events and the answer rather than implementing those tool executions itself.
These are related capabilities, but they are not interchangeable endpoints. Use standalone retrieval when you need explicit queries, your own ranking pipeline, or reusable evidence. Use model-managed tools when your main requirement is a conversational answer with citations.
Standalone Search and Fetch: verified features
Search request and result fields
Send a JSON request to https://api.deepseek.com/v1/tools/search using bearer authentication. The required query accepts 1–128 Unicode characters. The optional count accepts 1–50 results and defaults to 10. Set need_content to true when you want available page content included rather than the default empty content field.
Results include a title, URL, snippet, longer summary, relevance score, publication date when known, and authority tier. DeepSeek documents relevance scores from 0 to 3 and authority tiers from 0 to 4, with -1 indicating unknown authority. Treat these as ranking signals, not proof that a claim is correct.
Supported query operators include site restriction, site exclusion, exact phrases, language restrictions, and publication-date filters. For example, a release-monitoring service can combine a vendor domain with a date restriction before asking the language model to summarize changes. Publication filters still depend on available page metadata.
Fetching full pages
Send the page URL to https://api.deepseek.com/v1/tools/fetch. A successful response contains a title and Markdown content. Fetching depends on the target site's availability and access policies; an otherwise valid URL may not produce extractable content.
The standalone Search API currently does not support image search. DeepSeek documents image search through its conversation web tools instead. Do not advertise the standalone endpoint as a general image-search API merely because another DeepSeek interface has that capability.
Model-managed web search and deep thinking search
DeepSeek's web-tools guide specifies deepseek-flash and documents availability through Messages, Responses, and Chat Completions. Declare deepseek_web_search to enable searching. With thinking disabled, the model can search and answer with citations. With thinking enabled, it can perform multiple search, page-opening, and in-page finding steps.
The deep-thinking workflow can make up to about 20 tool calls before answering, according to the guide. That is an approximate documented behavior, not a promise that every question triggers that many calls. Straightforward questions may need less retrieval, and the model may decide not to search at all.
Declare deepseek_read_url for reading links supplied in the last user message. At most the first 10 distinct URLs are considered, and the model chooses which to read. Thinking-enabled search changes how link reading is handled, so test combinations against the official guide rather than composing parameters by intuition.
The guide also states that tool_choice cannot name either built-in web tool directly; doing so returns an error. Setting it to none disables all tools. If a workflow absolutely requires a particular explicit search, your own standalone Search call gives the application more direct control.
Real-time AI search does not guarantee immediate truth
Real-time AI search means the application can retrieve online information during a request. It does not guarantee that every newly published page is indexed, that a timestamp is correct, or that a source has updated an older statement. Retrieval freshness and factual correctness require separate checks.
For a product-release assistant, prioritize official announcements and changelogs. Preserve source URLs and publication dates, and distinguish a publication date from the time your service fetched the page. If sources disagree, present the disagreement instead of smoothing conflicting statements into one confident answer.
Search results and fetched pages are untrusted inputs. A page may contain instructions intended to redirect an assistant. Keep retrieved text separate from application instructions, limit tool permissions, and require approval before actions such as sending messages or changing customer records.
Pricing: tool requests versus model tokens
The standalone Search and Fetch APIs each cost $0.75 per 1,000 successful, productive requests. Search is billable when it returns HTTP 200 and a non-empty results array; Fetch is billable when it returns usable page content. Failed requests, empty search results, and timeouts are not billed under the documented rules.
Returning more results through count does not change the standalone per-request price. However, sending more retrieved text to a language model can increase token costs. Request-level search pricing and downstream inference pricing therefore belong in separate lines of your cost calculation.
Since November 18, 2026 at 12:00 Beijing time, model-triggered server-side search and web fetch calls have no separate tool-call charge. Their returned content is added to the model context and billed as model tokens. Calling them free without that qualification would be misleading.
For deepseek-flash, the checked pricing table lists off-peak rates per million tokens of $0.15 for uncached input, $0.003 for cached input, and $0.60 for output. Peak rates are twice those amounts. Peak periods are defined in UTC on specified weekdays, with Chinese public-holiday exclusions; consult the current pricing page before scheduling workloads.
A practical cost example
Suppose an application makes 10,000 billable standalone searches and 2,000 billable page fetches. Retrieval charges are $7.50 plus $1.50, or $9.00. This calculation excludes model inference, infrastructure, taxes, and any other services.
If one later model call uses 8,000 uncached input tokens and 1,000 output tokens at Flash off-peak rates, the model portion is $0.0018. Actual usage may include reasoning and retrieved content, so calculate from provider usage records rather than visible answer length alone.
Measure cost per accepted answer. A cheaper retrieval configuration that forces repeated searches or produces unsupported answers can cost more overall. Record search counts, retrieved-token volume, answer acceptance, and retry rates together.
Developer use cases and integration design
Release monitoring and research assistants
A release monitor can search official domains, fetch promising pages, remove duplicates, and compare extracted changes with yesterday's records. A research assistant can keep an evidence list and require each material conclusion to link to supporting sources. Both workflows benefit from explicit retrieval logs.
For conversation tools, preserve the documented response blocks and signatures when passing history back. DeepSeek's guide distinguishes answer citations, search results, and encrypted URL-reading content. Flattening everything to plain answer text can remove information required for later turns.
Reliability and rate limits
The documented account-level limits are 100 search requests per second and 25 fetch requests per second, independently counted across API keys. Fetch also has per-domain limits. Use a queue and bounded retries for transient failures, and avoid retrying invalid requests without correcting them.
OLEToken is a unified AI API platform that can simplify access to supported models within a broader application. Check its current model catalog and tool passthrough behavior before routing DeepSeek-specific web features through it. Compatibility with a chat request format does not automatically establish compatibility with standalone search endpoints or every event type.
FAQ
Does DeepSeek search automatically on every request?
No. With built-in web tools enabled, the model decides whether to search. An application that needs an explicit query can use the standalone Search API.
Are server-side searches completely free?
They have no separate tool-call charge under the checked policy, but retrieved content and generated output still contribute to model token usage.
Can standalone Search return images?
Not under the checked standalone Search documentation. Image search is documented through conversation web tools.
What should developers test first?
Test source relevance, citation accuracy, missing results, retrieval latency, token growth, and behavior when pages cannot be fetched. Use representative questions from your application rather than relying only on successful demo queries.
References and next step
Consult DeepSeek Search and Fetch, Web Tools, and Models and Pricing before implementation.
For a multi-model application, review OLEToken alongside the direct API and verify the exact retrieval features your workflow requires.

