options is accepted by scrape_unblocker and get_html. Every field is optional.

Rendering and waiting

  • mode ("http" \| "browser") — nested placement of the top-level mode. Prefer the top-level parameter; this exists so a payload copied from the engine still works.
  • actions (Action array) — nested placement of the top-level actions.
  • wait_until ("load" \| "domcontentloaded" \| "networkidle") — lifecycle event to wait for.
  • wait_seconds (number) — extra seconds after load.
  • timeout_seconds (number) — per-URL timeout. Raise it whenever you raise the waits.
  • humanize (boolean) — simulate human behaviour to evade bot detection.
  • use_proxy (boolean) — route through a proxy.
  • retry_count (number) — retries on failure.
  • debug ("off" \| "on" \| "on_failure") — debug artifact capture.

company_name

company_name (string) — the account-level company this scrape's config is filed under. Omit it and the engine invents a fresh unblocker-<random> company on every call, permanently creating a new row each time. Pass a stable name to keep repeated work on one site together. Reusing a name does not overwrite anything; it only files the new config under the existing company.

headers — and why they persist

headers (object or string) — extra HTTP headers sent to the target site, not to JetScrape; the API key travels separately. Prefer an object: the server serialises it into the newline-separated Name:Value list the backend expects. A raw string in that form is also accepted and passed through unchanged.

"options": {
  "headers": {
    "User-Agent": "Mozilla/5.0 …",
    "Accept-Language": "tr-TR,tr;q=0.9",
    "X-Page-Number": "2"
  }
}

Typical use: replaying a protected or paginated JSON endpoint found by discover_api_endpoints in http mode.

Headers are persistent. They are written into the config this scrape saves, and every later run_routine of that config sends them again, even though run_routine takes no header parameter. Measured: a routine created from a scrape that sent X-Page-Number: 2 replayed that header on a run that sent none. There is no per-run override. To change or drop a header, save a new config with a fresh scrape_unblocker call.

HTTP POST to the target

  • method ("GET" \| "POST", default GET) — POST requires mode: "http". In browser mode use the fill_form action.
  • body (string) — raw request body, JSON string or form-encoded, at most 64 KB. Requires method: "POST".
  • body_type ("json" \| "formdata", default json) — encoding and Content-Type for body.
{
  "name": "scrape_unblocker",
  "arguments": {
    "apiKey": "js_YOUR_API_KEY",
    "url": "https://api.example.com/search",
    "mode": "http",
    "selectors": [
      { "property_name": "name[]", "selector": "results.title", "attribute_type": "JSON" }
    ],
    "options": {
      "method": "POST",
      "body": "{\"query\":\"dress\",\"page\":1}",
      "body_type": "json",
      "headers": { "Content-Type": "application/json" }
    }
  }
}

Network capture

  • capture_network (boolean, default false) — capture the XHR and fetch responses the page fires and return them alongside the result. Browser mode only; sending it with mode: "http" returns 400.
  • capture_options (object) — tuning; requires capture_network: true, otherwise 400.
  • resource_types (default ["xhr","fetch"]) — also document, script, stylesheet, image, font, media, websocket, manifest, other. Binary responses are never captured.
  • url_filter (regex, RE2) — only matching URLs are kept. An empty string is rejected.
  • max_captured (default 50, cap 200).
  • max_body_bytes (default 10240, cap 262144). Bodies that hit it end with ... <truncated> and are flagged truncated: true.
  • max_total_bytes (default 512000, cap 2097152).

Values above a cap are not rejected; they are silently clamped.

Captured bodies can be hundreds of kilobytes and capture_network returns them verbatim into the agent's context. Do not use it to explore a page's API. discover_api_endpoints (compact index) and read_captured_response (one body) exist for that. Use capture_network directly only when the user explicitly wants captured traffic returned next to a normal scrape result.

include_auth_headers is deliberately not exposed by the MCP server. The backend default is false, so Authorization, Cookie, Set-Cookie, X-CSRF-Token and X-API-Key arrive as <redacted>. Raw credentials have no place in a model's context.

Last updated: September 22, 2026