formats | Option<Vec<Format>> | Output formats: Markdown, Html, RawHtml, Links, Images, Screenshot, Json, Summary, Audio, Video, ChangeTracking, Branding, Product, Menu, Question(QuestionFormat), Highlights(HighlightsFormat). Default: [Markdown]. |
only_main_content | Option<bool> | Strip headers, navs, footers. Default: true (API). |
include_tags | Option<Vec<String>> | Only include content from these HTML tags. |
exclude_tags | Option<Vec<String>> | Exclude content from these HTML tags. |
headers | Option<HashMap<String, String>> | Custom HTTP headers. |
wait_for | Option<u32> | Extra delay in ms before fetching content. Default: 0. |
timeout | Option<u32> | Request timeout in ms. Default: 60000, max: 300000. |
mobile | Option<bool> | Emulate a mobile device. Default: false. |
max_age | Option<u32> | Use cached result if younger than this (ms). Default: 172800000 (2 days). |
min_age | Option<u32> | Cache-only mode. |
store_in_cache | Option<bool> | Cache this scrape result. |
actions | Option<Vec<Action>> | Browser actions before scraping. |
location | Option<LocationConfig> | Geolocation: LocationConfig { country, languages }. |
parsers | Option<Vec<ParserConfig>> | File parsers. Default: ["pdf"]. |
proxy | Option<ProxyType> | Proxy: Basic, Stealth, Enhanced, Auto. |
skip_tls_verification | Option<bool> | Skip TLS verification. Default: true (API). |
remove_base64_images | Option<bool> | Strip base64 images from output. |
block_ads | Option<bool> | Block ads and cookie popups. |
fast_mode | Option<bool> | Enable fast scraping mode. |
lockdown | Option<bool> | Serve only cached results. |
check_prompt_injection | Option<bool> | Scan content for prompt injection (adds 4 credits). |
redact_pii | Option<bool> | Redact PII. |
profile | Option<ProfileConfig> | Persistent browser profile. |
domain_tools | Option<bool> | Return Alexandria tool contracts for the domain. |
tool_detail | Option<ToolDetail> | Tool contract detail level. |
integration | Option<String> | Integration identifier. |
json_options | Option<JsonOptions> | JSON extraction schema and prompt. |
screenshot_options | Option<ScreenshotOptions> | Screenshot quality and viewport settings. |
origin | Option<String> | Origin label (auto-set to "rust-sdk@{version}"). |