cURL
curl --request GET \ --url https://api.groweasy.io/status \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "scrapeId": "scr_abc123xyz", "status": "completed", "progress": 100, "leadsFound": 87, "creditsUsed": 87, "createdAt": "2024-01-15T10:30:00Z", "completedAt": "2024-01-15T10:35:00Z" } }
Get the current status of a scrape job by its ID.
curl -X GET "https://api.groweasy.io/status?scrapeId=scr_abc123xyz" \ -H "Authorization: Bearer YOUR_API_KEY"
status
completed
failed
async function waitForScrape(scrapeId) { while (true) { const response = await fetch( `https://api.groweasy.io/status?scrapeId=${scrapeId}`, { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } } ); const data = await response.json(); if (data.data.status === 'completed') { return data.data; } if (data.data.status === 'failed') { throw new Error('Scrape failed'); } // Wait 5 seconds before polling again await new Promise(resolve => setTimeout(resolve, 5000)); } }
API key authentication. Get your API key from the GrowEasy dashboard.
The ID of the scrape job to check
Scrape status retrieved successfully
true
Show child attributes