Skip to main content

API reference

Web Search & Fetch

Web Search & Fetch: Search the web; Fetch a webpage. Published endpoints, request parameters, JSON responses and authentication.

Release v1.0.0 · This reference describes the release shown here. Console shows the current published configuration.

Technical limits
ⓘThese limits apply unless an endpoint lists different limits.
Timeout
40 s
Request body
16 KiB
Response body
4 MiB

Search the web

POST/web/v1/search

Search public webpages using DeepSeek. Returns structured results and optional page content. One nonempty search counts as one billable search, regardless of result count. Empty results and failures are not charged.

$0.005 / searchHow billing works ↗

Parameters

This operation has no published parameters.

Request body

Request fields

NameTypeRequiredDescription
countintegerNo
localizationstringNo
need_contentbooleanNo
ori_questionstringNo
querystringYes
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "count": 10,
  "localization": "string",
  "need_content": false,
  "ori_question": "string",
  "query": "string"
}

Success response200

Fields inside data

NameTypeRequiredDescription
resultsobject[]No
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "code": 0,
  "data": {
    "results": [
      {
        "authority": 0,
        "content": "string",
        "date": "string",
        "rerank_score": 0,
        "site_icon": "string",
        "site_name": "string",
        "snippet": "string",
        "summary": "string",
        "title": "string",
        "url": "string"
      }
    ]
  },
  "error": "string"
}

Fetch a webpage

POST/web/v1/fetch

Extract a public webpage as Markdown using DeepSeek. A response containing nonempty page content counts as one billable fetch. Empty content and failures are not charged.

$0.002 / fetchHow billing works ↗

Parameters

This operation has no published parameters.

Request body

Request fields

NameTypeRequiredDescription
urlstringYes
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "url": "string"
}

Success response200

Fields inside data

NameTypeRequiredDescription
contentstringNo
titlestringNo
JSON model

Illustrative JSON shape generated from the published schema. Field values are examples, not live results.

JSON model
{
  "code": 0,
  "data": {
    "content": "string",
    "title": "string"
  },
  "error": "string"
}