Skip to content
Login Sign up

Sessions

Pass the same integer to session across multiple requests to keep the same proxy IP for all of them. Useful when a target site tracks you by IP within a single navigation or login flow. Sessions expire 5 minutes after their last use.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>&session=<INTEGER>
ParameterTypeRequiredDescription
api_keystringyesYour Web Scraping API key
urlstringyesTarget URL to fetch
sessionintegernoAny integer. Reuse the same value to reuse the same proxy.
countrystringnoOptional country code used when the session is created.
proxy_typestringnodatacenter (default) or residential.
Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https%3A%2F%2Fhttpbin.org%2Fget&country=us&proxy_type=datacenter&session=100"
{
"args": {},
"headers": {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Host": "httpbin.org",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4889.0 Safari/537.36"
},
"origin": "192.241.96.150",
"url": "https://httpbin.org/get"
}