Changing The Request Method
This example shows how you can change the HTTP request method from GET
to another method if the target website requires it.
If you are trying to access areas of a website or making requests directly to an API that do not support the default GET
HTTP request method, you can set the requestMethod
parameter with any of the following verbs:
- POST
- PUT
- DELETE
- HEAD
- PATCH
This option is only available when
useBrowser
is disabled.
Example Request
GET https://api.scrapi.tech/v1/scrape?url=https://deventerprise.com&requestMethod=POST
POST https://api.scrapi.tech/v1/scrape
{
"url": "https://deventerprise.com",
"useBrowser": false,
"requestMethod": "POST"
}
Testing
If you want to test this request or a variation of it, head to the Playground or the OpenAPI page.