Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Planets

The Planets API provides astro details related data and calculations using Vedic Astrology principles. This endpoint is designed for astrology applications, kundli generation, horoscope platforms, and developer integrations requiring accurate JSON-based responses and scalable REST API access.

https://json.astroinsightapi.com/api/v1/astro-details/planets
Credit Cost
1 Credit
Avg Latency
~52ms
Auth Type
Basic Auth
Format
JSON / UTF-8

Available Response Languages

🇬🇧 English en
🇮🇳 Hindi hi
🇮🇳 Marathi ma

API Overview & Calculation Details

Methodology and astrological context for Planets.

Planets

Returns the sidereal positions of all planets for a given date, time, and geographic location — a dedicated, focused endpoint that delivers the complete planetary positions data set without the surrounding chart identifiers, panchang elements, or dasha information included in the broader astro-details endpoints.

What this API does

The Planets endpoint is purpose-built for retrieving planetary position data. Given a date, time, timezone offset, and geographic coordinates, it computes the precise sidereal longitudes and placements of all nine Vedic grahas — the seven classical planets (Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn) plus the lunar nodes Rahu and Ketu — using the selected ayanamsha.

Unlike the Astro Details or Birth Details endpoints, which bundle planetary positions together with chart identifiers, panchang data, and dasha timelines, the Planets endpoint is scoped exclusively to planetary position data. This makes it the most efficient choice for use cases that need only the planetary positions — such as transit lookups, ephemeris queries, chart rendering engines that source data incrementally, or any computation pipeline that requires raw planetary longitudes as input.

The endpoint is equally applicable to natal chart computation (using a birth date and time) and to current or future planetary position lookups (using any date and time), making it versatile for both birth chart and transit analysis workflows.

What data it returns

The API returns a structured JSON response including:

  • Planetary positions: For each of the nine grahas (Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu) — the sidereal sign (Rashi), degree within the sign, absolute longitude, house placement (relative to the Ascendant computed from the provided coordinates), Nakshatra, Pada, and retrograde status
  • Ascendant (Lagna): The rising sign and degree computed from the provided date, time, and geographic coordinates, used as the reference point for house placement of each planet
  • House placements: The house number (1–12) each planet occupies relative to the computed Ascendant
  • Retrograde indicators: A flag for each planet indicating whether it is in retrograde motion at the specified date and time
  • Nakshatra and Pada: The lunar mansion and quarter occupied by each planet, enabling Nakshatra-level analysis for any planet, not just the Moon

Main use cases

  • Transit position lookups where the current or future positions of all planets are needed to assess transits over a natal chart, identify significant planetary ingresses, or generate a transit calendar
  • Ephemeris and planetary almanac features in astrology apps that display daily, weekly, or monthly planetary positions for general reference or content generation
  • Chart rendering engines that source planetary position data independently and combine it with separately fetched house or chart structure data to render a Kundali or chart wheel
  • Yoga detection and analysis that requires the positions of all planets to identify classical planetary combinations (yogas) in a birth chart or at a given moment in time
  • Transit-to-natal overlay analysis where the current planetary positions are fetched and overlaid on a stored natal chart to identify active transits and their house placements
  • Incremental or modular API integrations that fetch only the data they need — using the Planets endpoint for positions and separate endpoints for panchang, dasha, or other chart components — to minimize response payload and processing overhead
  • Ashtakavarga and Shadbala input preparation for custom computation pipelines that require raw planetary positions as the starting point for their own strength calculations
  • Research and astronomical reference for applications that use Vedic sidereal planetary positions for astronomical study, historical chart reconstruction, or comparative ayanamsha analysis

Key functionality

  • Dedicated planetary positions endpoint: Scoped exclusively to planetary position data, with no bundled panchang, dasha, or chart identifier information — delivering a clean, focused response optimized for position-only use cases.
  • All nine grahas in one request: Returns positions for all seven classical planets plus Rahu and Ketu in a single API call, covering the complete set of Vedic grahas.
  • Nakshatra and Pada for every planet: Provides Nakshatra and Pada data for all nine grahas, not just the Moon — enabling Nakshatra-level analysis across the entire chart for features such as Nakshatra-based yogas, transit Nakshatra tracking, or Nakshatra dasha lord identification.
  • Retrograde status for all planets: Returns a retrograde flag for each planet, immediately usable for retrograde-aware chart analysis, transit alerts, and report generation.
  • Dual use for natal and transit positions: Accepts any date and time, making the endpoint equally applicable to natal chart computation and to current, past, or future planetary position lookups for transit analysis.
  • Ascendant and house placement included: Computes the Ascendant from the provided coordinates and returns each planet's house placement relative to it, enabling house-based analysis without a separate chart structure request.
  • Ayanamsha selection: The X-Ayanamsha header allows selection of the sidereal calculation system (e.g., Lahiri, Raman, KP), ensuring planetary positions are computed according to the practitioner's or platform's preferred Vedic tradition.
  • Geographic coordinate support: Uses latitude and longitude for precise Ascendant and house cusp calculation, ensuring accuracy for any location worldwide.
  • Multilingual support: The Accept-Language header enables localized planet names, sign names, and Nakshatra names in the response, making the API suitable for a global, multilingual user base.

Request Parameters

Payload specifications for JSON request body.

application/json
Parameter Type Description & Example
day
Required
integer
Day of birth (1–31).
Example: 15
month
Required
integer
Month of birth (1–12).
Example: 9
year
Required
integer
Year of birth (e.g., 1994).
Example: 1994
hour
Required
integer
Hour of birth in 24-hour format (0–23).
Example: 12
min
Required
integer
Minute of birth (0–59).
Example: 30
sec
Optional
integer
Second of birth (0–59). Optional. If not provided, it is considered as 0.
Example: 30
lat
Required
float
Latitude of the birth location.
Example: 28.6139
lon
Required
float
Longitude of the birth location.
Example: 77.1025
tzone
Optional
float
Timezone offset from UTC. Optional. If not provided, it is considered as 5.5 (IST).
Example: 5.5

Required & Optional Headers

Header Key Value / Format Description
Authorization
Required
Basic {base64} Base64 encoded string of CLIENT_ID:CLIENT_SECRET.
Content-Type
Required
application/json Specifies JSON payload format in request body.
Accept-Language
Optional
en, hi, ta, te... Returns localized astrology output. Default: en
X-Ayanamsha
Optional
lahiri, raman, krishnamurti... Ayanamsha system: lahiri, raman, fagan_bradley, usha_shashi, krishnamurti, djwhal_khul, yukteshwar, jn_bhasin, suryasiddhanta, aryabhata. Default: lahiri

Frequently Asked Questions

Comprehensive developer guidance for Planets.

What is the Planets API and what data does it provide?

The Planets API provides authentic Astro Details calculations based on Vedic astrology algorithms. It returns structured JSON data containing detailed planetary positions, house calculations, and astrological parameters suitable for Kundli apps, astrology websites, and developer applications.

What input parameters are required to call Planets?

The Planets API requires standard Vedic birth details: day, month, year, hour, min, sec, latitude (lat), longitude (lon), and timezone (tzone). All parameters can be passed in the JSON request body.

How many credits does the Planets endpoint consume?

Each calculation request to Planets consumes 1 API credit. The endpoint delivers high performance with an average response time of ~52ms.

How do I authenticate with the Planets API?

Authenticate using HTTP Basic Authentication by including your Base64 encoded client_id:client_secret credentials in the Authorization header (Authorization: Basic BASE64(client_id:client_secret)).

Can I get Planets responses in regional Indian languages?

Yes! The API supports multiple languages including English, Hindi, Marathi. Pass your desired language code (e.g. 'hi' for Hindi, 'ta' for Tamil, 'en' for English) in the Accept-Language request header.

Which Ayanamsha systems can be calculated with Planets?

Supported Ayanamshas include NC Lahiri (Default), BV Raman, Krishnamurti (KP), Fagan Bradley, Usha Shashi, Djwhal Khul, Sri Yukteshwar, JN Bhasin, Surya Siddhanta, and Aryabhata. Specify your choice using the X-Ayanamsha header.

What response format and HTTP codes does this API return?

The API returns clean JSON UTF-8 output. Successful requests return HTTP 200 OK with the computed data payload. Parameter validation errors return HTTP 422 with actionable error messages.

POST astro-details/planets
Presets:
Live Output
Click Send above to execute calculation.
Sample Output

API Categories