cURL
curl --request GET \ --url https://api.spidra.io/api/scrape/{jobId} \ --header 'x-api-key: <api-key>'
200
in_progress
{ "status": "active", "progress": { "message": "Processing content with AI...", "progress": 0.6 }, "result": null, "error": null}
Poll for job progress and results
status
completed
failed
async function waitForResult(jobId) { while (true) { const res = await fetch(`https://api.spidra.io/api/scrape/${jobId}`, { headers: { 'x-api-key': 'YOUR_API_KEY' } }); const data = await res.json(); if (data.status === 'completed') return data.result; if (data.status === 'failed') throw new Error(data.error); await new Promise(r => setTimeout(r, 3000)); } }
waiting
active
The job ID returned from POST /scrape
Job status and results
Current status of the scrape job
delayed
Show child attributes
Present only when status is 'completed'
Error message if status is 'failed'
Was this page helpful?