Astrology API workspace

Documentation

Explore routes, parameters and responses for every endpoint.

Developer reference 8 endpoints

Build with the stars.

Every route, parameter and response in one place. Use your key directly with the astrology API.

01 / GET STARTED

Your first request

Send your personal key in a header. The VPS checks your subscription with CodeReveal and returns JSON.

01Copy your keyFind it in API keys after activating a plan.
02Use the API base URLAll active keys use astroapi.codereveal.in.
03Send a GET requestInclude the endpoint parameters and key header.
cURL · Main API
curl -G 'https://astroapi.codereveal.in/planets.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'hours=10' \
  --data-urlencode 'minutes=45' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841'

Keep keys in request headers. The API also accepts ?api_key=, but URLs can appear in browser history and server logs. All active plans use the root API path.

02 / CHART ROUTING

D1 through D60, mapped clearly.

The API provides the standard vargas listed below. D1 and D9 details come from planets.php; the supported remaining charts come from divisional_charts.php. It does not provide every integer between 1 and 60.

D1RashiBirth chart
D2HoraDivisional
D3DrekkanaDivisional
D4ChaturthamsaDivisional
D7SaptamsaDivisional
D9NavamsaBirth chart
D10DasamsaDivisional
D12DwadasamsaDivisional
D16ShodasamsaDivisional
D20VimsamsaDivisional
D24ChaturvimsamsaDivisional
D27SaptavimsamsaDivisional
D30TrimsamsaDivisional
D40KhavedamsaDivisional
D45AkshavedamsaDivisional
D60ShashtiamsaDivisional
D1 + D9/planets.php
Other supported vargas/divisional_charts.php?chart=D10
03 / METERING

Credit costs, clearly listed.

Each request uses monthly credits first, then any purchased credits. The amount depends on the endpoint and whether you request one result or a full set.

API resultRoute or optionCredits / request
Panchangpanchang.php10
Birth chart + D9planets.php30
One divisional chartdivisional_charts.php?chart=D1030
All divisional chartsdivisional_charts.php (no chart parameter)150
Planetary transitstransit.php40
Kundli Milanmatchmaking.php60
Ashtakavargaashtakavarga.php80
Vimshottari Dashadasha.php200
Daily horoscope · one signdaily-horoscope.php?rashi=Leo50
Daily horoscope · all signsdaily-horoscope.php?rashi=all250

Omitting chart returns all supported divisional charts. Omitting rashi returns all twelve horoscopes. These requests use the full-set cost. Credits are deducted when a request is authorized. Added credits expire after 90 days and require an active plan; your plan's per-minute limit still applies.

04 / API REFERENCE

Explore every endpoint.

All routes use GET and return JSON. Select an endpoint to see its request, parameters and response fields.

Charts

Birth chart & Navamsa

30 creditsGET

Planetary positions and ascendant for D1, with D9 Navamsa sign details on each planet and the ascendant.

https://astroapi.codereveal.in/planets.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/planets.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'hours=10' \
  --data-urlencode 'minutes=45' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841'

Required parameters

ParameterTypeDescription
dayintegerDay of birth, 1–31
monthintegerMonth of birth, 1–12
yearintegerFour-digit birth year
hoursintegerBirth hour, 0–23
minutesintegerBirth minute, 0–59
latitudedecimalBirthplace latitude, −90 to 90
longitudedecimalBirthplace longitude, −180 to 180

Optional parameters

ParameterTypeDescription
secondsintegerBirth seconds, default 0
nodestringmean (default) or true
Responseinput, ascendant, planets; each planet includes its D9 sign and degree.
D1 and D9 come from this endpoint. Birth time is interpreted as IST by the current implementation.
Charts

Divisional charts

30–150 creditsGET

A full varga set or one selected divisional chart. D1 and D9 are supplied by planets.php.

https://astroapi.codereveal.in/divisional_charts.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/divisional_charts.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'hours=10' \
  --data-urlencode 'minutes=45' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841' \
  --data-urlencode 'chart=D10'

Required parameters

ParameterTypeDescription
dayintegerDay of birth, 1–31
monthintegerMonth of birth, 1–12
yearintegerFour-digit birth year
hoursintegerBirth hour, 0–23
minutesintegerBirth minute, 0–59
latitudedecimalBirthplace latitude, −90 to 90
longitudedecimalBirthplace longitude, −180 to 180

Optional parameters

ParameterTypeDescription
chartstringOne supported chart, e.g. D10. Omit to receive all supported charts.
secondsintegerBirth seconds, default 0
nodestringmean or true
country_codestringTwo-letter country code, when applicable
Responseinput, divisional_charts; each chart includes its ascendant and planetary placements.
Supported: D2, D3, D4, D7, D10, D12, D16, D20, D24, D27, D30, D40, D45 and D60. Birth time is local to the birthplace.
Compatibility

Kundli Milan

60 creditsGET

Ashtakoota compatibility for two birth charts, with an overall score out of 36 and detailed koota results.

https://astroapi.codereveal.in/matchmaking.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/matchmaking.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'b_day=15' \
  --data-urlencode 'b_month=1' \
  --data-urlencode 'b_year=2007' \
  --data-urlencode 'b_hours=10' \
  --data-urlencode 'b_minutes=45' \
  --data-urlencode 'b_lat=25.291146' \
  --data-urlencode 'b_lon=82.995841' \
  --data-urlencode 'g_day=20' \
  --data-urlencode 'g_month=5' \
  --data-urlencode 'g_year=2007' \
  --data-urlencode 'g_hours=11' \
  --data-urlencode 'g_minutes=30' \
  --data-urlencode 'g_lat=28.6139' \
  --data-urlencode 'g_lon=77.209'

Required parameters

ParameterTypeDescription
b_day / g_dayintegerBirth day for each person
b_month / g_monthintegerBirth month for each person
b_year / g_yearintegerBirth year for each person
b_hours / g_hoursintegerBirth hour for each person
b_minutes / g_minutesintegerBirth minute for each person
b_lat / g_latdecimalBirthplace latitude for each person
b_lon / g_londecimalBirthplace longitude for each person
Responsetotal_score, max_score (36), percentage, verdict and koota_details.
The API route is matchmaking.php. It calculates both charts internally using planets.php.
Forecasts

Daily horoscope

50–250 creditsGET

A daily forecast for one rashi or all twelve signs, fixed to a 12:00 PM IST planetary snapshot.

https://astroapi.codereveal.in/daily-horoscope.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/daily-horoscope.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'date=2026-11-23' \
  --data-urlencode 'rashi=Leo'

Optional parameters

ParameterTypeDescription
dateYYYY-MM-DDCalendar date; defaults to today in Asia/Kolkata
rashistringEnglish or Sanskrit sign name, or all (default)
Responsehoroscope_date, panchang, scores and predictions; all signs appear under horoscopes when rashi=all.
Use rashi=all to retrieve every sign in one request. A date must be a valid YYYY-MM-DD calendar date.
Calendar

Panchang

10 creditsGET

Location-aware daily calendar details including tithi, nakshatra and sunrise information.

https://astroapi.codereveal.in/panchang.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/panchang.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841'

Optional parameters

ParameterTypeDescription
day / month / yearintegerDate; defaults to today at the resolved location
hours / minutesintegerLocal time; defaults to current local time
latitude / longitudedecimalLocation; defaults to Delhi
country_codestringOptional two-letter country code
Responseinput and panchang, including tithi and other calendar details.
Coordinates and date are optional, but supply them for a specific location and day.
Timing

Vimshottari Dasha

200 creditsGET

Dasha periods calculated from the birth Moon and nakshatra.

https://astroapi.codereveal.in/dasha.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/dasha.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'hours=10' \
  --data-urlencode 'minutes=45' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841'

Required parameters

ParameterTypeDescription
dayintegerDay of birth, 1–31
monthintegerMonth of birth, 1–12
yearintegerFour-digit birth year
hoursintegerBirth hour, 0–23
minutesintegerBirth minute, 0–59
latitudedecimalBirthplace latitude, −90 to 90
longitudedecimalBirthplace longitude, −180 to 180
Responseinput, birth_moon, balance_at_birth and current_dasha.
The current implementation accepts birth years 1800–2100 and interprets birth time as IST.
Charts

Ashtakavarga

80 creditsGET

Planetary point distribution and reference positions for the supplied birth chart.

https://astroapi.codereveal.in/ashtakavarga.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/ashtakavarga.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'hours=10' \
  --data-urlencode 'minutes=45' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841'

Required parameters

ParameterTypeDescription
dayintegerDay of birth, 1–31
monthintegerMonth of birth, 1–12
yearintegerFour-digit birth year
hoursintegerBirth hour, 0–23
minutesintegerBirth minute, 0–59
latitudedecimalBirthplace latitude, −90 to 90
longitudedecimalBirthplace longitude, −180 to 180
Responseinput, reference_positions, bhinna_ashtakavarga and total_bindus.
Use the same date, time and coordinates as the birth chart endpoint.
Forecasts

Planetary transits

40 creditsGET

Current planetary transits and house positions relative to a natal ascendant.

https://astroapi.codereveal.in/transit.php
View request and parameters
Example request
curl -G 'https://astroapi.codereveal.in/transit.php' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  --data-urlencode 'day=15' \
  --data-urlencode 'month=1' \
  --data-urlencode 'year=2007' \
  --data-urlencode 'hours=10' \
  --data-urlencode 'minutes=45' \
  --data-urlencode 'latitude=25.291146' \
  --data-urlencode 'longitude=82.995841'

Optional parameters

ParameterTypeDescription
natal_ascendantdecimalKnown natal ascendant degree, 0–359.99; skips natal birth inputs
dayintegerDay of birth, 1–31
monthintegerMonth of birth, 1–12
yearintegerFour-digit birth year
hoursintegerBirth hour, 0–23
minutesintegerBirth minute, 0–59
latitudedecimalBirthplace latitude, −90 to 90
longitudedecimalBirthplace longitude, −180 to 180
Responsetransit_time, natal_ascendant and transits.
Supply natal_ascendant directly, or provide all seven birth inputs to calculate it.
05 / OPERATIONS

Errors & usage limits.

Authorization and limits are checked before the VPS runs the endpoint.

400Invalid or missing endpoint parameters
403Invalid key, expired plan or wrong environment
429Monthly and added credits exhausted, or per-minute rate limit reached
503Authorization or astrology service unavailable

Authorized customer requests include X-Credits-Limit, X-Credits-Remaining, X-Topup-Credits-Remaining, X-Credits-Cost and rate-limit headers.