Skip to content
AllEventsAllEventsDevelopers

City Suggestions

Suggests up to 10 cities in your coverage from a partial name. Use it for autocomplete, or to get the exact state and country for the list APIs.

GET | POST/v1/geo/city_suggestion?city={text}GET | POST/v1/geo/city_suggestion/{text}

Parameters

  • citystringRequired

    Full or partial city name. Use the query form for text with + or %.

  • cachedboolean

    Default true. false fetches fresh data. See Cached answers.

Response fields

  • citystring

    City name. Send it as city.

  • state, state_namestring or null

    State or region code and name. Send state as state.

  • countrystring

    Country name. Send it as country.

  • country_codestring or null

    2-letter country code

  • latitude, longitudenumber

    Center of the city

  • timezonestring or null

    City's UTC offset, ±HH:MM

  • urlstring

    City's AllEvents page, with your UTM code

Errors

StatusResultCause
200{"data": [], "credits_used": 0}No city matched, or none in your coverage. This response has no error field.
400city is required.city is missing

All APIs on one page