SEARCH ASTROLOGY API DOCS

Geo Details/timezone_with_dst

API Endpoint
timezone_with_dst
MethodPOST
Full URL
https://json.astrologyapi.com/v1/timezone_with_dst

Request Data

ParamsData typeDescriptions

latitude

longitude

date

float

float

string

latitude , eg: 19.23232

longitude, eg: 72.23234

date, eg: "12-5-1993" // "mm-dd-yyyy"

Response Data

{
  "status": true,
  "timezone": 5.5,
  "timezone_in_ms": 19800000,
  "date": "1992-12-01T00:00:00.000Z"
}
POST
var api = 'timezone_with_dst';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var data = {
  day: 6,
  month: 1,
  year: 2000,
  hour: 7,
  min: 45,
  lat: 19.132,
  lon: 72.342,
  tzone: 5.5,
};
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
    "authorization": "Basic " + btoa(userId+":"+apiKey),
    "Content-Type":'application/json'
},
    data:JSON.stringify(data)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});