API reference
Web scraping API: the scrape endpoint
One POST request turns a URL into markdown, text, HTML or extracted JSON. Authenticate with your API key in the x-api-key header or as Authorization: Bearer fd_….
/api/v1/scrape Send a JSON body with a target URL. Add only the options your page needs.
{
"url": "https://example.com",
"formats": ["markdown"],
"only_main_content": true
} Request options
Request options
- url
- Required target URL. The API call itself is always POST; method selects the request sent to the target.
- method · headers · body
- GET by default. For a write request, pass its method, target headers and a string body.
- timeout
- 120 seconds by default; allowed range 5–300. Set your HTTP client timeout slightly higher.
- max_retries · auto_retry
- max_retries: 5 by default (1–10). auto_retry: true; actual retries add 1 token each.
Rendering options
- use_antibot · tls_profile
- TLS fingerprinting is on by default, with chrome136 (+2 tokens).
- use_js_render
- Render JavaScript (+5). Use for pages whose content loads in the browser.
- stealth_antibot · stealth_antibot_headful
- Stronger browser emulation (+7) or a full headful browser (+25).
- stealth_premium · stealth_premium_headful
- Premium fingerprint emulation (+20), or its headful mode (+30).
- stealth_new
- Experimental rendering mode (+15). Choose one rendering mode rather than stacking flags.
- js_wait_for · js_scroll · js_actions
- Wait for a load event or selector, scroll, or run up to 10 browser actions (+2 each).
Routing and output options
- use_isp · use_residential · use_mobile
- Choose one proxy type: ISP (+2), residential (+3), or mobile (+4). Datacenter is the default.
- proxy_country · proxy_profile_id
- Choose a country or a saved BYOP profile, not both. See Proxy & Geo-Targeting in the docs.
- session_id · session_ttl · proxy_sticky
- Reuse a session (TTL: 60–86,400 seconds; default 1,800) and request a sticky exit IP.
- formats · only_main_content · raw_output
- Select output fields, remove page chrome, or return one format without the JSON wrapper.
- extract_rules · extract_prompt · extract_schema
- Extract with CSS/XPath selectors or AI. See AI Extraction in the docs.
For every field and constraint, use the interactive reference or OpenAPI schema.
Response
Illustrative response, shortened for readability. Only requested output fields are populated.
{
"success": true,
"status_code": 200,
"body": "<html>...</html>",
"data": {
"markdown": "# Example Domain\n\nThis domain is for use..."
},
"meta": {"url": "https://example.com", "elapsed_ms": 1250},
"tokens_used": 3
} Check the API HTTP status first, then success. The JSON field status_code is the target page's status, not the API's. Read content from data.markdown and actual usage from tokens_used.