# Timezone Lookup API

> Timezone Lookup resolves a city, an IANA zone name or a latitude and longitude to its local time, UTC offset, and calendar date. Responses include 12-hour and 24-hour clocks plus the minute offset from GMT.

**Endpoint:** `GET https://api.apiverve.com/v1/timezonelookup`  
**Category:** Data Lookup  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/timezonelookup

## Overview

Pass a city name, a standard IANA timezone string or a pair of coordinates to retrieve the current date, multiple clock formats, and the UTC offset in minutes. Paid plans add Unix timestamps, daylight saving time flags, and seasonal transition schedules.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/timezonelookup?city=Harare" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `city` | string | Yes | The city name for which you want to get the data (e.g., Harare). A name shared by several places resolves to the best-known one (London is London, UK); add a state, province or country after a comma to pick another (e.g., Portland, Maine, London, Ontario or Toronto, ON; Canadian and Australian abbreviations such as ON, QC, NSW and VIC are understood). Smaller cities (Plano, TX) and common former or local names (Bangalore, Bombay, NYC, Munchen) are found too |

## Response fields

- `timezone` — string · IANA timezone identifier for the city
- `timezone_offset` — number · Timezone UTC offset in minutes from GMT
- `date` — string · Current date in YYYY-MM-DD format
- `time` — string · Current time in HH:MM format
- `time24` — string · Current time in 24-hour HH:MM:SS format
- `time12` — string · Current time in 12-hour AM/PM format
- `day` — string · Current day of week name · (premium)
- `month` — string · Current month name · (premium)
- `year` — string · Current year as string value · (premium)
- `unix` — string · Current Unix timestamp in seconds · (premium)
- `dst` — boolean · Whether daylight saving time is currently active · (premium)
- `dst_start` — string · Start of the current DST period, or the next one if DST is not in effect (YYYY-MM-DD HH:mm:ss, local time); null when the zone has no DST · (premium)
- `dst_end` — string · End of the current DST period, or of the next one if DST is not in effect (YYYY-MM-DD HH:mm:ss, local time); null when the zone has no DST · (premium)
- `dst_name` — string · Daylight saving time zone abbreviation · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "timezone": "Africa/Harare",
    "timezone_offset": 120,
    "date": "2025-12-17",
    "time": "00:30",
    "time24": "00:30:23",
    "time12": "12:30:23 AM",
    "day": "Wednesday",
    "month": "December",
    "year": "2025",
    "unix": "1765924223",
    "dst": false,
    "dst_start": "2025-12-17 00:30:23",
    "dst_end": "2025-12-17 00:30:23",
    "dst_name": "CAT"
  }
}
```

## Use cases

- **World Clock Dashboards** — Remote work platforms query employee cities to display current local times in 12-hour or 24-hour formats across distributed teams.
- **Travel Itinerary Display** — Flight and hotel booking services convert destination cities into local arrival dates and formatted times for passenger itineraries.
- **Meeting Availability Coordination** — When participants choose their home city, calendar software queries the minute offset to convert mutual open slots into local meeting times.
- **Scheduled Notification Delivery** — Marketing automation platforms check subscriber time zones before dispatching campaigns so messages arrive during standard local daytime hours.

## SDKs

- **npm** — `npm install @apiverve/timezonelookup` (https://www.npmjs.com/package/@apiverve/timezonelookup)
- **PyPI** — `pip install apiverve-timezonelookup` (https://pypi.org/project/apiverve-timezonelookup/)
- **NuGet** — `dotnet add package APIVerve.API.TimezoneLookup` (https://www.nuget.org/packages/APIVerve.API.TimezoneLookup)
- **Source** — https://github.com/apiverve/timezonelookup-api

## More

- Full reference: https://docs.apiverve.com/ref/timezonelookup
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
