payload.url | string | Yes | — | Full URL to scrape into LLM usable Markdown (must include http:// or https:// protocol) Format: uri. Minimum length: 1. |
payload.includeLinks | boolean | No | true | Preserve hyperlinks in Markdown output (html-conversion only). |
payload.includeImages | boolean | No | false | Include image references in Markdown output (html-conversion only). |
payload.shortenBase64Images | boolean | No | true | Shorten base64-encoded image data in the Markdown output (html-conversion only). |
payload.useMainContentOnly | boolean | No | false | Extract only the main content of the page, excluding headers, footers, sidebars, and navigation |
payload.includeHTML | boolean | No | false | When true, the response also includes an html field with the page HTML the Markdown was converted from — the same body the Scrape HTML endpoint returns for the equivalent request. |
payload.sourcePreference | array | No | ["html-conversion","markdown-direct"] | Markdown sources in order of preference: html-conversion converts the page HTML, markdown-direct uses Markdown the site publishes. Minimum items: 1. Items must be unique. |
payload.pdf | object | No | {"shouldParse":true,"ocr":false} | PDF handling. start/end limit parsing to an inclusive, 1-based page range. |
payload.includeFrames | boolean | No | false | When true, the contents of iframes are rendered to Markdown. |
payload.includeSelectors | array | No | — | Keep matching HTML subtrees before converting to Markdown. Maximum items: 50. |
payload.excludeSelectors | array | No | — | Remove matching elements after inclusions. Exclusions take precedence. Maximum items: 50. |
payload.maxAgeMs | integer | No | 259200000 | Maximum cache age in milliseconds. Defaults to 3 days (259200000 ms). Maximum: 1 year (31536000000 ms). 0 fetches fresh. Minimum: 0. Maximum: 31536000000. |
payload.waitForMs | integer | No | — | Optional browser wait time in milliseconds after initial page load before converting the page to Markdown. Min: 0. Max: 30000 (30 seconds). When combined with timeoutOpts, timeoutOpts.milliseconds must be at least waitForMs + 10000 ms. A shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT. Minimum: 0. Maximum: 30000. |
payload.settleAnimations | boolean | No | false | When true, waits briefly for CSS and transition animations to settle before converting to Markdown. Defaults to false. This adds a bit of latency in exchange for more stable output on animated pages. |
payload.actions | array | No | — | Optional browser actions executed in array order after the page loads and before content is captured. Send a JSON array in the query parameter. Maximum: 5 actions. Maximum items: 5. |
payload.headers | record | No | — | HTTP headers for the target origin. Non-empty headers bypass caching. |
payload.country | "ad" | "ae" | "af" | "ag" | "ai" | "al" | "am" | "ao" | "ar" | "at" | "au" | "aw" | "az" | "ba" | "bb" | "bd" | "be" | "bf" | "bg" | "bh" | "bi" | "bj" | "bm" | "bn" | "bo" | "bq" | "br" | "bs" | "bw" | "by" | "bz" | "ca" | "cd" | "cf" | "cg" | "ch" | "ci" | "cl" | "cm" | "cn" | "co" | "cr" | "cv" | "cw" | "cy" | "cz" | "de" | "dj" | "dk" | "dm" | "do" | "dz" | "ec" | "ee" | "eg" | "es" | "et" | "fi" | "fj" | "fr" | "ga" | "gb" | "gd" | "ge" | "gf" | "gg" | "gh" | "gm" | "gn" | "gp" | "gq" | "gr" | "gt" | "gu" | "gw" | "gy" | "hk" | "hn" | "hr" | "ht" | "hu" | "id" | "ie" | "il" | "im" | "in" | "iq" | "ir" | "is" | "it" | "je" | "jm" | "jo" | "jp" | "ke" | "kg" | "kh" | "kn" | "kr" | "kw" | "ky" | "kz" | "la" | "lb" | "lc" | "lk" | "lr" | "ls" | "lt" | "lu" | "lv" | "ly" | "ma" | "mc" | "md" | "me" | "mf" | "mg" | "mk" | "ml" | "mm" | "mn" | "mo" | "mq" | "mr" | "mt" | "mu" | "mv" | "mw" | "mx" | "my" | "mz" | "na" | "nc" | "ne" | "ng" | "ni" | "nl" | "no" | "np" | "nz" | "om" | "pa" | "pe" | "pf" | "pg" | "ph" | "pk" | "pl" | "pr" | "ps" | "pt" | "py" | "qa" | "re" | "ro" | "rs" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sm" | "sn" | "so" | "sr" | "ss" | "st" | "sv" | "sx" | "sy" | "sz" | "tc" | "td" | "tg" | "th" | "tj" | "tl" | "tm" | "tn" | "tr" | "tt" | "tw" | "tz" | "ua" | "ug" | "us" | "uy" | "uz" | "vc" | "ve" | "vg" | "vi" | "vn" | "ye" | "yt" | "za" | "zm" | "zw" | No | — | Fetch from this country (ISO 3166-1 alpha-2). Allowed: ad, ae, af, ag, ai, al, am, ao, ar, at, au, aw, az, ba, bb, bd, be, bf, bg, bh, bi, bj, bm, bn, bo, bq, br, bs, bw, by, bz, ca, cd, cf, cg, ch, ci, cl, cm, cn, co, cr, cv, cw, cy, cz, de, dj, dk, dm, do, dz, ec, ee, eg, es, et, fi, fj, fr, ga, gb, gd, ge, gf, gg, gh, gm, gn, gp, gq, gr, gt, gu, See the live schema for the complete constraint. |
payload.timeoutOpts | object | No | — | Request deadline and what to return when it passes. |
payload.zdr | "enabled" | "disabled" | No | "disabled" | enabled turns on zero data retention. Returns 403 ZDR_NOT_ENABLED unless your organization has ZDR. Allowed: enabled, disabled. |
payload.tags | array | No | — | Comma-separated labels for filtering usage, e.g. production,team-alpha. Maximum items: 20. |
payload.timeoutMS | integer | No | — | Deprecated: use timeoutOpts.milliseconds. Request deadline in milliseconds. sent as timeoutOpts with the “fail” behavior. Minimum: 1. Maximum: 300000. |