Documentation has been updated: see help center and changelog in one place.

State

Target specific US states with Residential Proxies. Learn to use the parameters to filter IPs by state and combine it with city-level targeting.

To get a proxy from a specific US state, add the st flag to the authorization string. For example, us_california, us_illinois. Click here for a complete list of US states.

Here are a few examples of valid combinations of state parameters:

st-us_california-city-los_angeles st-us_illinois-city-springfield st-us_michigan-city-detroit st-us_ohio-city-columbus st-us_maine-city-portland st-us_tennessee-city-memphis

Code example

In this example, a query to ip.oxylabs.io/location is performed from a random IP address from California, USA:

curl -x pr.oxylabs.io:7777 -U "customer-USERNAME-st-us_california:PASSWORD" https://ip.oxylabs.io/location

Find the complete list of US states by clicking the file below:

673B
Open

Last updated

Was this helpful?