Skip to main content
POST
Get Timezone Information

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-timezone
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-timezone
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
city
string

City name to get timezone information. PREMIUM ONLY - requires premium API subscription.

Examples:

"London"

"New York"

"Tokyo"

country
string

Country code (ISO 3166 alpha-2) or country name. PREMIUM ONLY - requires premium API subscription.

Examples:

"US"

"GB"

"JP"

"United States"

lat
number

Latitude coordinate in decimal degrees (range: -90 to 90). PREMIUM ONLY - requires premium API subscription. Must be used with 'lon' parameter.

Required range: -90 <= x <= 90
lon
number

Longitude coordinate in decimal degrees (range: -180 to 180). PREMIUM ONLY - requires premium API subscription. Must be used with 'lat' parameter.

Required range: -180 <= x <= 180
state
string

US state name or abbreviation (only for US cities). PREMIUM ONLY - requires premium API subscription.

Examples:

"California"

"CA"

"NY"

timezone
string

IANA timezone name (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo'). Available in FREE tier. Use this to get timezone details by direct timezone name lookup.

Examples:

"America/New_York"

"Europe/London"

"Asia/Tokyo"

Response

Tool result data

local_time
string
required
timezone
string
required
utc_offset
integer
required
city
string