Chara Dasha API with React
Integrate Chara Dasha API in React. Complete code examples and SDK documentation.
Operation
POST /v2/astrology/chara-dasha
Jaimini Chara dasha (sign-based, variable cycle). Related: /narayana-dasha, /kalachakra-dasha, /shodasottari-dasha, /dwadashottari-dasha, /panchottari-dasha
Parameters
| Name | In | Type | Description |
|---|---|---|---|
datetime | body | string | — |
latitude | body | number | — |
longitude | body | number | — |
timezone | body | string | — |
Request example for React
Authenticate with Authorization: Bearer YOUR_API_KEY. This code runs on your users’ devices, so it must not hold your API key. Call a route on your own backend that adds the Authorization: Bearer YOUR_API_KEY header and forwards the request.
import { useEffect, useState } from 'react';
export function CharaDasha() {
const [data, setData] = useState(null);
useEffect(() => {
fetch('/api/vedika/chara-dasha')
.then((res) => res.json())
.then(setData);
}, []);
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}
Try it in the keyless sandbox
The sandbox mirrors the production route and needs no API key:
curl -X POST https://api.vedika.io/sandbox/astrology/chara-dasha \
-H "Content-Type: application/json" \
-d '{"datetime":"1990-05-15T10:30:00","latitude":19.07,"longitude":72.87,"timezone":"+05:30"}'
Sandbox response from POST /sandbox/astrology/chara-dasha, abridged (billing block, long text fields and long lists trimmed). The sandbox answers with a fixed demo result and ignores your inputs; a production call computes the result for the details you send.
{
"data": {
"birthData": {
"datetime": "1995-01-01T12:00:00+05:30",
"latitude": 28.6139,
"longitude": 77.209,
"timezone": "Asia/Kolkata"
},
"countingDirection": "backward",
"currentAntarDasha": {
"endDate": "2027-01-01",
"lord": "Venus",
"mahaDashaSign": "Sagittarius",
"sign": "Libra",
"startDate": "2026-01-01",
"vedicName": "Tula"
},
"currentMahaDasha": {
"endDate": "2036-01-01",
"lord": "Jupiter",
"sign": "Sagittarius",
"startDate": "2024-01-01",
"vedicName": "Dhanu"
},
"lagnaSign": "Pisces",
"lagnaSignIndex": 11,
"lagnaType": "even",
"mahaDashas": [
{
"antarDashas": [
{
"durationDays": 152,
"durationYears": 0.4166096281086014,
"endDate": "1995-06-02",
"isCurrentPeriod": false,
"lord": "Jupiter",
"mahaDashaSign": "Pisces",
"sign": "Pisces",
"signIndex": 11,
"startDate": "1995-01-01",
"vedicName": "Meena"
}
],
"durationDays": 1826,
"durationYears": 5,
"endDate": "2000-01-01",
"isCurrentPeriod": false,
"lord": "Jupiter",
"sign": "Pisces",
"signIndex": 11,
"startDate": "1995-01-01",
"vedicName": "Meena"
}
],
"system": "chara",
"totalCycleYears": 89
},
"meta": {
"contentMode": "fixture",
"engine": "vedika-intelligence",
"fixtureId": "demo-birth-1995-new-delhi",
"inputUsage": "ignored",
"mode": "sandbox",
"sample": true,
"version": "2.1.0"
},
"success": true
}
Related
Last updated: 22 November 2026