Search cities by name

Case-insensitive substring search over the global cities catalog.
Useful to resolve a human-readable location into a numeric city_id
before creating an offline or mixed event.

Each result is preloaded with its region and country to avoid
N+1 queries on the caller side.

Behavior:

  • Matches name LIKE "%q%" (substring, case-insensitive in MySQL utf8_general_ci).
  • Wildcards % and _ in q are escaped — no client-side wildcard matching.
  • Optional country_iso_code narrows results to a single country (case-insensitive).
  • Results are ordered by name ASC.
  • Capped at 20 results (no pagination — refine the query instead).
  • Response is cacheable for 30 minutes (Cache-Control: public, max-age=1800).

Rate limit: 100 requests/minute per IP (600 for whitelisted IPs).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required
length ≥ 1

Substring to search for in the city name. Must be non-blank. Wildcards % and _ are escaped before matching.

string
length between 2 and 2

Optional ISO 3166-1 alpha-2 country code to narrow results (case-insensitive).

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json