GuidesTargeting & sessions

Geo-targeting

Choose the country, region, city or provider your requests exit from.

Location options go in your username, after any network option. The gateway routes each request through the fastest healthy exit that matches all of them.

Shell
curl -x "http://USERNAME-net-residential-country-us-region-texas-city-austin:PASSWORD@gate.riftip.com:7777" https://ip.riftip.com

#Options

OptionFormatExampleNetworks
countryISO 3166-1 alpha-2, lowercasecountry-deAll
regionRegion or state nameregion-californiaResidential, Mobile
cityCity namecity-sao_pauloResidential, Mobile
asnAutonomous system numberasn-7922Residential
carrierMobile operatorcarrier-vodafoneMobile

Names are lowercase, with spaces written as underscores. Accents are optional: city-sao_paulo and city-são_paulo are the same city.

#How matching works

  • Options narrow the pool from broad to specific: country, then region, then city.
  • If no exit matches right now, the request fails fast with 522 and X-RiftIP-Error: no_exit_available instead of silently exiting elsewhere.
  • Omit country to exit from anywhere in the pool.

Tip

Very small cities can run short of exits at quiet times of day. If you see 522s, widen to the region, or retry a little later.

#Checking where you exited

ip.riftip.com returns the country, city, ASN and network of the exit your request used — useful for asserting targeting in tests.

JSON
{ "ip": "73.184.22.91", "country": "US", "city": "Austin", "asn": 7922, "network": "residential" }