Time Zone with DST

API Endpoint:

timezone-with-dst

Method:

POST

Full URL:

https://json.freeastrologyapi.com/timezone-with-dst


Request data
Parameter Data type Description
timezone String Time Zone name, eg: Europe/Paris
year integer Year number, eg: 2026
month integer Month number, eg: 7
day integer Day number, eg: 15
hour integer Hour number, eg: 10
minute integer Minute number, eg: 0


Sample Payload


    
    {
        "timezone": "Europe/Paris",
        "year": 2026,
        "month": 7,
        "day": 29,
        "hour": 2,
        "minute": 30
    }

    


Sample Code



$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://json.freeastrologyapi.com/timezone-with-dst',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "timezone": "Europe/Paris",
  "year": 2026,
  "month": 7,
  "day": 29,
  "hour": 2,
  "minute": 30
}
',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'x-api-key: YOUR_API_KEY_HERE'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;


import requests
import json

url = "https://json.freeastrologyapi.com/timezone-with-dst"

payload = json.dumps({
  "timezone": "Europe/Paris",
  "year": 2026,
  "month": 7,
  "day": 29,
  "hour": 2,
  "minute": 30
})
headers = {
  'Content-Type': 'application/json',
  'x-api-key': 'YOUR_API_KEY_HERE'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)



var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://json.freeastrologyapi.com/timezone-with-dst',
  'headers': {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY_HERE'
  },
  body: JSON.stringify({
    "timezone": "Europe/Paris",
    "year": 2026,
    "month": 7,
    "day": 29,
    "hour": 2,
    "minute": 30
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});




Response data

    
{
    "statusCode": 200,
    "timezone_with_dst": {
        "timezone": "Europe/Paris",
        "timezone_offset_minutes": 120,
        "timezone_offset_hours": 2.0,
        "timezone_offset_str": "+02:00",
        "is_dst": true
    }
}