url | string | Required (positional). The URL to scrape. |
formats | FormatOption[] | Output formats. String values: "markdown", "html", "rawHtml", "links", "images", "screenshot", "summary", "changeTracking", "json", "attributes", "branding", "product", "menu", "audio", "video". Object variants: { type: "json", schema?, prompt? }, { type: "screenshot", fullPage?, quality?, viewport? }, { type: "changeTracking", modes, schema?, prompt?, tag? }, { type: "attributes", selectors }, { type: "question", question }, { type: "highlights", query }. |
headers | Record<string, string> | Custom HTTP headers to send with the request. |
includeTags | string[] | HTML tags to include exclusively. |
excludeTags | string[] | HTML tags to exclude. |
onlyMainContent | boolean | Only return main content, excluding navbars/footers. |
timeout | number | Timeout in milliseconds. |
waitFor | number | Delay in ms before fetching content. |
mobile | boolean | Emulate a mobile device. |
parsers | Array<string | { type: "pdf", mode?, maxPages? }> | File processing parsers. PDF modes: "fast", "auto", "ocr". |
actions | ActionOption[] | Browser actions to perform before scraping. Types: wait, screenshot, click, write, press, scroll, scrape, executeJavascript, pdf. |
location | { country?: string, languages?: string[] } | Geolocation for proxy routing. |
skipTlsVerification | boolean | Skip TLS certificate verification. |
removeBase64Images | boolean | Remove base64 images from output. |
fastMode | boolean | Faster scraping with reduced accuracy. |
useMock | string | Use a mock response. |
blockAds | boolean | Block ads and cookie popups. |
proxy | "basic" | "stealth" | "enhanced" | "auto" | string | Proxy mode. |
maxAge | number | Use cached result if younger than this (ms). |
minAge | number | Minimum cache age (ms). Set to 1 for any cached data. |
storeInCache | boolean | Whether to cache the result. |
lockdown | boolean | Serve only cached results. No outbound request. |
redactPII | boolean | { mode?, entities?, replaceStyle? } | Redact personally identifiable information. Modes: "accurate", "aggressive", "fast". |
threatProtection | ThreatProtectionOptions | Per-request threat protection override. |
auditMetadata | { username: string } | User attribution for SIEM logging. |
profile | { name: string, saveChanges?: boolean } | Persistent browser storage profile. |
integration | string | Integration identifier. |
origin | string | Request origin tag. |