AstrologyAPI

Use access token to call astrology api.

Learn More

Astro Birth Details

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

birth_details typically refer to the specific information about a person's birth date, time, and location that is used to create their horoscope or astrological chart.

POST/birth_details
Copy
1curl --location 'https://json.astrologyapi.com/v1/birth_details' \
2  --header 'Content-Type: application/json' \
3  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
4  --data '{
5    "day": 10,
6    "month": 5,
7    "year": 1990,
8    "hour": 19,
9    "min": 55,
10    "lat": 19.2056,
11    "lon": 25.2056,
12    "tzone": 5.5
13}'
14
200Response
Copy
1{
2  "year": 1992,
3  "month": 7,
4  "day": 22,
5  "hour": 9,
6  "minute": 21,
7  "latitude": 25.31668,
8  "longitude": 83.01042,
9  "timezone": 5.5,
10  "sunrise": "5:21:28",
11  "sunset": "18:49:35",
12  "ayanamsha": 23.753052294684778
13}

Request Headers

x-astrologyapi-key

string

required

API Access Token to authenticate requests. Send your access token in this custom header.

Accept-Language

string

Preferred language for the response content

Properties

English - en

Request Body (JSON)

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

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.