ASTROLOGY API REFERENCE DOCUMENTATION

Western Horoscope/Western Horoscope

Get Western Horoscope

API Endpoint
western_horoscope
Method & Url
MethodFull Url
POSThttps://json.apireports.com/v1/western_horoscope

House Type

Key Name : house_type
Data Type : string
Default Value : placidus

Values:

  1. placidus
  2. koch
  3. porphyry
  4. equal
  5. whole_sign
  6. topocentric
  7. sripati
  8. horizontal
  9. campanus
  10. morinus

Node Type

Key Name : node_type
Data Type : string
Default Value : true

Values

  1. true
  2. mean

Aspects

Key Name : aspects
Data Type : string
Default Value : major

Values

  1. all
  2. major
  3. none

'all' : All the aspects given
'major' : Only major aspects given
'none' : No aspects given

Aspects Orb

Key Name : aspect_orb
Data Type :  Integer
Default Value : 2

You can send the orb range from 1-12.

Response Data

{
  "status_code": 200,
  "status": true,
  "data": {
    "planets": {
      "sun": {
        "planet_id": 1,
        "planet_name": "Sun",
        "planet_symbol": "☉",
        "full_deg": {
          "deg": 172.2174828,
          "formatted": {
            "full": "172:13:03",
            "deg": "172",
            "min": "13",
            "sec": "03"
          }
        },
        "norm_deg": {
          "deg": 22.2174828,
          "formatted": {
            "full": "22:13:03",
            "deg": "22",
            "min": "13",
            "sec": "03"
          }
        },
        "speed": 0.9742975,
        "is_retro": false,
        "sign": {
          "id": 6,
          "name": "Virgo",
          "symbol": "♍︎"
        },
        "house": 9
      },
      "moon": {
        "planet_id": 2,
        "planet_name": "Moon",
        "planet_symbol": "☽",
        "full_deg": {
          "deg": 297.9334351,
          "formatted": {
            "full": "297:56:00",
            "deg": "297",
            "min": "56",
            "sec": "00"
          }
        },
        "norm_deg": {
          "deg": 27.933435099999997,
          "formatted": {
            "full": "27:56:00",
            "deg": "27",
            "min": "56",
            "sec": "00"
          }
        },
        "speed": 13.402284,
        "is_retro": false,
        "sign": {
          "id": 10,
          "name": "Capricorn",
          "symbol": "♑"
        },
        "house": 2
      },
      "mercury": {
        "planet_id": 3,
        "planet_name": "Mercury",
        "planet_symbol": "☿",
        "full_deg": {
          "deg": 196.0482795,
          "formatted": {
            "full": "196:02:54",
            "deg": "196",
            "min": "02",
            "sec": "54"
          }
        },
        "norm_deg": {
          "deg": 16.048279500000007,
          "formatted": {
            "full": "16:02:54",
            "deg": "16",
            "min": "02",
            "sec": "54"
          }
        },
        "speed": 1.3272426,
        "is_retro": false,
        "sign": {
          "id": 7,
          "name": "Libra",
          "symbol": "♎"
        },
        "house": 10
      },
      "venus": {
        "planet_id": 4,
        "planet_name": "Venus",
        "planet_symbol": "♀",
        "full_deg": {
          "deg": 216.0065431,
          "formatted": {
            "full": "216:00:24",
            "deg": "216",
            "min": "00",
            "sec": "24"
          }
        },
        "norm_deg": {
          "deg": 6.006543099999988,
          "formatted": {
            "full": "06:00:24",
            "deg": "06",
            "min": "00",
            "sec": "24"
          }
        },
        "speed": 0.7407717,
        "is_retro": false,
        "sign": {
          "id": 8,
          "name": "Scorpio",
          "symbol": "♏"
        },
        "house": 11
      },
      "mars": {
        "planet_id": 5,
        "planet_name": "Mars",
        "planet_symbol": "♂",
        "full_deg": {
          "deg": 108.6338098,
          "formatted": {
            "full": "108:38:02",
            "deg": "108",
            "min": "38",
            "sec": "02"
          }
        },
        "norm_deg": {
          "deg": 18.633809799999995,
          "formatted": {
            "full": "18:38:02",
            "deg": "18",
            "min": "38",
            "sec": "02"
          }
        },
        "speed": 0.6064057,
        "is_retro": false,
        "sign": {
          "id": 4,
          "name": "Cancer",
          "symbol": "♋︎"
        },
        "house": 8
      },
      "jupiter": {
        "planet_id": 6,
        "planet_name": "Jupiter",
        "planet_symbol": "♃",
        "full_deg": {
          "deg": 222.1527278,
          "formatted": {
            "full": "222:09:10",
            "deg": "222",
            "min": "09",
            "sec": "10"
          }
        },
        "norm_deg": {
          "deg": 12.152727800000008,
          "formatted": {
            "full": "12:09:10",
            "deg": "12",
            "min": "09",
            "sec": "10"
          }
        },
        "speed": 0.1754518,
        "is_retro": false,
        "sign": {
          "id": 8,
          "name": "Scorpio",
          "symbol": "♏"
        },
        "house": 11
      },
      "saturn": {
        "planet_id": 7,
        "planet_name": "Saturn",
        "planet_symbol": "♄",
        "full_deg": {
          "deg": 337.9901419,
          "formatted": {
            "full": "337:59:25",
            "deg": "337",
            "min": "59",
            "sec": "25"
          }
        },
        "norm_deg": {
          "deg": 7.990141900000026,
          "formatted": {
            "full": "07:59:25",
            "deg": "07",
            "min": "59",
            "sec": "25"
          }
        },
        "speed": -0.0725479,
        "is_retro": true,
        "sign": {
          "id": 12,
          "name": "Pisces",
          "symbol": "♓"
        },
        "house": 3
      },
      "uranus": {
        "planet_id": 8,
        "planet_name": "Uranus",
        "planet_symbol": "♅",
        "full_deg": {
          "deg": 292.5045042,
          "formatted": {
            "full": "292:30:16",
            "deg": "292",
            "min": "30",
            "sec": "16"
          }
        },
        "norm_deg": {
          "deg": 22.504504199999985,
          "formatted": {
            "full": "22:30:16",
            "deg": "22",
            "min": "30",
            "sec": "16"
          }
        },
        "speed": -0.0136581,
        "is_retro": true,
        "sign": {
          "id": 10,
          "name": "Capricorn",
          "symbol": "♑"
        },
        "house": 2
      },
      "neptune": {
        "planet_id": 9,
        "planet_name": "Neptune",
        "planet_symbol": "♆",
        "full_deg": {
          "deg": 290.6558306,
          "formatted": {
            "full": "290:39:21",
            "deg": "290",
            "min": "39",
            "sec": "21"
          }
        },
        "norm_deg": {
          "deg": 20.6558306,
          "formatted": {
            "full": "20:39:21",
            "deg": "20",
            "min": "39",
            "sec": "21"
          }
        },
        "speed": -0.0092576,
        "is_retro": true,
        "sign": {
          "id": 10,
          "name": "Capricorn",
          "symbol": "♑"
        },
        "house": 2
      },
      "pluto": {
        "planet_id": 10,
        "planet_name": "Pluto",
        "planet_symbol": "♇",
        "full_deg": {
          "deg": 235.7353489,
          "formatted": {
            "full": "235:44:07",
            "deg": "235",
            "min": "44",
            "sec": "07"
          }
        },
        "norm_deg": {
          "deg": 25.73534889999999,
          "formatted": {
            "full": "25:44:07",
            "deg": "25",
            "min": "44",
            "sec": "07"
          }
        },
        "speed": 0.0220802,
        "is_retro": false,
        "sign": {
          "id": 8,
          "name": "Scorpio",
          "symbol": "♏"
        },
        "house": 12
      },
      "chiron": {
        "planet_id": 11,
        "planet_name": "Chiron",
        "planet_symbol": "⚷",
        "full_deg": {
          "deg": 165.8014808,
          "formatted": {
            "full": "165:48:05",
            "deg": "165",
            "min": "48",
            "sec": "05"
          }
        },
        "norm_deg": {
          "deg": 15.801480800000007,
          "formatted": {
            "full": "15:48:05",
            "deg": "15",
            "min": "48",
            "sec": "05"
          }
        },
        "speed": 0.14131,
        "is_retro": false,
        "sign": {
          "id": 6,
          "name": "Virgo",
          "symbol": "♍︎"
        },
        "house": 9
      },
      "node": {
        "planet_id": 20,
        "planet_name": "True Node",
        "planet_symbol": "☊",
        "full_deg": {
          "deg": 226.4002808,
          "formatted": {
            "full": "226:24:01",
            "deg": "226",
            "min": "24",
            "sec": "01"
          }
        },
        "norm_deg": {
          "deg": 16.40028079999999,
          "formatted": {
            "full": "16:24:01",
            "deg": "16",
            "min": "24",
            "sec": "01"
          }
        },
        "speed": -0.095774,
        "is_retro": false,
        "sign": {
          "id": 8,
          "name": "Scorpio",
          "symbol": "♏"
        },
        "house": 11
      },
      "lilith": {
        "planet_id": 13,
        "planet_name": "Lilith",
        "planet_symbol": "⚸",
        "full_deg": {
          "deg": 47.8777336,
          "formatted": {
            "full": "47:52:40",
            "deg": "47",
            "min": "52",
            "sec": "40"
          }
        },
        "norm_deg": {
          "deg": 17.8777336,
          "formatted": {
            "full": "17:52:40",
            "deg": "17",
            "min": "52",
            "sec": "40"
          }
        },
        "speed": 0.110738,
        "is_retro": false,
        "sign": {
          "id": 2,
          "name": "Taurus",
          "symbol": "♉︎"
        },
        "house": 5
      },
      "pof": {
        "planet_id": 14,
        "planet_name": "Part of Fortune",
        "planet_symbol": "⊗",
        "full_deg": {
          "deg": 20.088011199999983,
          "formatted": {
            "full": "20:05:17",
            "deg": "20",
            "min": "05",
            "sec": "17"
          }
        },
        "norm_deg": {
          "deg": 20.088011199999983,
          "formatted": {
            "full": "20:05:17",
            "deg": "20",
            "min": "05",
            "sec": "17"
          }
        },
        "speed": 0,
        "is_retro": false,
        "sign": {
          "id": 1,
          "name": "Aries",
          "symbol": "♈︎"
        },
        "house": 4
      },
      "ascendant": {
        "planet_id": 15,
        "planet_name": "Ascendant",
        "planet_symbol": "AC",
        "full_deg": {
          "deg": 254.3720589,
          "formatted": {
            "full": "254:22:19",
            "deg": "254",
            "min": "22",
            "sec": "19"
          }
        },
        "norm_deg": {
          "deg": 14.372058900000013,
          "formatted": {
            "full": "14:22:19",
            "deg": "14",
            "min": "22",
            "sec": "19"
          }
        },
        "speed": 0,
        "is_retro": false,
        "sign": {
          "id": 9,
          "name": "Sagittarius",
          "symbol": "♐"
        },
        "house": 1
      },
      "descendant": {
        "planet_id": 16,
        "planet_name": "Descendant",
        "planet_symbol": "DC",
        "full_deg": {
          "deg": 74.37205890000001,
          "formatted": {
            "full": "74:22:19",
            "deg": "74",
            "min": "22",
            "sec": "19"
          }
        },
        "norm_deg": {
          "deg": 14.372058900000013,
          "formatted": {
            "full": "14:22:19",
            "deg": "14",
            "min": "22",
            "sec": "19"
          }
        },
        "speed": 0,
        "is_retro": false,
        "sign": {
          "id": 3,
          "name": "Gemini",
          "symbol": "♊︎"
        },
        "house": 7
      }
    },
    "houses": [
      {
        "house": 1,
        "full_deg": {
          "deg": 254.3720589,
          "formatted": {
            "full": "254:22:19",
            "deg": "254",
            "min": "22",
            "sec": "19"
          }
        },
        "norm_deg": {
          "deg": 14.372058900000013,
          "formatted": {
            "full": "14:22:19",
            "deg": "14",
            "min": "22",
            "sec": "19"
          }
        },
        "sign": {
          "id": 9,
          "name": "Sagittarius",
          "symbol": "♐"
        }
      },
      {
        "house": 2,
        "full_deg": {
          "deg": 286.0644123,
          "formatted": {
            "full": "286:03:52",
            "deg": "286",
            "min": "03",
            "sec": "52"
          }
        },
        "norm_deg": {
          "deg": 16.064412300000015,
          "formatted": {
            "full": "16:03:52",
            "deg": "16",
            "min": "03",
            "sec": "52"
          }
        },
        "sign": {
          "id": 10,
          "name": "Capricorn",
          "symbol": "♑"
        }
      },
      {
        "house": 3,
        "full_deg": {
          "deg": 321.0299964,
          "formatted": {
            "full": "321:01:48",
            "deg": "321",
            "min": "01",
            "sec": "48"
          }
        },
        "norm_deg": {
          "deg": 21.029996400000016,
          "formatted": {
            "full": "21:01:48",
            "deg": "21",
            "min": "01",
            "sec": "48"
          }
        },
        "sign": {
          "id": 11,
          "name": "Aquarius",
          "symbol": "♒"
        }
      },
      {
        "house": 4,
        "full_deg": {
          "deg": 355.7713767,
          "formatted": {
            "full": "355:46:17",
            "deg": "355",
            "min": "46",
            "sec": "17"
          }
        },
        "norm_deg": {
          "deg": 25.77137670000002,
          "formatted": {
            "full": "25:46:17",
            "deg": "25",
            "min": "46",
            "sec": "17"
          }
        },
        "sign": {
          "id": 12,
          "name": "Pisces",
          "symbol": "♓"
        }
      },
      {
        "house": 5,
        "full_deg": {
          "deg": 26.1609343,
          "formatted": {
            "full": "26:09:39",
            "deg": "26",
            "min": "09",
            "sec": "39"
          }
        },
        "norm_deg": {
          "deg": 26.1609343,
          "formatted": {
            "full": "26:09:39",
            "deg": "26",
            "min": "09",
            "sec": "39"
          }
        },
        "sign": {
          "id": 1,
          "name": "Aries",
          "symbol": "♈︎"
        }
      },
      {
        "house": 6,
        "full_deg": {
          "deg": 51.6611001,
          "formatted": {
            "full": "51:39:40",
            "deg": "51",
            "min": "39",
            "sec": "40"
          }
        },
        "norm_deg": {
          "deg": 21.6611001,
          "formatted": {
            "full": "21:39:40",
            "deg": "21",
            "min": "39",
            "sec": "40"
          }
        },
        "sign": {
          "id": 2,
          "name": "Taurus",
          "symbol": "♉︎"
        }
      },
      {
        "house": 7,
        "full_deg": {
          "deg": 74.3720589,
          "formatted": {
            "full": "74:22:19",
            "deg": "74",
            "min": "22",
            "sec": "19"
          }
        },
        "norm_deg": {
          "deg": 14.372058899999999,
          "formatted": {
            "full": "14:22:19",
            "deg": "14",
            "min": "22",
            "sec": "19"
          }
        },
        "sign": {
          "id": 3,
          "name": "Gemini",
          "symbol": "♊︎"
        }
      },
      {
        "house": 8,
        "full_deg": {
          "deg": 106.0644123,
          "formatted": {
            "full": "106:03:52",
            "deg": "106",
            "min": "03",
            "sec": "52"
          }
        },
        "norm_deg": {
          "deg": 16.0644123,
          "formatted": {
            "full": "16:03:52",
            "deg": "16",
            "min": "03",
            "sec": "52"
          }
        },
        "sign": {
          "id": 4,
          "name": "Cancer",
          "symbol": "♋︎"
        }
      },
      {
        "house": 9,
        "full_deg": {
          "deg": 141.0299964,
          "formatted": {
            "full": "141:01:48",
            "deg": "141",
            "min": "01",
            "sec": "48"
          }
        },
        "norm_deg": {
          "deg": 21.029996399999987,
          "formatted": {
            "full": "21:01:48",
            "deg": "21",
            "min": "01",
            "sec": "48"
          }
        },
        "sign": {
          "id": 5,
          "name": "Leo",
          "symbol": "♌︎"
        }
      },
      {
        "house": 10,
        "full_deg": {
          "deg": 175.7713767,
          "formatted": {
            "full": "175:46:17",
            "deg": "175",
            "min": "46",
            "sec": "17"
          }
        },
        "norm_deg": {
          "deg": 25.77137669999999,
          "formatted": {
            "full": "25:46:17",
            "deg": "25",
            "min": "46",
            "sec": "17"
          }
        },
        "sign": {
          "id": 6,
          "name": "Virgo",
          "symbol": "♍︎"
        }
      },
      {
        "house": 11,
        "full_deg": {
          "deg": 206.1609343,
          "formatted": {
            "full": "206:09:39",
            "deg": "206",
            "min": "09",
            "sec": "39"
          }
        },
        "norm_deg": {
          "deg": 26.160934300000008,
          "formatted": {
            "full": "26:09:39",
            "deg": "26",
            "min": "09",
            "sec": "39"
          }
        },
        "sign": {
          "id": 7,
          "name": "Libra",
          "symbol": "♎"
        }
      },
      {
        "house": 12,
        "full_deg": {
          "deg": 231.6611001,
          "formatted": {
            "full": "231:39:40",
            "deg": "231",
            "min": "39",
            "sec": "40"
          }
        },
        "norm_deg": {
          "deg": 21.6611001,
          "formatted": {
            "full": "21:39:40",
            "deg": "21",
            "min": "39",
            "sec": "40"
          }
        },
        "sign": {
          "id": 8,
          "name": "Scorpio",
          "symbol": "♏"
        }
      }
    ],
    "ascendant": 254.3720589,
    "midheaven": 175.7713767,
    "vertex": 123.7652402,
    "aspects": [
      {
        "aspecting_planet_id": 1,
        "aspected_planet_id": 8,
        "aspecting_planet_name": "Sun",
        "aspected_planet_name": "Uranus",
        "aspect_type_id": 4,
        "aspect_type": "Trine",
        "orb": 0.29,
        "diff": 120.28702139999999
      },
      {
        "aspecting_planet_id": 1,
        "aspected_planet_id": 9,
        "aspecting_planet_name": "Sun",
        "aspected_planet_name": "Neptune",
        "aspect_type_id": 4,
        "aspect_type": "Trine",
        "orb": 1.56,
        "diff": 118.4383478
      },
      {
        "aspecting_planet_id": 3,
        "aspected_planet_id": 15,
        "aspecting_planet_name": "Mercury",
        "aspected_planet_name": "Ascendant",
        "aspect_type_id": 5,
        "aspect_type": "Sextile",
        "orb": 1.68,
        "diff": 58.32377940000001
      },
      {
        "aspecting_planet_id": 4,
        "aspected_planet_id": 7,
        "aspecting_planet_name": "Venus",
        "aspected_planet_name": "Saturn",
        "aspect_type_id": 4,
        "aspect_type": "Trine",
        "orb": 1.98,
        "diff": 121.98359880000004
      },
      {
        "aspecting_planet_id": 5,
        "aspected_planet_id": 13,
        "aspecting_planet_name": "Mars",
        "aspected_planet_name": "Lilith",
        "aspect_type_id": 5,
        "aspect_type": "Sextile",
        "orb": 0.76,
        "diff": 60.756076199999995
      },
      {
        "aspecting_planet_id": 5,
        "aspected_planet_id": 14,
        "aspecting_planet_name": "Mars",
        "aspected_planet_name": "Part of Fortune",
        "aspect_type_id": 3,
        "aspect_type": "Square",
        "orb": 1.45,
        "diff": 88.54579860000001
      },
      {
        "aspecting_planet_id": 8,
        "aspected_planet_id": 9,
        "aspecting_planet_name": "Uranus",
        "aspected_planet_name": "Neptune",
        "aspect_type_id": 1,
        "aspect_type": "Conjunction",
        "orb": 1.85,
        "diff": 1.8486735999999837
      },
      {
        "aspecting_planet_id": 9,
        "aspected_planet_id": 14,
        "aspecting_planet_name": "Neptune",
        "aspected_planet_name": "Part of Fortune",
        "aspect_type_id": 3,
        "aspect_type": "Square",
        "orb": 0.57,
        "diff": 89.43218059999998
      },
      {
        "aspecting_planet_id": 10,
        "aspected_planet_id": 16,
        "aspecting_planet_name": "Pluto",
        "aspected_planet_name": "Descendant",
        "aspect_type_id": 5,
        "aspect_type": "Sextile",
        "orb": 0.04,
        "diff": 59.9639722
      },
      {
        "aspecting_planet_id": 11,
        "aspected_planet_id": 20,
        "aspecting_planet_name": "Chiron",
        "aspected_planet_name": "True Node",
        "aspect_type_id": 5,
        "aspect_type": "Sextile",
        "orb": 0.6,
        "diff": 60.59879999999998
      },
      {
        "aspecting_planet_id": 11,
        "aspected_planet_id": 15,
        "aspecting_planet_name": "Chiron",
        "aspected_planet_name": "Ascendant",
        "aspect_type_id": 3,
        "aspect_type": "Square",
        "orb": 1.43,
        "diff": 88.5705781
      },
      {
        "aspecting_planet_id": 20,
        "aspected_planet_id": 13,
        "aspecting_planet_name": "True Node",
        "aspected_planet_name": "Lilith",
        "aspect_type_id": 2,
        "aspect_type": "Opposition",
        "orb": 1.48,
        "diff": 178.5225472
      }
    ]
  }
}
JSON
Params Data Type Description Example
day int Date of Birth 15
month int Month of Birth 9
year int Year of Birth 1994
hour int Hour of Birth 12
min int Min of Birth 30
lat float Latitude of Birth Place 28.6139
lon float Longitude of Birth Place 77.1025
tzone float Timezone of Birth Place 5.5
# cURL Request Example

curl --location --request POST 'https://json.apireports.com/v1/western_horoscope' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
}'

# END
cURL
/* JavaScript Request Example */

var apiEndPoint = "western_horoscope";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
};
var url = 'https://json.apireports.com/v1/'+apiEndPoint;

var request = $.ajax({
	url: url,
	method: "POST",
	dataType:'json',
	headers: {
		"Authorization": "Basic " + btoa(userId+":"+apiKey),
		"Accept-Language": "en",
		"Content-Type":'application/json'
	},
	data:JSON.stringify(data)
});

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

/* END */
JavaScript
<?php
/* PHP Request Example */

$apiEndPoint = "western_horoscope";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
	"day" => 15,
	"month" => 9,
	"year" => 1994,
	"hour" => 12,
	"min" => 30,
	"lat" => 28.6139,
	"lon" => 77.1025,
	"tzone" => 5.5
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url.$apiEndPoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$header[] = 'Authorization: Basic '. base64_encode($userId.":".$apiKey);
$header[] = 'Accept-Language: en';
$header[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$error = curl_error($ch);
$http_code = curl_getinfo($ch ,CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;

/* END */
PHP
# Python Request Example

import requests
import json

apiEndPoint = "western_horoscope";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint

data = json.dumps({
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
})

headers = {
  'Accept-Language': 'en',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, auth=(userId, apiKey),data=data)

print(response.text)

# END
Python
/* NodeJS Request Example */

var request = require('request');
var apiEndPoint = "western_horoscope";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var options = {
  'method': 'POST',
  'url': url,
  'auth': {
    'user': userId,
    'password': apiKey
  },
  'headers': {
    'Accept-Language': 'en',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "day": 15,
    "month": 9,
    "year": 1994,
    "hour": 12,
    "min": 30,
    "lat": 28.61390000000000100044417195022106170654296875,
    "lon": 77.1025000000000062527760746888816356658935546875,
    "tzone": 5.5
})
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

/* END */
NodeJS

Astrology API Reports in News