Skip to content
Last updated
GEThttps://api.aitronos.com/v1/scrape/batch/{batch_id}/progress

Get progress information for a batch processing operation.

NameTypeRequiredDescription
AuthorizationstringYesBearer token authentication

Path Parameters

ParameterTypeRequiredDescription
batch_idstringYesBatch identifier

Response

Status: 200 OK

FieldTypeDescription
successbooleanAlways true for successful requests
dataobjectBatch progress data

Data Object

FieldTypeDescription
batch_idstringBatch identifier
total_urlsintegerTotal number of URLs in batch
completedintegerNumber of completed jobs
failedintegerNumber of failed jobs
pendingintegerNumber of pending jobs
total_items_extractedintegerTotal items extracted across all jobs
estimated_completionstringEstimated completion time (ISO 8601)
jobsarrayArray of job status objects

Job Status Object

FieldTypeDescription
job_idstringJob identifier
urlstringTarget URL
statusstringJob status
items_extractedintegerNumber of items extracted
Bash
curl -X GET https://api.aitronos.com/api/v1/scrape/batch/batch_xyz789/progress \
  -H "X-API-Key: $FREDDY_API_KEY"

Response 200 OK

{
  "success": true,
  "data": {
    "batch_id": "batch_xyz789",
    "total_urls": 10,
    "completed": 7,
    "failed": 1,
    "pending": 2,
    "total_items_extracted": 245,
    "estimated_completion": "2024-12-16T10:35:00Z",
    "jobs": [
      {
        "job_id": "job_abc123",
        "url": "https://example.com/page1",
        "status": "completed",
        "items_extracted": 25
      }
    ]
  }
}