GET Get Results
Poll for agentic search status and retrieve results
Get Search Result
GET
https://api.anakin.io/v1/agentic-search/{id}Retrieve the status and results of an agentic search job. Agentic searches run through multiple stages and may take several minutes — poll every 10 seconds.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id required | string | The job ID returned from the submit endpoint |
Response — Processing
202 Accepted{
"job_id": "3f8aa45d-6ea3-4107-88ce-7f39ecf48a84",
"status": "pending",
"message": "Job is pending",
"created_at": "2024-01-01T12:00:00.000Z"
}Response — Completed
200 OK{
"id": "3f8aa45d-6ea3-4107-88ce-7f39ecf48a84",
"status": "completed",
"jobType": "agentic_search",
"generatedJson": {
"summary": "Summary of the research findings...",
"structured_data": {
"developments": [
{
"title": "Quantum Computing Advances",
"description": "Recent developments in quantum computing...",
"organization": "IBM",
"date": "2024-01"
}
]
},
"data_schema": {
"description": "Schema for structured data extraction",
"fields": {
"developments": {
"type": "array",
"description": "List of developments"
}
}
}
},
"createdAt": "2024-01-01T12:00:00.000Z",
"completedAt": "2024-01-01T12:05:00.000Z",
"durationMs": 33500
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the job |
status | string | pending, processing, completed, or failed |
jobType | string | Always agentic_search for this endpoint |
generatedJson | object | The full agentic search result (see below) |
createdAt | string | ISO 8601 timestamp of job creation |
completedAt | string | ISO 8601 timestamp of completion |
durationMs | number | Total processing time in milliseconds |
generatedJson Fields
| Field | Type | Description |
|---|---|---|
summary | string | Concise summary of findings |
structured_data | object | Dynamic structured data matching data_schema.fields |
data_schema | object | Schema describing the structured data format |
Job Statuses
| Status | Description |
|---|---|
pending | Job is queued |
processing | Research pipeline is running |
completed | Research report is ready |
failed | Job encountered an error |
Code Examples
curl -X GET https://api.anakin.io/v1/agentic-search/3f8aa45d-6ea3-4107-88ce-7f39ecf48a84 \
-H "X-API-Key: your_api_key"import requests
job_id = "3f8aa45d-6ea3-4107-88ce-7f39ecf48a84"
result = requests.get(
f'https://api.anakin.io/v1/agentic-search/{job_id}',
headers={'X-API-Key': 'your_api_key'}
)
data = result.json()
if data['status'] == 'completed':
result_data = data['generatedJson']
print(f"Summary: {result_data['summary']}")
print(f"Schema: {result_data['data_schema']}")
print(f"Data: {result_data['structured_data']}")const jobId = '3f8aa45d-6ea3-4107-88ce-7f39ecf48a84';
const res = await fetch(`https://api.anakin.io/v1/agentic-search/${jobId}`, {
headers: { 'X-API-Key': 'your_api_key' }
});
const data = await res.json();
if (data.status === 'completed') {
const resultData = data.generatedJson;
console.log(resultData.summary);
console.log(resultData.data_schema);
console.log(resultData.structured_data);
}For polling patterns, see the Polling Jobs reference.