Skip to main content

Code Examples

OmniScrape is a plain REST API, so any language that can send an HTTP POST works — no SDK required. Below is the same request (POST /v1/scrape) in the most common languages. Set your key in an environment variable named OMNISCRAPE_KEY and never hard-code it.

curl -X POST https://api.omniscrape.io/v1/scrape \
-H "X-API-Key: $OMNISCRAPE_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"mode": "auto",
"output_format": "markdown"
}'

Tip: copy the snippet from your dashboard

The Web Unlocker playground generates a ready-to-paste cURL, Python, and Node snippet from whatever options you toggle — the fastest way to get an exact request for your use case.

  • Timeout — set your HTTP client timeout to at least 120 seconds. js_rendering requests can take several seconds, and the connection stays open until the page is ready.
  • Retries — retry on 429, 500, 502, 503 with exponential backoff. See Errors.
  • Concurrency — respect your plan's concurrency limit. See Rate limits.