Date & Time

Timezone by City API

Resolve a city name to its IANA time zone and current local time, disambiguating by population.

Request Headers

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required timezone-by-city.p.rapidapi.com

Endpoints

GET /v1/time/zone

Look up the IANA time zone and current local time of a city

Parameters

NameTypeRequiredDefaultConstraints
citystringrequired—matches \S
countrystringoptional——

Code Examples

curl --request GET \
  --url 'https://timezone-by-city.p.rapidapi.com/v1/time/zone?city=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: timezone-by-city.p.rapidapi.com'
GET /v1/time/zone/countries

List all countries with timezone data in the dataset, sorted alphabetically by ISO code.

Code Examples

curl --request GET \
  --url 'https://timezone-by-city.p.rapidapi.com/v1/time/zone/countries' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: timezone-by-city.p.rapidapi.com'

Interactive Example

timezone-by-city
$ GET /v1/time/zone?city=London
{"city":"London","country":"GB","timezone":"Europe/London","current_time":"2026-07-02T13:00:00+01:00","utc_offset":"+01:00"}

Subscribe & License

Access this API with commercial-ready tiers on RapidAPI. Flexible plans designed for side-projects, startups, and high-volume production architectures.

View Pricing & Subscribe

Developer Support

Need help integrating or have a custom endpoint request? Our engineering team is here to assist with authentication, payload schemas, and high-frequency rate limit increases.

Contact API Engineering

System Performance

Monitored 24/7 with a 99.9% uptime SLA. Built atop cloud-native microservices with globally distributed edge caching to ensure ultra-low latency response times.

All Systems Operational