Skip to main content
GET
Get a scrape's status and document

Authorizations

X-Api-Key
string
header
required

Workspace API key, created in the dashboard under Settings → API Keys.

Path Parameters

id
string
required

The task id returned by POST /v1/scrape.

Query Parameters

workspaceId
string<uuid>

Workspace the request is scoped to. Optional for API keys: a key is bound to one workspace when it is created, and naming any other workspace returns an opaque 404.

expiresIn
integer

Shortens the viewer link in this response, in seconds (capped at six hours). The task's own end still wins, so this only ever makes it expire sooner.

Required range: x >= 30

Response

The task's status and document

status
enum<string>
required
Available options:
processing,
completed,
failed,
cancelled
error
string | null
required

Why the task failed, when it did, including the step of the address the screen did not match.

markdown
string

The page as Markdown: its title, then one line per labelled control, top to bottom over every screen read, each row once. Present when markdown was asked for.

json
object

The asked-for fields, read off the page. A field whose value the page's text does not show is null. Present when the task asked for {type: "json", schema}.

screenshot
string

The first screen's own picture (the screen the address reached), a PNG, in one of two forms. Usually an https link, valid for 24 hours from this read but never past the moment this result leaves the task history; read the task again for a fresh link. Otherwise the picture itself, inline, as a data:image/png;base64,… URL: a task whose picture could not be stored is answered that way. Present when a screenshot was asked for.

screenshots
string[]

Every screen read, top to bottom, one PNG each, in the same form as screenshot: all https links (valid up to 24 hours, never past the result's history deadline) or all inline data:image/png;base64,… URLs. Present when {type: "screenshot", fullPage: true} was asked for.

metadata
object

The document's metadata (ScrapeMetadata) once the task completed. A task that did not complete (still running, failed or cancelled) carries only concurrencyLimited and concurrencyQueueDurationMs (ConcurrencyQueueMetadata), once it took its phone after waiting for it.

liveViewUrl
string

A fresh watch-only link to the phone this scrape is driving. Present while the task is live and recording; absent once it ended, and on a phone that cannot serve one.