Skip to content
Login Sign up

Custom cookies

Attach custom cookies to a scrape by sending a Wsa-Cookie request header. The API forwards those cookies to the target site exactly as you would send them in a browser.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>
ParameterTypeRequiredDescription
api_keystringyesYour Web Scraping API key
urlstringyesTarget URL to fetch
Wsa-Cookie (header)stringnoSemicolon-separated cookie string, e.g. name1=value1; name2=value2.
Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=http%3A%2F%2Fhttpbin.org%2Fcookies" \
-H "Wsa-Accept: application/json" \
-H "Wsa-Cookie: name1=value1; name2=value2"
{
"cookies": {
"name1": "value1",
"name2": "value2"
}
}