Some advanced users may want to send POST/PUT requests in order to scrape forms and API endpoints directly. You can do this by sending a POST/PUT request through ScraperAPI. The return value will be stringified. So if you want to use it as JSON, you will need to parse it into a JSON object.
API ENDPOINT REQUEST
# Replace POST with PUT to send a PUT request insteadcurl-d'foo=bar' \-X POST \"http://api.scraperapi.com/?api_key=APIKEY&url=http://httpbin.org/anything"# For form datacurl-H'Content-Type: application/x-www-form-urlencoded' \-F 'foo=bar' \-X POST \"http://api.scraperapi.com/?api_key=APIKEY&url=http://httpbin.org/anything"
PROXY MODE
//ReplacePOSTwithPUTtosendaPUTrequestinsteadcurl-d'foo=bar' \-X POST \-x "http://scraperapi:APIKEY@proxy-server.scraperapi.com:8001"-k"http://httpbin.org/anything"//Forformdatacurl-H'Content-Type: application/x-www-form-urlencoded' \-F 'foo=bar' \-X POST \-x "http://scraperapi:APIKEY@proxy-server.scraperapi.com:8001"-k"http://httpbin.org/anything"
ASYNC MODE
You need to send a POST request to the Async service. The details of the POST request you want to send to the target site are in the data