Skip to Content
API referenceData API

Read owned request status

Reads the current status of one request of this tenant without waiting; the id comes from data_create_request or data_list_requests. Use data_wait_request to block until it finishes and data_get_result for the fetched output. An unknown id or one owned by another tenant returns 404.

GET
/api/v1/data/requests/{id}

Reads the current status of one request of this tenant without waiting; the id comes from data_create_request or data_list_requests. Use data_wait_request to block until it finishes and data_get_result for the fetched output. An unknown id or one owned by another tenant returns 404.

Authorization

headerX-API-Key<token>

Path Parameters

id*string

UUID of the target request or batch, as returned in the id field when it was created or listed.

Formatuuid

Response Body

Safe request DTO. Structured extraction adds extraction state and preserves page_error/page_user_error. Error body uses the documented PublicError DTO.

application/json
  1. response
id*string
Formatuuid
batch_id*|
Formatuuid
url*string

Target origin only.

Formaturi
status*DataVisibleStatus

Job status in a detail/list DTO. Structured extraction requests expose extraction-run status at the top level.

Value in"pending""waiting_for_page""queued""running""solving_captcha""completed""failed""cancelled"
cached*boolean
protected*boolean
pricing_version*integer
Range1 <= value
base_tokens*integer
Range0 <= value
protected_tokens*integer
Range0 <= value
captcha_tokens*integer
Range0 <= value
captcha_type*|
Value in"captcha"null
token_state*DataTokenState
Value in"reserved""settlement_pending""settled""refunded"
request*
debug_artifacts*
error*|null
user_error*|null
result_meta*|null
proxy_used*|

Redacted transport marker; platform for RunHarvester proxies, customer for your own node, or null.

created_at*string
Formatdate-time
started_at*|
Formatdate-time
finished_at*|
Formatdate-time
result_expires_at*|
Formatdate-time
Example Request
curl -X GET 'https://api.runharvester.com/api/v1/data/requests/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  --header "X-API-Key: ${RUNHARVESTER_API_KEY:?Set your Data API key}"
Example Response
{  "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",  "status": "pending"}

Create one asynchronous request POST

Creates one asynchronous request and returns 202 with its id and status; the work runs in the background, so follow up with data_wait_request or data_get_request and read the output with data_get_result or data_read_result_content. The body takes a required url plus at most one mode: omit both task and tool for a standard scrape, set task to generate a reusable tool from a natural-language description of the site, or set tool to call a saved tool (recipe_id) with new input values. Submitting charges tokens; send an Idempotency-Key so an exact-body retry replays the original request for free instead of creating a duplicate. Use data_create_batch for many URLs.

Read retained result GET

Reads the retained result of one request. Omit `format` to return HTML plus structured `data` and extraction metadata when available; HTML is null if none was retained. Specify `html`, `text`, `markdown`, or `data` to return only the selected content field plus `id`, `format`, `result_meta`, and `expires_at`. Use `markdown` for agent-readable page content: it is deterministically converted from stored HTML without an LLM (non-empty main region, else a single article, else cleaned body) and limited to 2 MiB of UTF-8. `result_meta.markdown` reports output and source truncation; `source_truncated` may be null for legacy stored metadata. The `data` format exists only for extraction requests. In MCP, `data_get_result` returns metadata and previews of up to 4 KiB per returned content field, with resource links; omission returns HTML plus available data previews. Use `data_read_result_content` with an explicit format to read the full selected content in 16 KiB chunks by default, up to 64 KiB.