Skip to content

API documentation

Every endpoint, with the exact request body and an example response, captured from a live server for most of them. Send your key in the X-API-Key header. One successful call costs one credit, whatever you ask for in it — except the two PDF reports and the chat endpoint, which cost 25.

https://api.occultapi.com

What these endpoints produce

Interfaces built on the API. The endpoint behind each is named on the card.

299 endpoints, 330 searchable features

AI & chat

PDF reports

Panchang

Muhurta & timings

Sunrise & moonrise

Lunar

Calendars

Festivals & vrats

Birth chart & houses

Divisional charts

Jaimini

KP (Krishnamurti Paddhati)

Chakras

Planets & positions

Strength (bala)

Ashtakavarga

Dashas — nakshatra (planet)

Dashas — rashi (Jaimini)

Dasha tools

Yogas & doshas

Lal Kitab

Matching & compatibility

Transits & annual charts

Tajika & varshaphala

Scans & transitions

Predictions & readings

Prashna

Tarot

Pancha Pakshi

Returns

Eclipses

Mundane astrology

Fixed stars

Traditional & Hellenistic

Western astrology

Numerology

Chinese astrology

Astrocartography

Human Design

Hazard events

Utilities

Astrology

prashnavali

Error reference

StatusCodeWhat it meansWhat to do
401invalid_api_keyThe key is wrong, revoked or expired.Check the X-API-Key header. If you rotated, deploy the new key.
402insufficient_creditsThe key is valid — you are out of credits.Upgrade your plan or wait for the monthly reset. Not an auth problem; do not regenerate your key.
403endpoint_not_allowedThat route is not available to API keys: the path or method is wrong, or the endpoint has been retired.Check the route and method against the reference. Retrying will not help.
403scope_not_allowedYour key lacks the scope this endpoint needs.Create a key with the right scopes, or leave scopes empty for all.
403ip_not_allowedThe key has an IP allowlist and this request came from another address.Call from an allowed IP, or create a key with the right IPs.
403account_suspendedThe account is suspended, so all of its keys are refused.Contact support. A new key will not help.
429api_key_rate_limitedToo many requests in one minute.Back off and retry after the seconds in Retry-After.
400(field errors)Your request body was wrong.Read message; it names each field. Never charged.