Skip to content

Targeting

Targeting narrows the set of exits eligible for a request. Start with the broadest constraint that satisfies the use case, then add detail only when the result must be more specific.

TargetTokenExample
Continentcontinent-{code}continent-eu
Countrycountry-{iso2}country-us
Regionregion-{slug}region-texas
Citycity-{slug}city-houston
ASNasn-{number}asn-7018

Use lowercase values and hyphens for spaces. Country values use a two-letter ISO code. Retrieve continent codes from GET /locations/continents for the selected package instead of hard-coding them. Available continents, regions, cities, and ASNs depend on the package and current provider catalog.

package-elite-country-us-region-texas-city-houston-asn-7018

Continent targeting is a broad alternative to country, region, city, ASN, and ISP targeting. Send only the continent token and the gateway selects an eligible country and provider inside that continent.

RequestGET https://api.ipify.org?format=json
curl 'https://api.ipify.org?format=json' \
--proxy 'http://package-elite-continent-eu:{proxy_password}@{proxy_host}:{proxy_port}'
Response200 OK
{
"ip": "203.0.113.42"
}

Replace placeholders in braces with your values. Responses use synthetic example data.

RequestGET https://api.ipify.org?format=json
curl 'https://api.ipify.org?format=json' \
--proxy 'socks5h://package-elite-continent-eu:{proxy_password}@{proxy_host}:{proxy_port}'
Response200 OK
{
"ip": "203.0.113.42"
}

Replace placeholders in braces with your values. Responses use synthetic example data.

Use one location form per credential:

{package}-continent-{continent}
{package}-country-{cc}-region-{region}-city-{city}-asn-{asn}

Do not append country, region, city, ASN, or ISP tokens to continent-{code}. If no eligible route exists inside the requested continent, the request fails rather than widening to another continent.

  1. Retrieve the package or order used for the connection.
  2. Read available location and network options for that package through the API.
  3. Choose the minimum set of constraints required by the product promise.
  4. Normalize human labels to the exact slug or identifier returned by the catalog.
  5. Cache catalog results and refresh on a package change or cache miss.
RequirementSuggested targetingAvailability impact
Any exitNo location token or country-any when supportedLowest
Continental coverageContinentLow
Country complianceCountryLow
Localized contentCountry + region or cityMedium
Network-specific validationCountry + ASNMedium to high
Exact local networkCountry + region + city + ASNHighest

Place sid and ttl after targeting tokens:

package-elite-continent-eu-sid-cart-42-ttl-1800

Session tokens work with continent and more precise location targeting. Changing the targeting while reusing the same session ID creates a different routing request. Keep both stable when continuity matters.

SAFE SANDBOX

Compose a proxy request

PLACEHOLDERS ONLY
cURL
curl --proxy 'http://package-elite-country-us:{proxy_password}@proxy.your-domain.example:8000' 'https://api.ipify.org?format=json'

Keep credentials server-side.Never embed a proxy password in frontend code or a public repository.

For API-driven catalog discovery, see catalog and proxy generation. For the provider-selection order and the explicit no-fallback rule, see routing and failure behavior.