ScrapeDrive

API Reference

Complete parameter reference, error codes, and support

Parameter Reference

Complete list of all request parameters.

ParameterTypeDefaultDescription
urlstringrequiredTarget URL to scrape. Must be HTTP or HTTPS.
api_keystringrequiredYour API key for authentication.
scrape_tierstringstandardProxy tier: standard, advanced, or hyperdrive.
country_codestringISO 3166-1 alpha-2 country code. Requires advanced/hyperdrive tier.
custom_proxystringYour own proxy. Format: http(s):user:pass@host:port. Overrides tier.
session_numberintegerSticky session ID. Same number = same proxy IP.
render_jsbooleantrueUse headless browser with JS execution. Set false for fast HTTP-only.
device_typestringdesktopDevice emulation: desktop (1920x1080) or mobile (390x844).
wait_browserstringNavigation event to wait for: domcontentloaded, load, or networkidle. Requires render_js.
wait_forstringCSS selector to wait for. 15s timeout. Requires render_js.
wait_msintegerFixed delay in ms after wait_for. Range: 0–30,000. Requires render_js.
block_resourcesbooleantrueBlock images, CSS, fonts, tracking scripts. Auto-disabled for screenshots. Requires render_js.
block_adsbooleanfalseBlock advertisement scripts and content.
forward_sdrive_headersbooleanfalseForward sdrive--prefixed headers to target (prefix stripped).
timeout_msinteger95000 (sync) / 130000 (async)Max request time in ms. Range: 10,000–130,000.
result_typestringhtmlOutput format: html, page_text, or page_markdown.
screenshotbooleanfalseCapture viewport as PNG. Returns screenshot_url (24h).
screenshot_fullpagebooleanfalseCapture full scrollable page as PNG.
screenshot_selectorstringCapture specific element by CSS selector as PNG.

Errors

Status Codes

CodeMeaning
200Success (sync)
202Job accepted (async)
402Payment required — insufficient credits or no active plan
422Validation error — check your parameters
429Rate limited — slow down
504Timeout — the page took too long to load

Error Response

Error responses return JSON:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "url is required"
  }
}

Support

On this page