Scrape a target URL
Relays to the ScraperAPI sync endpoint https://api.scraperapi.com/, slotting the secret
api_key in as the leading query parameter. The target URL plus whatever ScraperAPI controls
you need live in the query string, while a client-sent api_key (query param) or
x-sapi-api_key (header) gets dropped.
Authentication
Your per-client bearer token — the API key the gateway issued to you. Present it in
Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a
401. Before the call is sent upstream the token is removed (stripped, or swapped for the
upstream’s own credential); it never makes it past the gateway.
Query parameters
Have JavaScript rendered before the page comes back (ScraperAPI control).
Send the request out through a proxy in the given country (ScraperAPI control).
Response
ScraperAPI’s answer, relayed as-is. Typically the scraped page as HTML, or JSON when a structured/auto-parse mode was requested. Bodies may be big — ScraperAPI’s ceiling is ~50MB.

