Skip to main content
GET
/
v1
/
discovery_tasks
/
{task_id}
/
results
Get Discovery Task Results
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>"
    }
  ]
}

Overview

This endpoint returns paginated Deep Search results for a task. Results can be read while the task is still running or after completion.

Example request

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"

Key parameters

  • task_id (required): Task identifier.
  • offset (optional): Pagination offset.
  • limit (optional): Page size.
Results are ordered by relevance descending.

Endpoint behavior

  • 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.
  • Use this endpoint to review companies. Use Get Task for progress and completion state.

Success signal

A successful response includes 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.

Common errors

401 Unauthorized

Check that your header is Authorization: Bearer ${EXTRUCT_API_TOKEN}.

404 Not Found

The task ID is invalid or unavailable in your workspace. Re-check TASK_ID from create-task response.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

task_id
string
required

Query Parameters

offset
integer | null
limit
integer | null

Response

Successful Response

id
string
required
created_at
string<date-time>
required
status
enum<string>
required
Available options:
created,
in_progress,
done,
failed
query
string
required
desired_num_results
integer
required
results
DiscoveryTaskResultOutput · object[]
required
is_exhausted
boolean
default:false
num_results_discovered
integer
default:0

Total number of company candidates discovered from search

num_results_enriched
integer
default:0

Number of candidates enriched with company profiles

num_results_evaluated
integer
default:0

Number of candidates that had criteria evaluation completed

num_results
integer
default:0

Total number of results

table_id
string | null
auto_data_sources
boolean
default:true
data_sources
enum<string>[] | null
Available options:
web_search,
linkedin,
maps
criteria
CriterionDefinition · object[] | null