https://json.astrologyapi.com/v1/timezone_with_dstx-astrologyapi-keystringrequiredAPI access token used to authenticate requests. Send your access token in this custom header.
Accept-LanguagestringPreferred language for the response content. Supported: English - en.
latitudefloatrequiredlatitude , eg: 19.23232
longitudefloatrequiredlongitude, eg: 72.23234
datestringdate, eg: '12-5-1993' // 'mm-dd-yyyy'
curl --location 'https://json.astrologyapi.com/v1/timezone_with_dst' \
--header 'Content-Type: application/json' \
--header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
--data '{
"latitude": 25.7464,
"longitude": 82.6837,
"date": "06-27-2000"
}'
Runs with sample data — no API key needed
{
"status": true,
"timezone": 5.5,
"timezone_in_ms": 19800000,
"date": "1992-12-01T00:00:00.000Z"
}