url | string | The URL to scrape. Required. |
formats | FormatOption[] | Output formats: "markdown", "html", "rawHtml", "links", "images", "screenshot", "json", "summary", "audio", "video", "changeTracking", "branding", "product", "menu", "question", "highlights". Default: ["markdown"]. Some accept config objects. |
onlyMainContent | boolean | Strip headers, navs, footers. Deterministic HTML filter, no LLM. Default: true. |
onlyCleanContent | boolean | Additional LLM-based boilerplate removal pass. Default: false. |
includeTags | string[] | Only include content from these HTML tags. |
excludeTags | string[] | Exclude content from these HTML tags. |
headers | Record<string, string> | Custom HTTP headers (cookies, user-agent, etc.). |
waitFor | number | Extra delay in ms before fetching content, on top of smart-wait. Default: 0. |
timeout | number | Request timeout in ms. Min: 1000, default: 60000, max: 300000. |
mobile | boolean | Emulate a mobile device. Default: false. |
maxAge | number | Use cached result if younger than this (ms). Default: 172800000 (2 days). Set 0 to bypass cache. |
minAge | number | Cache-only mode. Returns cached data if it exists, 404 otherwise. Set 1 to accept any cached data. |
storeInCache | boolean | Cache this scrape result. |
actions | ActionOption[] | Browser actions to perform before scraping (wait, click, type, scroll, screenshot, etc.). |
location | LocationConfig | Geolocation: { country: string, languages?: string[] }. |
parsers | Array<string | object> | File parsers. Default: ["pdf"]. PDF parser supports mode ("fast", "auto", "ocr"), maxPages, pages, blocks, pageMarkers. |
proxy | string | Proxy type: "basic", "stealth", "enhanced", "auto", or custom. |
skipTlsVerification | boolean | Skip TLS cert verification. Default: true. |
removeBase64Images | boolean | Strip base64 images from output. |
blockAds | boolean | Block ads and cookie popups. |
fastMode | boolean | Enable fast scraping mode. |
lockdown | boolean | Serve only cached results. |
checkPromptInjection | boolean | Scan content for prompt injection (adds 4 credits). |
redactPII | boolean | RedactPIIOptions | Redact personally identifiable information. |
profile | { name: string, saveChanges?: boolean } | Persistent browser profile for storage across sessions. |
domainTools | boolean | Return Alexandria tool contracts matched to the scraped domain. |
toolDetail | "compact" | "summary" | "full" | Detail level for tool contracts. |
integration | string | Integration identifier. |
origin | string | Origin label for telemetry. |