scrape_post
Send POST requests with custom headers and body data through Scrapingdog's proxy to submit forms or interact with POST-only APIs, returning the target site's response.
Instructions
Sends a POST request (with custom headers and/or form/body data) through Scrapingdog to an external URL or form, e.g. for submitting forms or hitting POST-only APIs/endpoints while still benefiting from Scrapingdog's proxy and rendering infrastructure. Returns the target site's response body. [Credits: Same credit structure as the GET /scrape endpoint (1 base credit; more if dynamic/premium/stealth_mode are combined) — the docs do not state a different cost for POST specifically.] Notes: Mechanics: api_key and url stay as query-string parameters on the https://api.scrapingdog.com/scrape endpoint exactly like the GET variant; only the HTTP method changes to POST and the request body you send is what gets relayed as the POST body to the target url. Documented example uses application/x-www-form-urlencoded body (foo=bar) via curl -d / requests.post(data=...) / axios.post(body, ...). Custom headers can be combined with this (see custom_headers feature) for authenticated POST submissions. All other /scrape query parameters (dynamic, premium, country, session_number, stealth_mode, custom_headers, wait) are presumably still available since it is the same endpoint, though the POST-specific doc page only demonstrates api_key + url + body. Returns: The target site's raw response body (typically HTML) as returned after Scrapingdog submits the POST request on your behalf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The target URL to POST to, passed as a query string parameter (same as GET). | |
| body | Yes | Raw POST body forwarded verbatim to the target URL (e.g. form-encoded 'foo=bar&baz=1' or a JSON string). Scrapingdog relays it as its own POST body. | |
| content_type | No | Content-Type header for the forwarded body (e.g. application/x-www-form-urlencoded or application/json). (default: application/x-www-form-urlencoded) |