/desearch/companies/tasksYour company's Company Search and Company Enrich tasks, newest first. Free. Filter by `type` (`search` or `enrich`), by `status`, and by the `metadata` you sent with a task using up to 3 query parameters `metadata.<key>=<value>` (exact match; a task must match all of them), e.g. `?metadata.workspace_id=ws_42&metadata.campaign=q4`. Keep the same filters when you page with `cursor`. People Search tasks are not listed here.
Base URL
https://api.desearch.aiUse List Company Search tasks when your application needs companies with their public emails, phones, social profiles, and leaderswithout 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 GET /desearch/companies/tasks 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.
typestringsearch or enrich
statusstringComma-separated statuses, e.g. running,paused
limitintegerDefault: 20
cursorstringnext_cursor from the previous page
Your API key is sent in the Authorization header.
curl -X GET "https://api.desearch.ai/desearch/companies/tasks" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json"{
"tasks": [
{
"task_id": "Task Id",
"search_type": "company_search",
"platform": "company",
"status": "queued",
"stage": "planning",
"query": "Query",
"count": 0,
"result_count": 0,
"request": {},
"metadata": {},
"interpreted": {},
"progress": {},
"errors": [],
"completion_reason": "count_reached",
"coverage_limited": false,
"warnings": [
{
"code": "Code",
"message": "string"
}
],
"reserved_cost_usd": 0,
"final_cost_usd": 0,
"refunded_usd": 0,
"created_by": {
"user_id": "string",
"api_key_id": "string",
"via": "string"
},
"created_at": "2024-01-15T10:30:00Z",
"started_at": "2024-01-15T10:30:00Z",
"paused_at": "2024-01-15T10:30:00Z",
"finished_at": "2024-01-15T10:30:00Z",
"results_expire_at": "2024-01-15T10:30:00Z",
"links": {
"self": "Self",
"results": "Results",
"export": "Export"
}
}
],
"next_cursor": "string"
}Possible status codes: