AstrologyAPI

Use access token to call astrology api.

Learn More

Western Ascendant Report

POSThttps://json.astrologyapi.com/v1/general_ascendant_report/tropical
Copy

The general_ascendant_report/tropical API provides a report on a person's ascendant or rising sign based on the tropical zodiac. The response includes the ascendant sign and a detailed description of the person's personality traits, tendencies, and potential challenges based on their ascendant sign.

POST/general_ascendant_report/tropical
Copy
1import requests
2import json
3
4# Your Basic Auth Credentials (base64 encoded 'userId:apiKey')
5api_key = "<YOUR_API_KEY>"
6
7# API endpoint URL
8api_url = "https://json.astrologyapi.com/v1/general_ascendant_report/tropical"
9
10# Request data
11data = {
12        "day": 10,
13        "month": 5,
14        "year": 1990,
15        "hour": 19,
16        "min": 55,
17        "lat": 19.2056,
18        "lon": 25.2056,
19        "tzone": 5.5,
20        "house_type": "placidus"
21    }
22
23headers = {
24    'Authorization': 'Basic ' + api_key,
25    'Content-Type': 'application/json'
26    # Add 'Accept-Language': '<language_code>' if needed
27}
28
29try:
30    response = requests.post(api_url, headers=headers, json=data)
31    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)
32
33    # Process the response
34    response_data = response.json()
35    print(json.dumps(response_data, indent=4))
36
37except requests.exceptions.RequestException as e:
38    print(f"Error making API request: {e}")
39    if hasattr(e, 'response') and e.response is not None:
40        try:
41            print(f"Error response: {e.response.json()}")
42        except json.JSONDecodeError:
43             print(f"Error response (non-JSON): {e.response.text}")
44
45
200Response
Copy
1{
2  "ascendant": "Sagittarius",
3  "report": "People with Sagittarius rising tend to be idealistic, aspiring, enthusiastic, religious or agnostic, interested in far away places and cultures or ideas, physically active, risk-taking, outgoing, breezy, extroverted, philosophical, perhaps dogmatic, prejudiced, superficial, looking for greener pastures, and on-the-go. Sagittarius, the Centaur, is half-human, half-animal and this is perhaps the way you are. You have great aspirations, yet may have a most unruly desire nature. You can shoot for the stars or wallow with the animals. There is love of animals, the outdoors, sports, gambling, adventure, and travel. You may lack concentration. You probably have many acquaintances, but few friends. You tend to have casual contacts rather than in-depth relationships. You have a great restlessness and a love to be on the move. You may always be looking for greener pastures, never stopping or slowing down to see where you really are and what's around you. You tend to be talkative and direct and to the point. You may be lacking in tact and diplomacy due to your frankness. Ideas are very important to you. You generally like working with the big picture and dislike all the little details. You may promise much and deliver less. You can rise to the heights or sink to the depths. Which will you choose$1650 Spiritual lesson to learn: Restraint, of all that is given away (and stop procrastinating). Jupiter rules Sagittarius so Jupiter will be important in your chart."
4}

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - enSpanish - esPortuguese - ptFrench - frItalian - itGerman - deRussian - ru

Request Parameters

day

int

required

Date of birth, eg: 10

month

int

required

Month of birth, eg: 5

year

int

required

Year of birth, eg: 1990

hour

int

required

Hour of birth, eg: 19

min

int

required

Minute of birth, eg: 55

lat

float

required

Latitude, eg: 19.2056

lon

float

required

Longitude, eg: 25.2056

tzone

float

required

Timezone, eg: 5.5

house_type

string

required

Default : placidus // koch/topocentric/poryphry/equal_house/whole_sign

Errors

400
Bad Request

Something is wrong with your request format or parameters.

401
Unauthorized

Your API key is missing or invalid.

403
Forbidden

You don't have permission to access this specific resource.

404
Not Found

The API endpoint you're trying to reach doesn't exist.

500
Internal Server Error

Our server is having a temporary glitch.