The JyotishToday API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes.
All API requests should be prefixed with the following base URL:
// All requests must be sent securely via HTTPS. // Unencrypted HTTP requests will be rejected. curl -X POST https://api.jyotish.today/v1/[endpoint] \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ ... }'
Authenticate your account by including your secret API key in the request headers. You can manage your API keys in the Developer Dashboard.
Use the Authorization header with a Bearer token:
Authorization: Bearer jt_live_your_secret_key
{
"status": "error",
"code": 401,
"message": "Invalid or missing API key."
}
Retrieves complete planetary positions, ascendant calculations, and Nakshatra details. Supports various Ayanamsa systems.
| Parameter | Description |
|---|---|
day IntegerRequired |
Birth day (1-31). |
month IntegerRequired |
Birth month (1-12). |
year IntegerRequired |
Birth year (e.g., 1986). |
hour IntegerRequired |
Birth hour in 24h format (0-23). |
min IntegerRequired |
Birth minute (0-59). |
lat FloatRequired |
Latitude in decimal format. Example: 28.6139 |
lon FloatRequired |
Longitude in decimal format. Example: 77.2090 |
tzone FloatRequired |
Timezone offset from UTC. Example: 5.5 for IST. |
ayanamsa String |
Defaults to "Lahiri". Options: Raman, KP. |
{
"status": "success",
"metadata": {
"ayanamsa_system": "Lahiri",
"ayanamsa_value": "23.6720072"
},
"data": {
"planet_positions": {
"as": {
"name": "Ascendant",
"norm_degree": "20.6318908",
"is_retro": false,
"sign": {
"number": 4,
"name": "Cancer"
},
"nakshatra": {
"name": "Ashlesha",
"pada": 2,
"lord": "Mercury"
}
},
"su": {
"name": "Sun",
"norm_degree": "14.6968284",
"is_retro": false,
"sign": {
"number": 6,
"name": "Virgo"
}
}
// ... mo, ma, me, ju, ve, sa, ra, ke
}
}
}
Calculates exact Krishnamurti Paddhati (KP) Placidus cusps, star lords, sub lords, and exact Nadi significators (e.g., houses 1, 3, 5, 8).
Accepts the exact same location and time parameters as the Horoscope endpoint. Additionally, you can pass a horary_number (1-249).
{
"kp_system": {
"cusps": {
"1": {
"degree": "110.631891",
"sign_name": "Cancer",
"sign_lord": "Moon",
"star_lord": "Mercury",
"sub_lord": "Venus"
}
},
"planets": {
"me": {
"name": "Mercury",
"star_lord": "Mars",
"sub_lord": "Venus",
"significators": [
3,
12
]
}
}
}
}
Returns a deeply nested JSON object of Mahadashas and Antardashas based on the natal moon's exact longitude. Includes precise UTC timestamps for frontend timeline plotting.
{
"dashas": {
"vimshottari": [
{
"planet": "Venus",
"code": "ve",
"start": "02-10-1986 02:10:00",
"end": "09-03-1996 13:25:29",
"timestamp_start": 195219089,
"timestamp_end": 826358129,
"sub_dasha": [
{
"planet": "Jupiter",
"code": "ju",
"start": "02-10-1986 02:10:00",
"end": "07-01-1989 23:42:53",
"timestamp_start": 516048101,
"timestamp_end": 600199973
}
]
}
]
}
}
Fetches complete Sarvashtakvarga and Bhinna Ashtakvarga points. Complex calculations like Trikon Shodhana and Ekadhipatya Shodhana are computed natively.
{
"ashtakvarga": {
"sarvashtakvarga": {
"total_bindus_by_sign": {
"1": 30,
"2": 31,
"3": 24,
"4": 23,
"10": 32,
"total": 335
}
}
}
}
Crucial for daily astrology apps. Retrieves the 5 limbs of time: Tithi, Vaara, Nakshatra, Yoga, and Karana, including exact percentage passed. Also returns Rahu Kaal and Yamaganda timings.
{
"panchang": {
"tithi": {
"name": "Trayodashi",
"paksha": "Krishna Paksha",
"percentage_passed": 97.33
},
"yoga": {
"name": "Shubha",
"percentage_passed": 88.05
}
},
"muhurat": {
"rahu_kaal": {
"start": "13:59:53",
"end": "15:32:22"
}
}
}