Countries and locations
Ask an AI engine from a chosen country, US state, city or map point, check which countries each engine serves, and run location grids of up to 9 by 9.
Answers change by market. Every task takes a country, and some engines take a finer location.
Country
Pass an ISO 3166-1 alpha-2 code as payload.country (default US). The browser's locale, timezone and language follow the country.
Countries depend on availability:
| Question | Request |
|---|---|
| Which countries are served now? | GET /v1/countries |
| Which countries is one engine served from? | GET /v1/countries?taskType=CHATGPT |
A country the engine is not served from answers 422 REGION_UNSUPPORTED. It is not retryable: pick a listed country.
Finer locations
Send at most one of these per task.
| Field | What it does | Cost |
|---|---|---|
payload.state | One US state, by its two-letter code. The list is at GET /v1/states?country=US. | +1 credit |
payload.location | A point: { "lat": 30.27, "lng": -97.74 }. | +1 credit |
payload.city | A city name, for Google engines. | none |
payload.uule | A Google location value, for Google engines. | none |
An engine that does not take the field answers 422 LOCATION_UNSUPPORTED.
Location grids
A grid asks the same prompt from every point of a grid around a place, up to 9 by 9 points. Each point is one task with its own location.
| Action | Request |
|---|---|
| Create a grid | POST /v1/grids |
| List your grids | GET /v1/grids |
What the result says
result.location reports where the task ran: country, locale, timezone and, when they apply, state, city, lat, lng. approximate is true when a finer location had to be approximated.
Last updated