SEARCH ASTRO INSIGHT API DOCS
The Bhav Madhya 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/bhav-madhya
en
hi
ma
Methodology and astrological context for Bhav Madhya.
Computes the Bhav Madhya (house midpoints) for all twelve houses of a Vedic birth chart — returning the precise sidereal longitude of the midpoint of each bhava (house), which serves as the most sensitive and powerful degree within that house and is used as the primary reference point for house-based analysis in many classical Vedic traditions.
In Vedic astrology, the Bhav Madhya (literally "middle of the house") is the central degree of each of the twelve bhavas. While the house cusp (bhava sandhi) marks the boundary between houses, the Bhav Madhya marks the heart of the house — the degree at which the significations of that house are most fully and powerfully expressed. A planet placed near the Bhav Madhya of a house is considered to be at its most potent position within that house, and the Bhav Madhya is used as the reference point for assessing how closely a planet is aligned with the core of a house.
The Bhav Madhya is particularly important in the Shripati and other equal or unequal house systems used in Vedic astrology, where house midpoints rather than cusps are used to assign planets to houses. In these systems, a planet is assigned to the house whose Bhav Madhya it is closest to, rather than the house whose cusp it has crossed. This endpoint computes the Bhav Madhya for all twelve houses using the selected ayanamsha and house system, providing the midpoint longitudes needed for this planet-to-house assignment methodology.
This endpoint computes the full birth chart from the provided date, time, and geographic coordinates, determines the Ascendant and house structure, and then calculates and returns the Bhav Madhya for each of the twelve bhavas.
The API returns a structured JSON response including:
X-Ayanamsha header allows selection of the sidereal calculation system (e.g., Lahiri, Raman, KP), ensuring house midpoints are computed according to the practitioner's or platform's preferred Vedic tradition.Accept-Language header enables localized sign names and Nakshatra names in the response, making the API suitable for a global, multilingual user base.Payload specifications for JSON request body.
| 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
|
| 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 |
Explore complementary endpoints in this category.
Comprehensive developer guidance for Bhav Madhya.
The Bhav Madhya 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.
The Bhav Madhya 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.
Each calculation request to Bhav Madhya consumes 1 API credit. The endpoint delivers high performance with an average response time of ~54ms.
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)).
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.
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.
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.