API Freaks logoAPI Freaks logo
CTRL+K

    APIs

  • Pricing
  • Resources
  • Tools

  • Contact us
CTRL+K
Sign InGet Started For Free
  • Credits Usage APIGET
  • IP Geolocation LookupGET
  • Bulk IP Geolocation LookupPOST
  • Domain WHOIS LookupGET
  • IP WHOIS LookupGET
  • ASN LookupGET
  • Domain WHOIS Historical LookupGET
  • Domain WHOIS Reverse LookupGET
  • Bulk Domain WHOIS LookupPOST
  • DNS LookupGET
  • Historical DNS LookupGET
  • Reverse DNS LookupGET
  • Bulk DNS LookupPOST
  • SSL Certificate LookupGET
  • SSL Certificate Chain LookupGET
  • Domain AvailabilityGET
  • Domain Availability with SuggestionsGET
  • Bulk Domain AvailabilityPOST
  • Website ScreenshotGET
  • Bulk ScreenshotPOST
  • Latest Exchange RatesGET
  • Historical Exchange RatesGET
  • Currency Converter LatestGET
  • Currency Converter HistoricalGET
  • Currency Time SeriesGET
  • Currency FluctuationGET
  • Geolocalized Currency ConverterGET
  • Currency SupportedGET
  • Currency SymbolsGET
  • Currency Historical Data LimitsGET
  • Live Commodity PricesGET
  • Historical Commodity PricesGET
  • Commodity FluctuationGET
  • Commodity Time SeriesGET
  • Commodity SymbolsGET
  • Timezone LookupGET
  • Timezone ConverterGET
  • GeoDB CountriesGET
  • GeoDB Country DetailsGET
  • GeoDB RegionsGET
  • GeoDB SubregionsGET
  • GeoDB Admin LevelsGET
  • GeoDB Admin UnitsGET
  • GeoDB Admin Units DetailsGET
  • GeoDB CitiesGET
  • Zip Code LookupGET
  • ZIP Code Search CityGET
  • ZIP Code Search RegionGET
  • ZIP Code Search RadiusGET
  • ZIP Code DistanceGET
  • ZIP Code Distance MatchGET
  • Email CheckerPOST
  • User Agent ParserGET
  • Bulk User Agent ParserPOST
  • Astronomy APIGET

Ready to get started?

Sign Up for Free

APIFreaks

API Catalog

  • Geolocation APIs
  • WHOIS APIs
  • DNS APIs
  • SSL APIs
  • Domain APIs
  • Screenshot APIs
  • Currency APIs
  • Commodity APIs
  • Timezone APIs
  • Zipcode APIs
  • Email APIs
  • User Agent APIs
  • Other APIs

Tools Catalog

  • Code Formatters
  • Data & Query Tools
  • Text Tools
  • Email Utilities
  • Viewers

Docs

  • APIs
  • Swagger Docs

Pricing & Accounts

  • Pricing
  • Sign up
  • Sign In

Company

  • About Us
  • Resources
  • Terms
  • Privacy

Copyright © 2024

Made in Pakistan

Timezone API

GET

https://api.apifreaks.com/v1.0/geolocation/timezone

format
Format of the Response
ipString
IPv4/IPv6 address to extract timezone info using IP address
tzString
Extract timezone information using timezone name
locationString
Extract timezone information using location (preferably city and country)
latNumber
Latitude to extract timezone information using location coordinates
longNumber
Longitude to extract timezone information using location coordinates
langString
Response language of "location" field in case of lookup through IP address / location address
iata_codeString
Extract timezone info using 3-letter IATA airport code
icao_codeString
Extract timezone info using 4-letter ICAO airport code
lo_codeString
Extract timezone info using 5-letter UN/LO CODE city code
Media Type
JSON
Body

API Keystringrequired
Your private API key. Get it from API Freaks dashboard.

Sample Responses

400
400
400
404
400
400
400
LANGUAGE
Python
PHP
Java
Node
Ruby
JavaScript
C#
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

Below are the response fields when performing a lookup using geographical coordinates or a time-zone name:

FieldTypeRequirementDescription
ipStringOptional
IP address
locationObjectOptional
Location information
time_zoneObjectMandatory
Timezone information
airport_detailsObjectOptional
Airport details
lo_code_detailsObjectOptional
LO code details

The 'timezone' object includes the following fields:

FieldTypeRequirementDescription
nameStringMandatory
The name of the timezone, e.g., "Asia/Karachi"
offsetNumberMandatory
The time difference in hours from UTC for the specified timezone without considering DST
offset_with_dstNumberMandatory
The time difference in hours from UTC for the specified timezone, including DST
dateStringMandatory
The current date in the specified timezone in YYYY-MM-DD format
date_timeStringMandatory
The current date and time in the specified timezone in ISO 8601 format
date_time_txtStringMandatory
The current date and time in a human-readable format, e.g., "Tuesday, September 02, 2025 14:56:21"
date_time_wtiStringMandatory
The current date and time in the specified timezone in "Weekday, Time" format
date_time_ymdStringMandatory
The current date and time in "YYYY-MM-DD HH:MM:SS" format
date_time_unixFloatMandatory
The current date and time as a Unix timestamp (seconds since Jan 1, 1970)
time_24StringMandatory
The current time in 24-hour format, e.g., "14:56:21"
time_12StringMandatory
The current time in 12-hour format with AM/PM, e.g., "02:56:21 PM"
weekNumberMandatory
The current week number of the year in the specified timezone
monthNumberMandatory
The current month number in the specified timezone
yearNumberMandatory
The current year in the specified timezone
year_abbrStringMandatory
The abbreviated current year in the specified timezone, e.g., "25" for 2025
current_tz_abbreviationStringMandatory
The current timezone abbreviation
current_tz_full_nameStringMandatory
The current timezone full name
standard_tz_abbreviationStringMandatory
The standard timezone abbreviation
standard_tz_full_nameStringMandatory
The standard timezone full name
is_dstBooleanMandatory
Indicates whether Daylight Saving Time (DST) is currently in effect in the specified timezone
dst_savingsNumberMandatory
The amount of time (in hours) by which clocks are adjusted for DST
dst_existsBooleanMandatory
Indicates whether DST is observed in the specified timezone
dst_start.utc_timeStringOptional
The date and time in UTC when DST begins.
dst_start.durationStringOptional
The time change that occurs when DST starts.
dst_start.gapBooleanOptional
Is there a gap when the clocks jump forward or not.
dst_start.date_time_afterStringOptional
The local date and time that immediately follows the start of DST.
dst_start.date_time_beforeStringOptional
The local date and time immediately before DST begins.
dst_start.overlapBooleanOptional
Whether there is an overlap of time due to clocks being set back when DST starts.
dst_end.utc_timeStringOptional
The date and time in UTC when DST ends.
dst_end.durationStringOptional
The time change that occurs when DST ends.
dst_end.gapBooleanOptional
Is there a gap when the clocks jump backward or not.
dst_end.date_time_afterStringOptional
The local date and time that immediately follows the ends of DST.
dst_end.date_time_beforeStringOptional
The local date and time immediately before DST ends.
dst_end.overlapBooleanOptional
Whether there is an overlap of time due to clocks being set back when DST ends.

The following fields will be appended to the above response based on the lookup performed using a location address:

FieldTypeRequirementDescription
location_stringStringMandatory
The complete geographical location, including country, state, city, and locality
country_nameStringMandatory
Country name
state_provStringMandatory
The state or province of the geographical location
cityStringMandatory
The city of the geographical location
localityStringMandatory
The locality or neighborhood of the geographical location
latitudeStringMandatory
The latitude coordinate of the geographical location
longitudeStringMandatory
The longitude coordinate of the geographical location

The following fields will be appended to the above response based on the lookup performed using an IP address:

FieldTypeRequirementDescription
continent_codeStringMandatory
The 2-letter continent code
continent_nameStringMandatory
The continent name
country_code2StringMandatory
The 2-letter country code (ISO 3166-1 alpha-2)
country_code3StringMandatory
The 3-letter country code (ISO 3166-1 alpha-3)
country_nameStringMandatory
The common name of the country
country_name_officialStringMandatory
The official name of the country
is_euBooleanMandatory
Is the country belong to European Union?
state_provStringMandatory
The state or province of the geographical location
state_codeStringMandatory
The state or province code
districtStringMandatory
The district of the geographical location
cityStringMandatory
The city of the geographical location
zipcodeStringMandatory
The ZIP code of the geographical location
latitudeStringMandatory
The latitude coordinate of the geographical location
longitudeStringMandatory
The longitude coordinate of the geographical location

The following fields will be appended to the above response based on the lookup performed using an ICAO or an IATA code:

FieldTypeRequirementDescription
typeStringMandatory
The type of airport (small, medium, large)
nameStringMandatory
The full name of the airport
longitudeStringMandatory
The longitude coordinate of the airport location
latitudeStringMandatory
The latitude coordinate of the airport location
elevation_ftNumberMandatory
The elevation of the airport in feet
continent_codeStringMandatory
The 2-letter continent code where the airport is located
country_codeStringMandatory
The 2-letter country code where the airport is located
state_codeStringMandatory
The state or province code where the airport is located
cityStringMandatory
The city or municipality where the airport is located
iata_codeStringMandatory
The IATA (International Air Transport Association) code for the airport
icao_codeStringMandatory
The ICAO (International Civil Aviation Organization) code for the airport
faa_codeStringMandatory
The FAA (Federal Aviation Administration) code for the airport

The following fields will be appended to the above response based on the lookup performed using a UN/LO CODE code:

FieldTypeRequirementDescription
lo_codeStringMandatory
The UN/LO CODE code for the location
cityStringMandatory
The name of the city or location
longitudeStringMandatory
The longitude coordinate of the location
latitudeStringMandatory
The latitude coordinate of the location
state_codeStringMandatory
The state or province code of the location
country_codeStringMandatory
The 2-letter country code of the location
country_nameStringMandatory
The name of the country
location_typeStringMandatory
The type of the location (e.g., port, airport, rail terminal)