https://json.astrologyapi.com/v1/basic_panchangx-astrologyapi-keystringrequiredAPI access token used to authenticate requests. Send your access token in this custom header.
Accept-LanguagestringPreferred language for the response content. Supported: English - en, Hindi - hi, Marathi - ma, Bengali - bn, Tamil - ta, Telugu - te, Malayalam - ml, Kannada - kn.
dayintrequiredDate, eg: 10
monthintrequiredMonth, eg: 5
yearintrequiredYear, eg: 1990
hourintrequiredHour, eg: 19
minintrequiredMinute, eg: 55
latfloatrequiredLatitude, eg: 19.2056
lonfloatrequiredLongitude, eg: 25.2056
tzonefloatrequiredTimezone, eg: 5.5
curl --location 'https://json.astrologyapi.com/v1/basic_panchang' \
--header 'Content-Type: application/json' \
--header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
--data '{
"day": 10,
"month": 5,
"year": 1990,
"hour": 19,
"min": 55,
"lat": 19.2056,
"lon": 25.2056,
"tzone": 5.5
}'
Runs with sample data β no API key needed
{
"day": "Wednesday",
"tithi": "Shukla-Ashtami",
"yog": "Vaidhriti",
"nakshatra": "Krittika",
"karan": "Vishti",
"sunrise": "7:3:17",
"sunset": "18:43:38"
}