GET /api/v1/jobs/:jobId
Check the status of a review scraping job.Request
Headers:| Header | Value | Required |
|---|---|---|
| Authorization | Bearer YOUR_API_KEY | Yes |
| Parameter | Type | Description |
|---|---|---|
| jobId | number | Job ID from POST /reviews/refresh |
Response (200 OK)
| Field | Type | Description |
|---|---|---|
| jobId | number | Job identifier |
| asin | string | ASIN being processed |
| productTitle | string | Product title (if available) |
| status | string | queued | processing | completed | failed |
| createdAt | string | ISO 8601 timestamp of job creation |
| updatedAt | string | ISO 8601 timestamp of last status change |
Job Statuses
| Status | Description |
|---|---|
| queued | Job is waiting to be processed |
| processing | Job is actively scraping reviews |
| completed | Job finished successfully (reviews now cached) |
| failed | Job failed (check error field for details) |
Errors
| Status | Error | Cause |
|---|---|---|
| 400 | Invalid job ID | jobId is not a valid number |
| 401 | Invalid API key | Key doesn’t exist or was revoked |
| 404 | Job not found | Job doesn’t exist or belongs to another store |
Examples
cURL:Best Practices
- Poll interval: Start with 5 seconds, use exponential backoff if needed
- Max timeout: Set a reasonable limit (2-3 minutes) to avoid infinite loops
- Error handling: Always check for
failedstatus and handle gracefully