For the complete documentation index, see llms.txt. This page is also available as Markdown.

Making POST/PUT Requests

In addition to standard GET requests, ScraperAPI lets you send POST/PUT requests as well. This makes it possible to scrape APIs, submit forms and send data to endpoints that require more than just a URL.

  • API REQUEST

# Replace POST with PUT to send a PUT request instead
curl -d 'foo=bar' \
-X POST \
"http://api.scraperapi.com/?api_key=API_KEY&url=https://postman-echo.com/post"

# For form data
curl -H 'Content-Type: application/x-www-form-urlencoded' \
-F 'foo=bar' \
-X POST \
"http://api.scraperapi.com/?api_key=API_KEY&url=https://postman-echo.com/post"
  • PROXY MODE

# Replace POST with PUT to send a PUT request instead
curl -d 'foo=bar' \
-X POST \
-x "http://scraperapi:API_KEY@proxy-server.scraperapi.com:8001" -k "https://postman-echo.com/post"

# For form data
curl -H 'Content-Type: application/x-www-form-urlencoded' \
-F 'foo=bar' \
-X POST \
-x "http://scraperapi:API_KEY@proxy-server.scraperapi.com:8001" -k "https://postman-echo.com/post"

Last updated