Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Planet Ashtak

The Planet Ashtak API provides ashtakvarga 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/ashtakvarga/planetashtak/:ashtakPlanetKey
Credit Cost
1 Credit
Avg Latency
~32ms
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 Planet Ashtak.

Planet Ashtak

Computes the Bhinnashtakavarga (individual planet's Ashtakavarga) for a specified planet in a person's Vedic birth chart — returning the point scores contributed by each of the eight reference planets across all twelve houses.

What this API does

Ashtakavarga is a classical Vedic astrology system that quantifies planetary strength across the twelve houses of a birth chart using a point-based scoring method. Each of the seven classical planets (Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn) plus the Ascendant contributes benefic points (bindus) to the houses based on its position relative to the other planets and the Ascendant. The resulting grid of scores — known as the Bhinnashtakavarga — reveals how strongly each planet is supported in each house of the chart.

This endpoint computes the Bhinnashtakavarga for a single, specified planet (identified via the ashtakPlanetKey path parameter). It calculates the birth chart from the provided date, time, and geographic coordinates, then applies the classical Ashtakavarga rules to determine how many benefic points each of the eight reference bodies (Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, and Ascendant) contributes to each of the twelve houses for the selected planet. The result is a house-by-house score table for that planet, along with the total bindu count.

Supported planets and reference points: sunmoonmarsmercuryjupitervenussaturnrahuascendant.

What data it returns

The API returns a structured JSON response including:

  • Planet identity: The name and key of the planet for which the Bhinnashtakavarga has been computed
  • House-wise bindu scores: For each of the twelve houses, the number of benefic points (bindus) contributed by each of the eight reference bodies, presented as a detailed breakdown
  • Total bindus per house: The aggregate bindu score for each house, summing contributions from all eight reference bodies
  • Total bindu count: The overall total of all bindus across all twelve houses for the selected planet
  • Contextual interpretation: Textual descriptions of the significance of the scores, indicating which houses are strong or weak for the planet based on classical Ashtakavarga thresholds

Main use cases

  • Detailed Ashtakavarga analysis in horoscope reports, providing clients with a house-by-house strength assessment for each planet in their birth chart
  • Transit strength evaluation — Ashtakavarga scores are widely used to assess how favorably a transiting planet will perform as it moves through each house; this endpoint provides the per-planet data needed for such analysis
  • Astrology consultation platforms where practitioners need precise Bhinnashtakavarga tables to discuss planetary strength, favorable periods, and house-level influences with clients
  • Sarvashtakavarga computation — the individual planet Ashtakavarga scores from this endpoint can be aggregated across all planets to build the Sarvashtakavarga (combined Ashtakavarga) table
  • Dasha and transit timing tools that use Ashtakavarga bindus to refine predictions about when a planet's transit through a particular house will be most or least beneficial
  • Educational astrology platforms that teach the Ashtakavarga system by displaying the full Bhinnashtakavarga grid with contributor-level breakdowns for each planet

Key functionality

  • Per-planet computation: Computes the Bhinnashtakavarga for a single specified planet per request, allowing targeted retrieval of the exact planet's data needed without processing the entire chart at once.
  • Planet selection via path parameter: The ashtakPlanetKey path parameter accepts sunmoonmarsmercuryjupitervenussaturnrahu, or ascendant, giving precise control over which planet's Ashtakavarga is returned.
  • Contributor-level breakdown: Returns the individual bindu contributions from each of the eight reference bodies for every house, not just the aggregate totals — enabling detailed analysis of which planets are supporting or weakening the selected planet in each house.
  • Precise birth data input: Accepts day, month, year, hour, minute, second, and timezone offset to compute the exact planetary positions at the moment of birth.
  • Geographic coordinates: Uses latitude and longitude to accurately determine house cusps and planetary placements relative to the birth location.
  • Ayanamsha support: The X-Ayanamsha header allows selection of the sidereal calculation system (e.g., Lahiri, Raman, KP), ensuring the chart and Ashtakavarga scores are computed according to the practitioner's preferred Vedic tradition.
  • Classical rule application: Applies the traditional Ashtakavarga rules for each planet, faithfully reproducing the classical bindu assignment methodology used in Vedic astrology texts.
  • Multilingual support: The Accept-Language header enables localized descriptions and interpretations, 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 Planet Ashtak.

What is the Planet Ashtak API and what data does it provide?

The Planet Ashtak API provides authentic Ashtakvarga 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 Planet Ashtak?

The Planet Ashtak 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 Planet Ashtak endpoint consume?

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

How do I authenticate with the Planet Ashtak 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 Planet Ashtak 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 Planet Ashtak?

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 ashtakvarga/planetashtak/:ashtakPlanetKey
Presets:
Live Output
Click Send above to execute calculation.
Sample Output

API Categories