DocumentationAPI DetailsScrape URLChange Request Method

Change Request Method

By default, ScrAPI sends a GET request to the target URL. Some websites or APIs require a different HTTP method - for example, a REST API endpoint that only responds to POST or a resource that requires DELETE to trigger specific behavior.

Set the requestMethod parameter to the desired HTTP verb to change the method used.

Important: This option is only available when useBrowser is disabled (the default). Browsers always navigate via GET - if you need to interact with forms or submit data in a browser, use Browser Commands instead.

When To Use This

  • Scraping REST APIs directly - Access API endpoints that require POST, PUT, or PATCH methods to return data.
  • Triggering server-side actions - Some websites expose content only after receiving a specific HTTP method.
  • HEAD requests for metadata - Check response headers (status code, content type, redirects) without downloading the full body - useful for link validation or monitoring.
  • Testing API endpoints - Verify endpoint behavior across different HTTP methods as part of automated testing.

Supported Methods

  • POST
  • PUT
  • DELETE
  • HEAD
  • PATCH

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

Test this request in the Playground or view the OpenAPI specification.