Skip to main content
POST
Web search: deepseek-search
Try it in the Playground on the right: put Bearer sk-your-api-key (a key in the default or svip group) in Authorization. The default example is filled in; click send to see results. Each successful call is billed once. localization takes the user’s IP address (e.g. 8.8.8.8); a locale code such as en-US returns 400.
Pricing, test data and the things you need to know are in the Overview.

Parameter reference

The request body does not need a model field; unknown fields are ignored. Check the length of query before sending it. The entire query, including operators such as site:, must fit within 128 characters. Shorten the keywords or split the query rather than retrying it unchanged. ori_question also cannot exceed 128 characters.

Response highlights

  • Give summary to models and show snippet to people. To request page content, enable need_content or pick a few results and use Fetch
  • A result URL or content from Search does not guarantee a subsequent Fetch request for that URL will succeed. Reuse available content and check its completeness. If only a summary is available, identify it as a summary; try another accessible source or abstract page when you need more content
  • rerank_score ≥ 1.5 and authority ≥ 3 mark high-quality results and make good filter thresholds
  • With count=50 the response is about 180 KB, and need_content more than doubles it; set your client timeout accordingly

Error codes

shell_api_error alone does not identify the cause. Use the HTTP status code and original message. If a 503 explicitly says no available channels, check the key’s group and whether the API is enabled first. Some failed requests may not appear in console billing logs. For troubleshooting, retain the time and time zone, full query, API path, HTTP status, error body and any request IDs. Do not include your API key or the Authorization header. See the Overview for more details.

Authorizations

Authorization
string
header
required

Add Authorization: Bearer YOUR_API_KEY to the request headers

Body

application/json
query
string
required

Search query, 1–128 characters, not all whitespace. Supports site: / lang: / after: and other operators. Shorten oversized queries or split them into separate searches

Required string length: 1 - 128
Example:

"DeepSeek V4 release"

count
integer
default:10

Number of results, 1–50. Does not affect the price

Required range: 1 <= x <= 50
Example:

5

need_content
boolean
default:false

Whether to request the page body. When false, content is always an empty string. Returned body text does not guarantee that Fetch can retrieve the same URL later

ori_question
string

The user's original question that triggered this search, 1–128 characters

Required string length: 1 - 128
localization
string

The user's IP address, used to prioritize localized results. Not a locale code: passing ja-JP returns 400

Example:

"8.8.8.8"

Response

Search succeeded (billed once)

results
object[]