Poll for job progress and results
jobId back immediately. You then poll this endpoint every 2-5 seconds until status is completed or failed.
| Status | Meaning |
|---|---|
waiting | In queue, not started yet |
active | Running right now |
completed | Done, results are ready |
failed | Something went wrong, check error |
status is completed, everything you need is inside result.
prompt:
prompt: the AI-extracted result, formatted according to output ("markdown" or "json")prompt: the raw scraped page content as markdowncontent still returns the raw markdown as a fallback, and ai_extraction_failed is set to true so you can detect this.
| Field | Description |
|---|---|
url | The URL that was scraped |
title | The page title from the browser |
markdownContent | The full raw scraped content for this URL as markdown. If you used forEach, this contains all the collected items formatted as ## Item 1, ## Item 2, etc. |
success | true if the page was scraped successfully, false if it failed |
screenshotUrl | URL to the screenshot on S3, or null if you did not request one |
| Field | Description |
|---|---|
durationMs | How long the whole job took in milliseconds |
captchaSolvedCount | Number of CAPTCHAs that were automatically solved |
inputTokens | Tokens sent to the AI model |
outputTokens | Tokens returned from the AI model |
totalTokens | Total tokens used (input + output) |
status is failed, the error field contains the reason:
The job ID returned from POST /scrape