REST API
Standard HTTP JSON API for universal compatibility.
Try with Your API Key
The cURL example below updates automatically when you set your AstroFusion Token in the navbar above.
cURL (panchanga example)
curl -X GET 'https://api.astro-fusion.com/external/v1/calculations/panchanga?date=1984-08-19T00:00:00Z&latitude=27.7172&longitude=85.3240' \
-H 'Authorization: Bearer YOUR_API_KEY'Base URL
https://api.astro-fusion.com/external/v1Authentication
Include your API key as X-API-Key or Authorization: Bearer.
X-API-Key: YOUR_API_KEYGetting Started
- Issue a key from Get API Keys.
- Call natal or sign-based horoscope endpoints below. Unsupported
langvalues fall back to English. - Missing keys return
401. Rate limits return429withX-RateLimit-*headers.
Natal horoscope
curl -X GET 'https://api.astro-fusion.com/external/v1/calculations/horoscope/daily?dob=1990-01-01T10:00:00Z&lat=27.7172&lng=85.3240&lang=en' \ -H 'X-API-Key: YOUR_API_KEY'
Sign-based daily horoscope
curl -X GET 'https://api.astro-fusion.com/external/v1/horoscope/daily/aries?lang=hi' \ -H 'X-API-Key: YOUR_API_KEY'
Endpoints
POST/calculations/kundali
GET/calculations/panchanga
GET/calculations/horoscope/{period}
GET/horoscope/{period}/{sign}
GET/rashifal/{period}/{sign}