https://json.astrologyapi.com/v1/acg/planetary-line/:category/:planetx-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.
categorystringrequiredThe angle/line type to compute.
MCICACDCplanetstringrequiredThe celestial body whose line to compute.
SUNMOONMERCURYVENUSMARSJUPITERSATURNURANUSNEPTUNEPLUTONORTH_NODEdaynumberrequiredDay of birth (1-31).
monthnumberrequiredMonth of birth (1-12).
yearnumberrequiredYear of birth.
hournumberrequiredHour of birth (0-23).
minnumberrequiredMinute of birth (0-59).
secondnumberSecond of birth (0-59).
tzonenumberrequiredTimezone offset from UTC in hours.
latnumberrequiredLatitude of birth place.
lonnumberrequiredLongitude of birth place.
include_paransbooleanSet to true to also return paran latitude-crossing lines. Default: false.
curl --location 'https://json.astrologyapi.com/v1/acg/planetary-line/IC/SUN' \
--header 'Content-Type: application/json' \
--header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
--data '{
"day": 22,
"month": 8,
"year": 1999,
"hour": 18,
"min": 50,
"second": 0,
"tzone": 5.5,
"lat": 19.0759837,
"lon": 72.8776559,
"include_parans": "false"
}'
Runs with sample data ā no API key needed
{
"line": {
"kind": "meridian",
"line_type": "MC",
"longitude_deg": 107.259319,
"object": "Moon",
"zenith_latitude_deg": -20.166033
}
}