Create one asynchronous request
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.
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.
X-API-Key<token>Idempotency-Key?stringOptional. Generate a unique value before a write and retain it for an exact-body retry; replay is free and a different body returns 409 IDEMPOTENCY_CONFLICT.
8 <= length <= 200application/json- body
extraction, task and tool are mutually exclusive. task creates a public, read-only website tool from a task description; tool calls a saved version with input parameters. task/tool requests do not accept supplied cookies, headers or browser_actions. Website task costs follow actual usage and are not capped by max_credits_per_request.
quote_version?ProxyQuoteVersionOptional opaque pricing version for this individual request. For a batch, pass the quote_version on each job. Older clients may omit it.
64 <= length <= 64url*stringurilength <= 4096mode?stringOptional route mode. When omitted, javascript=true resolves to browser and javascript=false resolves to http. direct uses bounded HTTP, auto uses HTTP then browser rendering, and browser starts in the browser. http, residential, and residential_browser remain supported explicit route modes. direct and http use the selected network class's HTTP tariff, browser uses its browser tariff, residential uses the residential HTTP tariff, and residential_browser uses the residential browser tariff. auto bills the terminal HTTP or browser stage after execution.
"direct""auto""browser""http""residential""residential_browser"geo_country?stringRequested ISO 3166-1 alpha-2 proxy exit country; input is normalized to uppercase. The effective proxy route is verified before the target is requested; browser contexts then apply timezone/geolocation. An unavailable or mismatched route fails with PROXY_GEO_VERIFICATION_FAILED.
2 <= length <= 2max_credits_per_request?integerHard ceiling for total whole tokens charged to this newly accepted request. It includes HTTP or browser execution, CAPTCHA and measured traffic from a successful result. The limit is shared by immediate and deferred billing stages. If execution must stop before producing a complete result, the request ends with budget_exhausted.
1 <= valueproxy?stringrandom uses RunHarvester proxies, off connects directly, own leaves only through your own nodes (computers and proxies) with proxy_type and geo_country as filters by their probe results; own traffic is not charged. A failing node is retried on up to two other nodes.
"random""random""off""own"own_pool?Narrows proxy own to these nodes; without it every usable node of yours is in the pool.
own_strategy?stringWith proxy own, random picks any usable node; sticky keeps one node per batch and host, or per own_session.
"random""sticky"own_session?stringWith proxy own and sticky, requests with the same value use the same node while it stays usable.
1 <= length <= 128fallback?"platform"With proxy own, use the platform proxy (charged as usual) when none of your nodes can carry the request; without it the request fails with NO_OWN_PROXY_AVAILABLE and is not charged.
"platform"proxy_type?stringRequested proxy network type. If omitted, the route mode determines the legacy default. This selects the datacenter, residential or premium tariff independently of transport mode. Premium requires explicit selection, a configured plan price and an available connection, and cannot be combined with proxy off. Provider selection and tariff resolution are internal and are not returned in public responses.
"datacenter""residential""premium"headers?Transport-controlled and hop-by-hop headers are rejected; names and values cannot contain control characters.
{}cookies?Cookie names and values are validated and cannot contain control characters.
{}timeout_ms?integer5000 <= value <= 30000045000javascript?booleantrueresource_policy?stringBrowser resource loading policy. adaptive starts in full mode, promotes back to full on challenges, and switches to site-light only after the page is usable. site-light blocks media, images, manifests and a conservative known advertising/analytics denylist while preserving documents, scripts, XHR/fetch, WASM, service workers, styles and fonts. compatible always uses full mode; adaptive enables site-light only after the page is usable.
"adaptive""compatible""adaptive"wait_for_selector?|CSS selector that must appear when supplied; if it does not appear before min(timeout_ms, 30000), the job fails.
1 <= length <= 500user_agent?|1 <= length <= 1000result_text_selector?|1 <= length <= 500wait_for_text?null|browser_actions?array<||>Ordered, declarative browser-only actions. Any non-empty list promotes HTTP routes to their browser equivalent, enables JavaScript, uses a fresh isolated browser context, and bypasses the result cache. The full ordered list is persisted for a request retry and returned by clone-input. A click that changes the page URL, opens a popup, or starts a download is blocked. Only aggregate action diagnostics are included in result_meta.
items <= 20[]debug_artifacts?booleanOpt in to short-lived, encrypted, tenant-private diagnostics only if the request terminally fails. Enabling it promotes HTTP routes to browser execution, enables JavaScript, uses an isolated context, and bypasses cache. Diagnostics exclude page HTML, response bodies, headers, cookies, credentials, and raw browser traces; the screenshot endpoint may show target-page content despite masked known form controls.
falseskip_cache?booleanfalsecache_ttl_seconds?integer0 <= value <= 3600300extraction?|task?tool?Accepted or idempotently replayed Error body uses the documented PublicError DTO.
application/json- response
id*stringuuidurl?stringTarget origin only; path and query are stored in the encrypted short-retention payload.
uristatus*DataJobStatus"pending""running""solving_captcha""completed""failed""cancelled"cached*booleanprotected*booleanTrue after server-side anti-bot protection detection.
pricing_version*integer1 <= valueroute_mode*DataRouteMode"direct""auto""browser""http""residential""residential_browser""mixed"proxy_type?ProxyNetworkTypeRequested proxy network class. Present on new submissions; historical idempotent replays may omit this field.
"datacenter""residential""premium"base_tokens*integer0 <= valueprotected_tokens*integerHistorical compatibility field; built-in protection is included in the selected pricing-v2 request mode.
0 <= valuecaptcha_tokens*integer0 <= valuequote?|Provider-neutral admission quote. Null when the guarded pricing policy is disabled.
created_at*stringdate-timecharged_tokens*integerBase credits charged by this submission operation; dynamic protected/CAPTCHA debits occur later. Zero on an idempotent replay.
0 <= valueidempotent_replay*booleanTrue only when this response replays a previous submission with the same idempotency key and payload.
result_kind?"extraction"Present for structured extraction requests.
"extraction"page_status?stringUnderlying page-fetch status for extraction requests; top-level status tracks extraction readiness.
curl -X POST 'https://api.runharvester.com/api/v1/data/requests' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example.com", "mode": "auto", "proxy": "random", "proxy_type": "datacenter"}' \ --header "X-API-Key: ${RUNHARVESTER_API_KEY:?Set your Data API key}" \ --header "Idempotency-Key: ${RUNHARVESTER_IDEMPOTENCY_KEY:?Set a unique key for this submission; reuse it for retries}"{ "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248", "url": "https://example.com", "status": "pending", "cached": false, "protected": false, "pricing_version": 2, "route_mode": "http", "base_tokens": 1, "protected_tokens": 0, "captcha_tokens": 0, "created_at": "2026-08-22T12:00:00.000Z", "charged_tokens": 1, "idempotent_replay": false}List owned requests GET
Lists this tenant's asynchronous page requests as a cursor page, optionally filtered by status. Use it to discover request ids; read one request with data_get_request and enumerate batches with data_list_batches. Pass the returned next cursor back to read the following page.
Read owned request status GET
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.