Astrology API reference
Updated
The Astrology API reference from API for Astrology (apiforastrology.com) lists all 65 endpoints in 12 groups. Each endpoint shows its inputs, its response fields and a real recorded answer. Code comes in curl, JavaScript, Python and PHP. The OpenAPI file behind the reference also downloads, for Postman or code generators.
To send a test request, add your API key under Authentication, open an endpoint and choose Test Request.
About your key here: test requests are real calls that count toward your plan. The key you paste stays in this browser tab only. It stays until you close the tab or choose Forget my API key. It is only sent with your test requests.
- Base URL
https://apiforastrology.com/api/astrology- Authentication
Authorization: BearerorX-API-Key. Get a key
Loading the interactive reference…
Endpoints by group
All 65 endpoints in 12 groups. Paths are relative to https://apiforastrology.com/api/astrology.
Meta
Service health, and what the API supports: ayanamsas, the house system, divisional charts and the date range. No birth data needed.
API health and supported options reference: inputs, response fields and curl examples
Charts
These endpoints work out the birth chart (kundli) itself. They cover planet positions, the ascendant (the sign rising at birth), the 16 divisional charts, aspects and planet strength, and the yearly chart (varshaphal). Most return numbers and placements only. The Jaimini, ashtakavarga and varshaphal endpoints also return short readings.
- POST
/v1/planetsPlanet positions and the ascendant - POST
/v1/varshaphalThe Tajik annual chart (varshaphal) for one year - POST
/v1/varshaphal/dinaTajik daily return (dina pravesh) for a day or a short window - POST
/v1/ascendantThe ascendant only - POST
/v1/chart/sudarshanaSudarshana chakra: the chart from the ascendant, Moon and Sun - POST
/v1/chart/chalitBhava chalit: houses by the Sripati method - POST
/v1/chart/svgThe birth chart or any divisional chart as an SVG or PNG image - POST
/v1/chart/{division}Any of the 16 divisional charts (D1 to D60) - POST
/v1/jaiminiJaimini: sign aspects, argala, chara dasha and karakas - POST
/v1/ashtakavargaAshtakavarga: strength points for each sign - POST
/v1/shadbalaPlanet and house strength (shadbala and bhava bala) - POST
/v1/upagrahasUpagrahas: Gulika, Mandi, the kaala velas and the Dhoomadi points - POST
/v1/special-lagnasSpecial lagnas, the yogi point, Jaimini lords and dagdha signs - POST
/v1/strength/vimshopakaDivisional-chart strength, ishta and kashta phala, and planet friendships - POST
/v1/aspectsPlanet aspects (graha drishti)
Birth chart (kundli) API reference: inputs, response fields and curl examples
Dasha
Dashas are planetary periods: a life is divided into periods, each ruled by one planet. Vimshottari is a 120-year cycle, returned with up to five levels of sub-periods and calendar dates. Yogini is a second system of 36 years. Ashtottari is a third, of 108 years, with a test of whether it applies to the chart. Narayana is a Jaimini dasha whose periods are run by signs, not planets.
- POST
/v1/dasha/vimshottariVimshottari dasha periods with dates - POST
/v1/dasha/yoginiYogini dasha periods (a 36-year cycle) - POST
/v1/dasha/ashtottariAshtottari dasha periods (a 108-year cycle) - POST
/v1/dasha/narayanaNarayana dasha: the Jaimini sign periods
Dasha API reference: inputs, response fields and curl examples
KP
Krishnamurti Paddhati (KP) is a school of its own. It uses its own ayanamsa (the starting point of the zodiac) and Placidus house cusps (the points where houses begin). Each planet and cusp gets its sign, star and sub lords, and each house gets its significators (the planets that deliver its results). KP is the only part of this API that uses Placidus cusps. Everywhere else houses are whole signs.
KP astrology API reference: inputs, response fields and curl examples
Panchang
The panchang is the Hindu calendar's way of describing a day. It uses five elements: the lunar day, the Moon's nakshatra (one of 27 lunar mansions), yoga, karana and weekday. /v1/panchang reads them at a birth moment. /v1/panchang/daily and /v1/panchang/month need only a date and a place, and include the times each element changes.
- POST
/v1/panchangPanchang at the birth moment - GET
/v1/panchang/dailyDaily panchang for a date and place, no birth data - GET
/v1/taraTara bala: a daily rating from a birth nakshatra, no chart - GET
/v1/panchang/monthPanchang calendar for a month, with festivals and fasts
Panchang API reference: inputs, response fields and curl examples
Interpretation
Findings about a chart, such as yogas (planetary combinations), doshas (unfavorable placements) and sade sati (a long Saturn transit). Each finding states the rule it applied and the chart facts that met it, so you can check the reasoning.
- POST
/v1/yogasYogas: planetary combinations found and not found - POST
/v1/dosha/{name}Doshas: manglik, kaal sarpa, pitra, or the papa count - POST
/v1/sadesatiSade sati: Saturn's 7.5-year transit around the birth Moon - POST
/v1/avasthasPlanetary states (graha avasthas)
Yoga, dosha and sade sati API reference: inputs, response fields and curl examples
Remedies
Remedies a chart points to, each with the reason it was chosen. /v1/remedies/rudraksha picks rudraksha beads. /v1/remedies/charity and /v1/remedies/fasting give daan (charity) and vrat (fasting), each keyed on the planet the chart picks. The written remedies are reading sections: send the chart to /v1/reading/section/{section_id} with one of these ids. topic:remedy-life-gemstone and topic:remedy-lucky-gemstone give gemstones. topic:remedy-rudraksha gives the rudraksha reading, and topic:remedy-lucky-mantra the lucky mantra. topic:remedy-havan-puja covers havan (fire ritual) and puja. topic:remedy-general gives everyday remedies. topic:remedy-sadesati gives the remedies for sade sati (Saturn's 7.5-year transit). topic:remedy-kaal-sarp and topic:remedy-pitra-dosha give the remedies for those doshas (chart flaws).
- POST
/v1/remedies/rudrakshaRudraksha recommendation: which bead, and why - POST
/v1/remedies/charityCharity (daan) this chart points to, and why - POST
/v1/remedies/fastingFasting (vrat) this chart points to, and why
Astrology remedies API reference: inputs, response fields and curl examples
Transits
Transits compare where the planets are now with where they were at birth (in Vedic astrology this is called gochara). The current-transit endpoint reads each planet from the birth Moon. It also applies vedha, a traditional rule by which one transiting planet blocks another's effect. The calendar endpoints give dates, and the /v1/sky endpoints describe the sky itself, with no chart. Every result names the rule it used.
- POST
/v1/forecast/annualYearly forecast: a year of sky events read against a chart - POST
/v1/transitsCurrent transits read against a chart - POST
/v1/transits/forecastUpcoming transit periods for a chart - POST
/v1/transits/ingresses/{graha}When a planet enters and leaves each sign - POST
/v1/transits/over/{graha}When a transiting planet passes over a birth-chart point - GET
/v1/skyPlanet positions at a moment, no chart - GET
/v1/sky/eventsCalendar of sky events, no chart
Transit (gochar) API reference: inputs, response fields and curl examples
Matching
Compatibility between two people, as used for marriage matching in India. The main result is the 36-point ashtakoot score, built from eight factors called kootas. The response also shows the standard exceptions that cancel a zero score on a factor, and checks that are reported outside the score. A forecast for a couple is here too. The score is not symmetric, so requests name the two people bride and groom.
- POST
/v1/matchingMarriage compatibility score (ashtakoot, 36 points) - POST
/v1/matching/nakshatraCompatibility score from two nakshatras, no birth charts - POST
/v1/matching/parasparamEach person's planets placed in the other's chart - POST
/v1/forecast/couple/{theme}Love, career or wealth forecast for a couple
Kundli matching API reference: inputs, response fields and curl examples
Reading
Written readings. For a full chart reading, call /v1/reading/sections once to get the list of sections for a chart, then fetch the sections you need. Other endpoints here give a daily or weekly reading, a reading for a Moon sign, themed forecasts, a plain-language summary and a printable report. The text comes from the API's own library of written readings. Topics: Life Prediction (11), Monthly Forecast (6), Sade Sati (6), Remedies (9). Every topic is listed by GET /v1/reading/topics, with no chart needed, and in the table under /v1/reading/section/{section_id}.
- GET
/v1/name/rashiThe Moon sign a name points to - GET
/v1/reading/topicsEvery reading topic, no chart needed - POST
/v1/reading/sectionsList of reading sections for a chart - POST
/v1/reading/section/{section_id}One section of a reading - POST
/v1/reading/dailyDaily reading for a chart - POST
/v1/reading/weeklyWeekly reading for a chart - GET
/v1/rashi/{sign}/todayDaily reading for a Moon sign, no chart - POST
/v1/karmaKarma reading: what you bring and where you are headed - POST
/v1/spiritualSpiritual path reading: devotion and release - POST
/v1/forecast/{theme}Love, career or wealth forecast - POST
/v1/summaryPlain-language summary of a chart - POST
/v1/reportFull reading as a printable HTML page - POST
/v1/reading/rulesRules this chart triggers, ranked
Astrology reading API reference: inputs, response fields and curl examples
Horary
Horary (prashna): a question asked at a moment, read from a chart cast for that moment and place. You pick the topic from a list; a sentence is never read. The question chart describes the tendencies of the moment and is not a promise. Some questions are refused outright (lifespan, the sex of an unborn child, lotteries and gambling, medical diagnosis, accusing a person of a crime, testing), and a moment the classical texts call unfit to judge is refused too, with the reason. A refusal is 422 and carries no reading. Every route for questions asked at a moment is in this group.
- POST
/v1/prashnaQuestion chart (prashna): one question, read for the moment it is asked - POST
/v1/prashna/kpKP horary: a question read from a number between 1 and 249 - GET
/v1/prashna/topicsQuestion chart topics (prashna): what can be asked
Prashna (horary) API reference: inputs, response fields and curl examples
Muhurta
Dates and good times. The Hindu festival and fasting calendar for a year at a place. Also muhurtas (good times to start an activity): buying a vehicle, buying property, moving into a new home, and marriage, all checked against a published calendar: 161 of 161 festival dates, and all 579 published muhurta windows across those four activities and two years. Starting a business, travel and six child ceremonies (naming, first food, first haircut, ear piercing, start of learning, sacred thread) follow the classical rules and say they are not measured. Every answer names the rule that decided it. Nothing is scored or ranked.
- POST
/v1/muhurta/{activity}Muhurta: good times to start an activity - GET
/v1/festivalsHindu festival dates for a year and place - GET
/v1/vratsMonthly fasting days (vrats) for a year and place - GET
/v1/festivals/{slug}One festival's date for a year and place - GET
/v1/eclipsesEclipses (grahan) with local times and sutak
Muhurat and festival dates API reference: inputs, response fields and curl examples