Time Zone by IP Address API

Introduction

This API returns the same result as the Time Zone Info API but for the supplied IPv4/IPv6 IP address.

Get Started

This API is part of the IP Geolocation API Package and is available in free and paid plans. Please visit the IP Geolocation API Package 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-ip

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-ip

Request

Parameter
ip
Type
string
Required
Optional, default value: [Caller's IP]
Description
IPv4 IP address in a string or numeric format or IPv6 IP address in a string format. If omitted, the caller’s IP address is assumed
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

200
Success

Sample Query

GET
https://api-bdc.net/data/timezone-by-ip?ip=3.129.13.201&key=[YOUR API KEY]

Schema

application/json
ianaTimeIdstring
Time Zone name in IANA format
displayNamestring
Display name
effectiveTimeZoneFullstring
Effective time zone full name (adjusted to the daylight saving status)
effectiveTimeZoneShortstring
Effective time zone short name (adjusted to the daylight saving status)
utcOffsetSecondsinteger
Effective offset from UTC time in seconds
utcOffsetstring
Effective offset from UTC time
isDaylightSavingTimeboolean
Indicates if the daylight saving is on
localTimestring
Local time in ISO 8601 format
utcTimestring
UTC time in ISO 8601 format. Omitted when utcReference parameter was not supplied, or invalid

Sample Response

JSON View
403
Access denied, or your quota limit has exceeded

Sample Response

JSON View
404
Found no valid entry for the request

Sample Response

JSON View
405
The requested IP address is not valid

Sample Response

JSON View
500
An error has occurred and did not complete your request. Please try again

Sample Response

JSON View
Was this page helpful?