curl --request POST \
--url https://www.fetchserp.com/api/v1/scrape_js \
--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