New: use Extruct search and tables from Claude, Codex, and more with the remote MCP server.
New: use Extruct search and tables from Claude, Codex, and more with the remote MCP server.
Get Deep Search results by task ID.
curl --request GET \
--url https://api.extruct.ai/v1/discovery_tasks/{task_id}/results \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "created",
"query": "<string>",
"desired_num_results": 123,
"results": [
{
"id": "<string>",
"task_id": "<string>",
"company_name": "<string>",
"company_description": "<string>",
"company_website": "<string>",
"relevance": 123,
"created_at": "2023-11-07T05:31:56Z",
"company_profile_id": "<string>",
"source": "web_search",
"scores": {},
"founding_year": 123,
"employee_count": "1-10",
"hq_country": "<string>",
"hq_state_province": "<string>",
"hq_city": "<string>",
"company_full_description": "<string>"
}
],
"is_exhausted": false,
"num_results_discovered": 0,
"num_results_enriched": 0,
"num_results_evaluated": 0,
"num_results": 0,
"table_id": "<string>",
"auto_data_sources": true,
"data_sources": [
"web_search"
],
"criteria": [
{
"key": "<string>",
"name": "<string>",
"criterion": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.extruct.ai/llms.txt
Use this file to discover all available pages before exploring further.
export EXTRUCT_API_TOKEN="YOUR_API_TOKEN"
export TASK_ID="YOUR_TASK_ID"
curl --get "https://api.extruct.ai/v1/discovery_tasks/${TASK_ID}/results" \
-H "Authorization: Bearer ${EXTRUCT_API_TOKEN}" \
--data-urlencode "offset=0" \
--data-urlencode "limit=50"
task_id (required): Task identifier.offset (optional): Pagination offset.limit (optional): Page size.relevance descending.
relevance controls the overall ordering of the result list.scores shows the grade and explanation for each criterion. If you did not provide criteria when creating the task, Deep Search generates them automatically.results[] with criterion scores details. Continue paging until returned rows are fewer than limit.
Use task completion rules from task status endpoint: status=done or is_exhausted=true.
401 UnauthorizedAuthorization: Bearer ${EXTRUCT_API_TOKEN}.
404 Not FoundTASK_ID from create-task response.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
created, in_progress, done, failed Show child attributes
Total number of company candidates discovered from search
Number of candidates enriched with company profiles
Number of candidates that had criteria evaluation completed
Total number of results
web_search, linkedin, maps Show child attributes
curl --request GET \
--url https://api.extruct.ai/v1/discovery_tasks/{task_id}/results \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "created",
"query": "<string>",
"desired_num_results": 123,
"results": [
{
"id": "<string>",
"task_id": "<string>",
"company_name": "<string>",
"company_description": "<string>",
"company_website": "<string>",
"relevance": 123,
"created_at": "2023-11-07T05:31:56Z",
"company_profile_id": "<string>",
"source": "web_search",
"scores": {},
"founding_year": 123,
"employee_count": "1-10",
"hq_country": "<string>",
"hq_state_province": "<string>",
"hq_city": "<string>",
"company_full_description": "<string>"
}
],
"is_exhausted": false,
"num_results_discovered": 0,
"num_results_enriched": 0,
"num_results_evaluated": 0,
"num_results": 0,
"table_id": "<string>",
"auto_data_sources": true,
"data_sources": [
"web_search"
],
"criteria": [
{
"key": "<string>",
"name": "<string>",
"criterion": "<string>"
}
]
}