hn.today

DeepSeek search and fetch – $0.75 per 1000 successful requests

api-docs.deepseek.com208 points98 comments
Screenshot of DeepSeek search and fetch – $0.75 per 1000 successful requests

Search and Fetch provide programmatic access to live web content: a Search endpoint that returns structured results for a query and a Fetch endpoint that retrieves a single page as Markdown. Both are POST JSON APIs at https://api.deepseek.com/v1/tools/search and /fetch and use Bearer token authentication. Search accepts a 1-128 character query (with operators like site:, -site:, exact phrases, lang:, after:, before:), an optional count (1-50, default 10), ori_question, localization, and need_content to include page content. Search results return fields such as rerank_score (0-3; ≥1.5 = high quality), title, url, snippet, summary, content, site_name, site_icon, date (RFC 3339), and authority (−1 to 4; ≥3 = highly authoritative). Fetch takes an HTTP/HTTPS URL (≤8192 chars, no credentials) and returns title and Markdown content; fetched content depends on target-site availability and policies.

Errors use an OpenAI-compatible format and standard HTTP codes with guidance: 400/401/403/404/413 for client issues, 408/429/5xx for transient issues to retry, and 402 for insufficient funds. Billing is per successful request (HTTP 200 with results) at $0.75 per 1,000 requests for both Search and Fetch; empty results, failures, and timeouts are not billed. Rate limits are account-level: 5 QPS for Search and 5 QPS for Fetch (Fetch also enforces per-domain QPS). Count does not affect billing; server-side tool calls are free until 00:00 Beijing time on November 1, 2026.

Read on api-docs.deepseek.com98 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.