Free in betaSee integrations
Skip to content

Request bodies on /v1/scrape (beta), with clearer errors

Send a `body` with `method` set to POST, PUT, PATCH or DELETE: a JSON object or array is sent as JSON, a string is sent as-is.

Before: /v1/scrape could only read a page. You could not send a request body, so a site's API or form endpoint that needs a POST was out of reach.

Now: Send a body with method set to POST, PUT, PATCH or DELETE. A JSON object or array is sent as JSON, and a string is sent as-is. A body request is priced as a plain fetch, 1 credit. This is a beta: it is enabled per workspace on request. Refused requests now carry a fix with the corrected request where we can build one. A headers field now points you to custom_headers.

What this means for you: You can reach endpoints that need a request body through the same call, with the same pricing and errors.

Use cases

  • Query a site's search API that only accepts POST.
  • Submit a search form and read the results page.
  • Call a JSON endpoint that a page loads its data from.

Docs:POST requestsErrors: BODY_NOT_ENABLEDAPI reference: POST /v1/scrape

Back to the changelog