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/v1

Authentication

Include your API key as X-API-Key or Authorization: Bearer.

X-API-Key: YOUR_API_KEY

Getting Started

  1. Issue a key from Get API Keys.
  2. Call natal or sign-based horoscope endpoints below. Unsupported lang values fall back to English.
  3. Missing keys return 401. Rate limits return 429 with X-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}