# POST Requests

If you need to send form data, you can do POST requests. POST will only work with the normal token, not JavaScript.

Doing POST requests instead of GET is very easy. You should use the same API endpoint and the same parameters, just change the method to be POST instead of GET.

Don't forget to add the data that you want to send on the request body.

  • curl
  • ruby
  • node
  • php
  • python
  • go
curl "https://api.crawlbase.com/?token=_USER_TOKEN_&url=https%3A%2F%2Fpostman-echo.com%2Fpost" \
  -F parameter1="testing some post data" \
  -F parameter2="here goes some data" \
  -F another+parameter="that is great"

Please note that in no case this feature can be used to spam or make harm to other websites. If we detect any fraudulent use, the account will be suspended and reported.

# post_content_type

By default, the content type of POST requests is application/x-www-form-urlencoded if you would like to use a different one, use this parameter encoded properly.

  • curl
  • ruby
  • node
  • php
  • python
  • go
curl "https://api.crawlbase.com/?token=_USER_TOKEN_&post_content_type=application%2Fjson%3Bcharset%3DUTF-8&url=https%3A%2F%2Fpostman-echo.com%2Fpost" \
  --request POST \
  --data '{ "param 1": "something", "param2": "something else" }'