Skip to main content

POST Requests

The ScrapeOps Proxy API supports sending POST requests in order to scrape forms or API endpoints.

Simply send the POST request as normal, specifying the Content-Type in the headers along with adding the query parameter keep_headers=true to your request so that the API knows to use the custom header you have defined. For more info on custom headers check out the docs here.


# For JSON data
curl -H 'Content-Type: application/json' \
'{foo=bar}' \
POST \
"https://proxy.scrapeops.io/v1/?api_key=YOUR_API_KEY&url=http://httpbin.org/anything&keep_headers=true"

# For form data
curl -H 'Content-Type: application/x-www-form-urlencoded' \
'foo=bar' \
POST \
"https://proxy.scrapeops.io/v1/?api_key=YOUR_API_KEY&url=http://httpbin.org/anything&keep_headers=true"