cURL
curl --request POST \ --url https://www.fetchserp.com/api/v1/scrape_js_with_proxy \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data @- <<EOF { "url": "https://fetchserp.com", "js_script": "return { h1: document.querySelector('h1')?.innerText, content: document.body.innerText }" } EOF
{ "data": { "results": { "h1": "<string>", "content": "<string>" } } }
A bearer token that will be supplied within an Authorization header as bearer <token>.
Authorization
bearer <token>
The url to scrap
The country to use for the proxy
The javascript code to execute on the page
The payload to send
success
Show child attributes