GET Get Results
Retrieve web scraper job status and results
Get Scrape Result
GET
https://api.anakin.io/v1/web-scraper/{id}Retrieve the status and results of a web scraper job.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id required | string | The job ID returned from the run scrape endpoint |
Response
200 OK{
"id": "job_xyz789",
"status": "completed",
"jobType": "web_scraper",
"url": "https://example.com/product-page",
"generatedJson": {
"name": "Product Name",
"price": "$29.99",
"description": "Product description..."
},
"cached": false,
"error": null,
"createdAt": "2024-01-01T12:00:00Z",
"completedAt": "2024-01-01T12:00:05Z",
"durationMs": 5000
}Response Fields
| Field | Type | Description |
|---|---|---|
status | string | pending, processing, completed, or failed |
url | string | The URL that was scraped |
generatedJson | object | Structured data extracted by the scraper |
cached | boolean | true if served from cache |
error | string | Error message. Only present when failed. |
durationMs | number | Processing time in milliseconds |
Code Examples
curl -X GET https://api.anakin.io/v1/web-scraper/job_xyz789 \
-H "X-API-Key: your_api_key"import requests
job_id = "job_xyz789"
result = requests.get(
f'https://api.anakin.io/v1/web-scraper/{job_id}',
headers={'X-API-Key': 'your_api_key'}
)
data = result.json()
if data['status'] == 'completed':
print(data['generatedJson'])const jobId = 'job_xyz789';
const res = await fetch(`https://api.anakin.io/v1/web-scraper/${jobId}`, {
headers: { 'X-API-Key': 'your_api_key' }
});
const data = await res.json();
if (data.status === 'completed') {
console.log(data.generatedJson);
}For polling patterns, see the Polling Jobs reference.