Skip to content
Login Sign up

Sessions & proxies

Most scrapes are single-shot. When you need to hold cookies across requests or target a specific geography, use sessions and proxy controls.

A session persists cookies, browser state, and the upstream proxy IP across multiple requests. Pass session_id with any string you choose:

Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com/login&session_id=worker-42&render_js=1"
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com/dashboard&session_id=worker-42&render_js=1"

The second request reuses the login cookies from the first. Sessions live for up to 10 minutes of idle time before they expire.

  • Log in once, scrape authenticated pages on the same session
  • Walk paginated results that depend on server-side cursors
  • Hold a shopping cart open across item adds

Request a proxy from a specific country with country:

Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://shop.example.com&country=de"

Values are ISO 3166-1 alpha-2 country codes. Available globally on Growth plans and above; Starter is US/EU only.

ParameterPoolAvailable on
default (no flag)Smart-selected for the targetAll plans
premium_proxy=1Residential IPs from the 205M+ poolGrowth and above
mobile_proxy=1Mobile carrier IPsGrowth and above

Combine with country for fine control:

Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://news.example.com&premium_proxy=1&country=jp"

Route the request through your own upstream proxy with forward_proxy (URL-encoded):

Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https://example.com&forward_proxy=http%3A%2F%2Fuser%3Apass%40your-proxy.example.com%3A8080"

Useful for hybrid setups where some targets require your corporate proxy.