v1.0.0 ยท updated from bundled OpenAPI
/desearch/ai/search/links/webThis API allows users to search for links related to a given query (prompt) using multiple tools, excluding X (Twitter) Search. The API returns a list of relevant sources from selected platforms such as web pages, YouTube, Wikipedia, and ArXiv. 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. For example, `usage_count=10` at `$0.015 / 1,000` resolves to `cost_usd=0.00015`. 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 live 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
toolsarrayrequiredList of tools to search with
countstringThe number of results to return per source. Min 10. Max 200.
Default: 10
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",
"hackernews",
"reddit",
"wikipedia",
"youtube",
"arxiv"
]
}'{
"youtube_search_results": [
{
"title": "Title",
"snippet": "Snippet",
"link": "https://example.com"
}
],
"hacker_news_search_results": [
{
"title": "Title",
"snippet": "Snippet",
"link": "https://example.com"
}
],
"reddit_search_results": [
{
"title": "Title",
"snippet": "Snippet",
"link": "https://example.com"
}
],
"arxiv_search_results": [
{
"title": "Title",
"snippet": "Snippet",
"link": "https://example.com"
}
],
"wikipedia_search_results": [
{
"title": "Title",
"snippet": "Snippet",
"link": "https://example.com"
}
],
"search_results": [
{
"title": "Title",
"snippet": "Snippet",
"link": "https://example.com"
}
]
}Possible status codes: