curl -X GET "https://api.cloro.dev/v1/states?country=US" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.cloro.dev/v1/states",
params={"country": "US"},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
states = response.json()
# [{"code": "AL", "name": "Alabama"}, {"code": "AK", "name": "Alaska"}, ...]
const response = await fetch('https://api.cloro.dev/v1/states?country=US', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const states = await response.json();
// [{"code": "AL", "name": "Alabama"}, {"code": "AK", "name": "Alaska"}, ...]
[
{ "code": "AL", "name": "Alabama" },
{ "code": "AK", "name": "Alaska" },
{ "code": "AZ", "name": "Arizona" },
{ "code": "CA", "name": "California" },
{ "code": "DC", "name": "District of Columbia" },
{ "code": "NY", "name": "New York" },
{ "code": "TX", "name": "Texas" }
]
Utilities
List of states
Returns a list of US states supported for state-level geo-targeting. Only US is currently supported — other country values return an empty array.
GET
/
v1
/
states
curl -X GET "https://api.cloro.dev/v1/states?country=US" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.cloro.dev/v1/states",
params={"country": "US"},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
states = response.json()
# [{"code": "AL", "name": "Alabama"}, {"code": "AK", "name": "Alaska"}, ...]
const response = await fetch('https://api.cloro.dev/v1/states?country=US', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const states = await response.json();
// [{"code": "AL", "name": "Alabama"}, {"code": "AK", "name": "Alaska"}, ...]
[
{ "code": "AL", "name": "Alabama" },
{ "code": "AK", "name": "Alaska" },
{ "code": "AZ", "name": "Arizona" },
{ "code": "CA", "name": "California" },
{ "code": "DC", "name": "District of Columbia" },
{ "code": "NY", "name": "New York" },
{ "code": "TX", "name": "Texas" }
]
Returns the states available for state-level geo-targeting, which is supported for the US only. State-level targeting lists the providers that accept
Can I use
It depends on the operation:
state and what it costs; Google Search and Google AI Mode use the location / uule parameters for sub-country precision instead.
curl -X GET "https://api.cloro.dev/v1/states?country=US" \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
response = requests.get(
"https://api.cloro.dev/v1/states",
params={"country": "US"},
headers={"Authorization": "Bearer YOUR_API_KEY"}
)
states = response.json()
# [{"code": "AL", "name": "Alabama"}, {"code": "AK", "name": "Alaska"}, ...]
const response = await fetch('https://api.cloro.dev/v1/states?country=US', {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
const states = await response.json();
// [{"code": "AL", "name": "Alabama"}, {"code": "AK", "name": "Alaska"}, ...]
[
{ "code": "AL", "name": "Alabama" },
{ "code": "AK", "name": "Alaska" },
{ "code": "AZ", "name": "Arizona" },
{ "code": "CA", "name": "California" },
{ "code": "DC", "name": "District of Columbia" },
{ "code": "NY", "name": "New York" },
{ "code": "TX", "name": "Texas" }
]
Using states in monitor requests
Pass thecode value as state alongside country: "US":
curl -X POST "https://api.cloro.dev/v1/monitor/chatgpt" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "best Italian restaurants near me",
"country": "US",
"state": "CA"
}'
import requests
response = requests.post(
"https://api.cloro.dev/v1/monitor/chatgpt",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"prompt": "best Italian restaurants near me",
"country": "US",
"state": "CA"
}
)
Common questions
Can I use state with a non-US country?
It depends on the operation:
GET /v1/states?country=GB(or any non-US country) — returns an empty array, no error.statefield in a monitor request (e.g.,POST /v1/monitor/chatgpt) with a non-UScountry— returns a 400 validation error. Thestatefield is only accepted whencountryis"US".
How does state targeting work?
cloro routes your request through a proxy located in that US state, which changes the local results, regional content, and location-specific information the AI provider returns.Authorizations
cloro API key as a bearer token. One key grants every endpoint in this spec; per-key scopes are not available, so a client cannot request a narrower permission. Keys are created and revoked in the dashboard.
Query Parameters
Response
List of supported states
Example:
[
{ "code": "AL", "name": "Alabama" },
{ "code": "AK", "name": "Alaska" },
{ "code": "AZ", "name": "Arizona" },
{ "code": "CA", "name": "California" },
{
"code": "DC",
"name": "District of Columbia"
},
{ "code": "NY", "name": "New York" },
{ "code": "TX", "name": "Texas" }
]
Was this page helpful?