Hora Timings

API Endpoint:

hora-timings

Method:

POST

Full URL:

https://json.freeastrologyapi.com/hora-timings


Request data
Parameter Data type Description
year Integer Year number, eg: 2023
month Integer Month number,with no leading zero eg: 7 or 8
date Integer Day number,with no leading zero eg: 5 or 6
hours Integer hours number,with no leading zero eg: 1 or 2
minutes Integer minutes number,with no leading zero eg: 0 or 1
seconds Integer seconds number,with no leading zero eg: 0 or 1
latitude float latitude number, in the range from -90 to 90
longitude float longitude number, in the range from -180 to 180
timezone float Timezone of birth location, eg: 5.5
observation_point String Either "topocentric" or "geocentric"


Sample Code



$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://json.freeastrologyapi.com/hora-timings',
  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 =>'{
    "year": 2022,
    "month": 8,
    "date": 11,
    "hours": 6,
    "minutes": 0,
    "seconds": 0,
    "latitude": 17.38333,
    "longitude": 78.4666,
    "timezone": 5.5,
    "config": {
        "observation_point": "topocentric",
        "ayanamsha": "lahiri"
    }
}',
  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/hora-timings"

payload = json.dumps({
  "year": 2022,
  "month": 8,
  "date": 11,
  "hours": 6,
  "minutes": 0,
  "seconds": 0,
  "latitude": 17.38333,
  "longitude": 78.4666,
  "timezone": 5.5,
  "config": {
    "observation_point": "topocentric",
    "ayanamsha": "lahiri"
  }
})
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/hora-timings',
  'headers': {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY_HERE'
  },
  body: JSON.stringify({
    "year": 2022,
    "month": 8,
    "date": 11,
    "hours": 6,
    "minutes": 0,
    "seconds": 0,
    "latitude": 17.38333,
    "longitude": 78.4666,
    "timezone": 5.5,
    "config": {
      "observation_point": "topocentric",
      "ayanamsha": "lahiri"
    }
  })

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



Response data


{
    "1":{
        "lord":"Moon",
        "starts_at":"2023-03-20 06:21:37",
        "ends_at":"2023-03-20 07:21:35"
    },
    "2":{
        "lord":"Saturn",
        "starts_at":"2023-03-20 07:21:35",
        "ends_at":"2023-03-20 08:21:33"
    },
    "3":{
        "lord":"Jupiter",
        "starts_at":"2023-03-20 08:21:33",
        "ends_at":"2023-03-20 09:21:31"
    },
    "4":{
        "lord":"Mars",
        "starts_at":"2023-03-20 09:21:31",
        "ends_at":"2023-03-20 10:21:29"
    },
    "5":{
        "lord":"Sun",
        "starts_at":"2023-03-20 10:21:29",
        "ends_at":"2023-03-20 11:21:27"
    },
    "6":{
        "lord":"Venus",
        "starts_at":"2023-03-20 11:21:27",
        "ends_at":"2023-03-20 12:21:25"
    },
    "7":{
        "lord":"Mercury",
        "starts_at":"2023-03-20 12:21:25",
        "ends_at":"2023-03-20 13:21:23"
    },
    "8":{
        "lord":"Moon",
        "starts_at":"2023-03-20 13:21:23",
        "ends_at":"2023-03-20 14:21:21"
    },
    "9":{
        "lord":"Saturn",
        "starts_at":"2023-03-20 14:21:21",
        "ends_at":"2023-03-20 15:21:19"
    },
    "10":{
        "lord":"Jupiter",
        "starts_at":"2023-03-20 15:21:19",
        "ends_at":"2023-03-20 16:21:17"
    },
    "11":{
        "lord":"Mars",
        "starts_at":"2023-03-20 16:21:17",
        "ends_at":"2023-03-20 17:21:15"
    },
    "12":{
        "lord":"Sun",
        "starts_at":"2023-03-20 17:21:15",
        "ends_at":"2023-03-20 18:21:13"
    },
    "13":{
        "lord":"Venus",
        "starts_at":"2023-03-20 18:21:13",
        "ends_at":"2023-03-20 19:21:11"
    },
    "14":{
        "lord":"Mercury",
        "starts_at":"2023-03-20 19:21:11",
        "ends_at":"2023-03-20 20:21:09"
    },
    "15":{
        "lord":"Moon",
        "starts_at":"2023-03-20 20:21:09",
        "ends_at":"2023-03-20 21:21:07"
    },
    "16":{
        "lord":"Saturn",
        "starts_at":"2023-03-20 21:21:07",
        "ends_at":"2023-03-20 22:21:05"
    },
    "17":{
        "lord":"Jupiter",
        "starts_at":"2023-03-20 22:21:05",
        "ends_at":"2023-03-20 23:21:03"
    },
    "18":{
        "lord":"Mars",
        "starts_at":"2023-03-20 23:21:03",
        "ends_at":"2023-03-21 00:21:01"
    },
    "19":{
        "lord":"Sun",
        "starts_at":"2023-03-21 00:21:01",
        "ends_at":"2023-03-21 01:20:59"
    },
    "20":{
        "lord":"Venus",
        "starts_at":"2023-03-21 01:20:59",
        "ends_at":"2023-03-21 02:20:57"
    },
    "21":{
        "lord":"Mercury",
        "starts_at":"2023-03-21 02:20:57",
        "ends_at":"2023-03-21 03:20:55"
    },
    "22":{
        "lord":"Moon",
        "starts_at":"2023-03-21 03:20:55",
        "ends_at":"2023-03-21 04:20:53"
    },
    "23":{
        "lord":"Saturn",
        "starts_at":"2023-03-21 04:20:53",
        "ends_at":"2023-03-21 05:20:51"
    },
    "24":{
        "lord":"Jupiter",
        "starts_at":"2023-03-21 05:20:51",
        "ends_at":"2023-03-21 06:20:49"
    }
}