Web Scraping
Fetch a page and return content as Markdown, HTML, JSON, or plain text. Automatically detects whether JavaScript rendering is needed, with optional stealth mode, proxy routing (proxyCountry, with optional proxyMode control), CSS/XPath field extraction, and ready-made product/contact extraction templates.
Authorizations
API Key required for all endpoints
Body
Target URL
"https://example.com"
Device type to emulate. Defaults to desktop.
desktop, mobile "desktop"
Whether to block ads
true
Whether to render JavaScript. If omitted, rendering is automatic: the page is fetched without a browser first, and JavaScript is only rendered if the page needs it. Set explicitly to true or false to force rendering on or off.
Controls when a proxy is used. false doesn't use a proxy (default), auto tries without a proxy first and retries through one if the site blocks the request, true always uses a proxy. proxyMode is optional — to route through a proxy in a specific country, you can set proxyCountry on its own.
true
Country code (ISO alpha-2) to route the request through a proxy in. Can be used on its own — proxyMode is not required. Combine it with proxyMode if you want control over when the proxy is used.
"us"
Format(s) of the scraped result. Comma-separated or array. Defaults to html-llm. markdown is recommended for most use cases.
html, markdown, json, markdown-llm, html-llm, text, text-llm "markdown,json"
Whether to get response in file format
false
Enable stealth mode to bypass basic bot detection (removes webdriver signals, patches navigator properties)
false
Seconds to wait after page load before capturing content. Helps bypass lazy-loaded content and bot checks.
2.5
Extraction mode. JSON output is used automatically when an extraction mode is requested — you don't need to set format to json. Set to template to use a ready-made extraction template instead of a custom schema — see the template field.
default, cssSchema, xpathSchema, template "default"
Extraction template to use when extractionMode is template (ignored otherwise, and has no effect unless extractionMode is set to template). Accepts product (extracts product info: title, brand, pricing, availability, images, ratings) or contact (extracts contact info: company, locations, emails, phones, social profiles).
Extraction schema (optional in default mode, required in css/xpath)
Ask AI to extract or analyze the scraped page. Always runs against the Markdown of the page regardless of the format field. Adds +7 credits on top of the base scraping cost.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Response
Successfully scraped webpage
Timestamp of the request in milliseconds
1788851167291
API status message
success, failure "success"
API status code
200
Metadata about the request
Scraped data (URL or inline content depending on output)
"https://example.com/9bulgk075ed9m3vhua5vcrp0.html"
AI extraction/analysis result. Shape depends on aiPrompt.type. Omitted when aiPrompt was not provided.