City targeting
The level most people reach for, and the first one narrow enough to run out of devices. Read the volume warning below before you build on it.
https://api.ipify.orgcurl --proxy-header "X-Rayobyte-Country: US" \ --proxy-header "X-Rayobyte-City: dallas" \ -x us-east.gw.rayobyte.com:8000 https://api.ipify.orgValue rules
Section titled “Value rules”Letters, underscores and full stops. Case is ignored. Multi-word cities use an underscore:
-city-los_angeles-city-san_franciscoDo not use hyphens or spaces. A hyphen starts a new option, so
-city-los-angeles asks for the city los and then tries to parse angeles as
an option name.
City targeting narrows hard
Section titled “City targeting narrows hard”A city is a much smaller slice of the pool than a country. Combined with a session or an ASN, it is easy to describe a set with no devices online in it, which fails the request rather than falling back to a nearby city.
If you are seeing a lot of failures, drop to state and see whether the volume you need exists at that level first.
Send the country too
Section titled “Send the country too”# Which Springfield?-city-springfield
# Better.-country-US-region-illinois-city-springfieldFinding valid values
Section titled “Finding valid values”The Geolocation picker in the dashboard lists the cities we currently have coverage in. It reads the live pool, so it reflects what is actually online now.
Was this page helpful?
Thanks — that helps us fix it.