AstroAsk API Reference
Integrate world-class Vedic & Western astrological calculations into your application in minutes. Sub-200ms latency, 21 languages, Swiss Ephemeris precision.
Up and running in 60 seconds
All you need is a RapidAPI key and a birth date. Every endpoint accepts the same base parameters.
Set Headers
Attach X-RapidAPI-Key and host headers to all requests.
Fetch Live Data
Query endpoints at vedic-astrology.p.rapidapi.com.
AstroAsk is hosted on RapidAPI. Subscribe to get your key, then attach two headers to every request. No SDK, no install โ just HTTP.
Get Your Free Key
Free tier included โ test immediately without a credit card.
Two headers only โ X-RapidAPI-Key + X-RapidAPI-Host.
Works with any language โ use JavaScript, Python, PHP, cURL, Go, or any HTTP client.
// Required headers "X-RapidAPI-Key": "YOUR_KEY" "X-RapidAPI-Host": "vedic-astrology.p.rapidapi.com" // Request body { "date": "1990-01-15T10:30:00", "lat": 28.6139, "lng": 77.2090, "timezone": "Asia/Kolkata", "lang": "en" // or "hi", "ta", "ar"โฆ }
{
"success": true,
"data": {
"ascendant": {
"signName": "Taurus",
"nakshatra": "Mrigashira",
"degree": 55.47
},
"planets": [ /* 9 planets */ ],
"yogas": [ /* detected yogas */ ],
"panchanga": { /* 5 limbs */ }
}
}const response = await fetch('https://vedic-astrology.p.rapidapi.com/api/v1/kundali', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-RapidAPI-Key': 'YOUR_RAPIDAPI_KEY', 'X-RapidAPI-Host': 'vedic-astrology.p.rapidapi.com' }, body: JSON.stringify({ date: '1990-01-15T10:30:00', lat: 28.6139, lng: 77.2090, timezone: 'Asia/Kolkata', lang: 'en' // Change to 'hi', 'ta', 'ar', etc. }) }); const chart = await response.json(); console.log(chart.data.ascendant.signName); // "Taurus"
See the Payload in Action
Configure birth details below and explore the high-fidelity JSON structure. You can also view our public Western Calculators and Vedic Calculators to see these computations rendered visually in real-world consumer interfaces.
Birth Configuration
CONFIG_EDITOR{
"status": "success",
"data": {
"ascendant": {
"signName": "Scorpio",
"nakshatra": "Anuradha"
}
}
}All 21 Endpoints
Every endpoint accepts lang for language selection. POST endpoints use a JSON body; GET endpoints use query parameters.
https://vedic-astrology.p.rapidapi.comโขAuthentication: X-RapidAPI-Key + X-RapidAPI-Host headers.