/desearch/ai/search/links/webThis API allows users to search for links related to a given query (prompt) with Web Search. X (Twitter) Search is not available here; use `POST /desearch/ai/search/links/twitter`. Results arrive in `search_results`. The YouTube, Hacker News, Reddit, Wikipedia and ArXiv tools are retired. They are still accepted in `tools` but dropped, and the `youtube_search_results`, `hacker_news_search_results`, `reddit_search_results`, `arxiv_search_results` and `wikipedia_search_results` keys are never returned. To scope results to a site, put `site:<domain>` in the prompt (for example `site:youtube.com`), or use `POST /desearch/ai/search` with `include_domains`. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://www.desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.
Base URL
https://api.desearch.aiUse AI Web Search when your application needs fresh web resultswithout maintaining its own crawler, social-data pipeline, or retrieval infrastructure. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.
Send requests to POST /desearch/ai/search/links/web with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.
Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.
promptstringrequiredSearch query prompt
toolsarrayrequiredTools to search with. Only `web` (Web Search) is supported. The retired tools `youtube`, `reddit`, `hackernews`, `wikipedia` and `arxiv` (and their `... Search` names) are still accepted so older clients keep working, but this route drops all of them: it has no `include_domains`, so they are not pinned to their domain, and their `*_search_results` keys are never returned. A list left with no supported tool, such as `["youtube"]`, is a 422. To scope results to one site, put `site:youtube.com` (or another domain) in the prompt, or use `POST /desearch/ai/search` with `include_domains`.
start_datestringThe start date for the search query. Format: YYYY-MM-DDTHH:MM:SSZ (UTC)
end_datestringThe end date for the search query. Format: YYYY-MM-DDTHH:MM:SSZ (UTC)
date_filterstringDeprecated relative window. When set (and no start_date/end_date), it is translated to start_date/end_date. Prefer start_date/end_date.
countstringThe number of results to return per source. Min 10. Max 200.
Default: 10
highlightsbooleanInclude highlights (token-efficient key excerpts from each page) on Web Search results.
Default: true
page_textbooleanInclude the full page text on each Web Search result. Responses get significantly larger.
Default: false
Your API key is sent in the Authorization header.
curl -X POST "https://api.desearch.ai/desearch/ai/search/links/web" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "What are the recent sport events?",
"tools": [
"web"
]
}'{
"search_results": [
{
"highlights": [
"Latest sports news from around the world with in-depth analysis, features, photos and videos."
],
"link": "https://www.cnn.com/sport",
"snippet": "Latest sports news from around the world with in-depth analysis, features, photos and videos covering football, tennis, motorsport, golf, rugby, sailing, ...",
"title": "Latest sports news, videos, interviews and comment"
},
{
"highlights": [
"Did we avoid a recession and is there still more upside for Bitcoin?"
],
"link": "https://www.youtube.com/watch?v=Ycq1u2zWfr8",
"snippet": "Did we avoid a recession and is there still more upside for Bitcoin? GET MY FREE NEWSLETTER ...",
"title": "Did The FED Do The Impossible? [Huge Implications For Bitcoin]"
}
]
}Possible status codes: