For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Get Geo Lookup

GET
/geo_lookup/search

Search Market locations and standard region codes for advertiser geo targeting.

Get Geo Lookup

curl "https://api.ads.openai.com/v1/geo_lookup/search?q=x" \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "count": 0,
  "query": "query",
  "results": [
    {
      "id": "id",
      "canonical_name": "canonical_name",
      "country_code": "country_code",
      "name": "name",
      "parent_country": "parent_country",
      "parent_id": "parent_id",
      "type": "type",
      "region_code": "region_code"
    }
  ]
}
Query Parameters
q: string
minLength1
limit: optional integer
minimum1
maximum100
Returns
count: integer
query: string
results: array of object { id, canonical_name, country_code, 5 more }
id: string
canonical_name: string
country_code: string
name: string
parent_country: string or null
parent_id: string or null
type: string
region_code: optional string or null
Returns Examples
200 — Example
{
  "count": 0,
  "query": "query",
  "results": [
    {
      "id": "id",
      "canonical_name": "canonical_name",
      "country_code": "country_code",
      "name": "name",
      "parent_country": "parent_country",
      "parent_id": "parent_id",
      "type": "type",
      "region_code": "region_code"
    }
  ]
}