AstrologyAPI

Solar Return Details

POSThttps://json.astrologyapi.com/v1/solar_return_details
Copy

The solar_return_details API provides information about the solar return date for an individual based on their birth date and time. The response includes the native's birth date and time, their age at the time of the solar return, and the solar return date and time.

POST/solar_return_details
Copy
1import requests
2import json
3
4# Your API key
5api_key = "<YOUR_API_KEY>"
6
7# API endpoint URL
8api_url = "https://json.astrologyapi.com/v1/solar_return_details"
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        "solar_year": 2025,
21        "house_type": 2025
22    }
23
24headers = {
25    'x-astrologyapi-key': api_key,
26    'Content-Type': 'application/json'
27    # Add 'Accept-Language': '<language_code>' if needed
28}
29
30try:
31    response = requests.post(api_url, headers=headers, json=data)
32    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)
33
34    # Process the response
35    response_data = response.json()
36    print(json.dumps(response_data, indent=4))
37
38except requests.exceptions.RequestException as e:
39    print(f"Error making API request: {e}")
40    if hasattr(e, 'response') and e.response is not None:
41        try:
42            print(f"Error response: {e.response.json()}")
43        except json.JSONDecodeError:
44             print(f"Error response (non-JSON): {e.response.text}")
45
46
200Response
Copy
1{
2  "native_birth_date": "05-15-2011 12:10:00",
3  "native_age": null,
4  "solar_return_date": "05-15-2018 05:09:35"
5}

Request Headers

Authorization

string

required

Basic Authorization via header

Accept-Language

string

Preferred language for the response content

Properties

English - en

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

solar_year

int

required

Solar Year, eg: 2025

house_type

string

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.