Developers

Web Scraping API

Reference

Location and API sessions

Select the proxy country for page retrieval and link related API jobs.

Page retrieval location

Set geo_location to a country name such as Germany or United States. The service uses a proxy in that location. For Google search, use SERP localization because search-localization rules are different.

Country setting
{
  "source": "universal",
  "url": "https://example.com/",
  "geo_location": "Germany"
}

Reuse a proxy session

Add session_id inside the context array. Use the same alphanumeric identifier for related jobs. An API proxy session lasts up to 25 minutes or 100 requests, whichever comes first. After expiry, reuse of the identifier starts a new session.

Session context
{
  "source": "universal",
  "url": "https://example.com/",
  "geo_location": "Germany",
  "context": [
    {
      "key": "session_id",
      "value": "collection01"
    }
  ]
}

Cookies remain explicit

A stable proxy address does not automatically supply your application’s cookies. Provide the cookie context when the workflow needs it. An unavailable peer or an expired session can interrupt continuity; inspect session-related status codes.

API and raw proxy sessions

The API uses context: session_id. Raw proxy connections use username selectors documented in the proxy reference. Do not put a raw proxy username suffix into the API JSON.

Search documentation

Search guides, products and reference pages.