https://json.astrologyapi.com/v1/lunar_metricsx-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.
dayintrequiredDate of birth, eg: 10
monthintrequiredMonth of birth, eg: 5
yearintrequiredYear of birth, eg: 1990
hourintrequiredHour of birth, eg: 19
minintrequiredMinute of birth, eg: 55
latfloatrequiredLatitude, eg: 19.2056
lonfloatrequiredLongitude, eg: 25.2056
tzonefloatrequiredTimezone, eg: 5.5
house_typestringrequiredDefault : placidus // koch/topocentric/poryphry/equal_house/whole_sign
curl --location 'https://json.astrologyapi.com/v1/lunar_metrics' \
--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,
"house_type": "placidus"
}'
Runs with sample data β no API key needed
{
"month": "10-5-1990",
"within_perigee_range": false,
"distance": "--",
"within_apogee_range": true,
"apogee_distance": 406431,
"moon_sign": "Scorpio",
"moon_phase": "Full Moon",
"moon_age_in_days": 15.470096481335087,
"moon_day": 16,
"moon_illumination": 99
}