POST
/
api
/
v1
/
scrape_js_with_proxy
curl --request POST \
  --url https://www.fetchserp.com/api/v1/scrape_js_with_proxy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://fetchserp.com",
  "js_script": "return { h1: document.querySelector('\''h1'\'')?.innerText, content: document.body.innerText }"
}'
{
  "data": {
    "results": {
      "h1": "<string>",
      "content": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

A bearer token that will be supplied within an Authorization header as bearer <token>.

Query Parameters

url
string
required

The url to scrap

country
string
required

The country to use for the proxy

js_script
string

The javascript code to execute on the page

Body

application/json

The payload to send

The body is of type object.

Response

200
application/json

success

The response is of type object.