On this page

Time Zone by Location API

Introduction

BigDataCloud’s Time Zone by Location API is a useful API that takes latitude/longitude coordinates as input and provides detailed Time Zone information, such as offsets for UTC and daylight savings time.

By utilising this Time Zone API, you can develop features to display time zone IDs and local times for your user’s locations and provide time-based data corresponding to the user's location on websites or mobile applications.

Additionally, daylight saving time information from the API can be utilised to automatically update your application's time zone data, ensuring accuracy and precision.

Get started

This API is part of the Reverse Geocoding package and is available in free and paid plans. Please visit the Reverse Geocoding package page for limits and pricing information.

Endpoints

IPv4 only API Endpoint

Use this endpoint to force API calls routed over the IPv4 network only

GET
https://api.bigdatacloud.net/data/timezone-by-location

Dual-Stack API Endpoint

This endpoint has native IPv6 support and backs the API calls routed over both IPv4 and IPv6 networks

GET
https://api-bdc.net/data/timezone-by-location

Request

Parameter
Type
Required
Description
Parameter
latitude
Type
number (double)
Required
Yes
Description
Latitude value as per WGS 84 reference system (GPS system). Expected values are in [-90, 90] range
Parameter
longitude
Type
number (double)
Required
Yes
Description
Longitude value as per WGS 84 reference system (GPS system). Expected values are in [-180, 180] range
Parameter
utcReference
Type
integer (int64)
Required
Optional, default value: 0
Description
UTC time reference in Unix Time Seconds format. When omitted or invalid, the current time is assumed
Parameter
key
Type
string
Required
Yes
Description
Your API key

Responses

Example query

https://api-bdc.net/data/timezone-by-location?latitude=-34.9313&longitude=138.59669&key=[YOUR API KEY]
  

Example response

Schema

application/json