API reference › Panchang & muhurat
Daily Panchang API for a Date and Place
Panchang for a date and place
GET/v1/panchang
1 credit · Secret or publishable key · getPanchang
Tithi, nakshatra, yoga, karana, vara; sunrise, sunset; Rahu Kaal, Gulika, Yamaganda, Abhijit. tithi.ends_at and nakshatra.ends_at: when the tithi and the nakshatra running at local noon end, ISO 8601 on the place's clock, to the minute (null when the engine finds no end). Every tithi of a range with its start: GET /v1/calendar/tithis. End times of yoga and karana, and moonrise, are not computed. nakshatra.weight is the engine's per-nakshatra weighting of the day (-0.22 to 0.25).
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date required | query | string (date) | e.g. "1990-08-13" |
lat | query | number | With lon; or use place_id. ≥ -90 · ≤ 90 |
lon | query | number | ≥ -180 · ≤ 180 |
place_id | query | string | |
lang | query | string | one of en, hi · default "en" |
tone | query | string | descriptive: reviewed descriptive sentences in the prose fields, in lang; ids and values unchanged (as options.tone). one of default, descriptive · default "default" |
Response
JSON { data, meta, warnings }, where data is:
datestring (date) requirede.g.
"1990-08-13"placeCoordinates requiredlatitudenumber required≥ -90 · ≤ 90
longitudenumber required≥ -180 · ≤ 180
timezoneobject requirednamestring requiredutc_offsetstring required
tithiobject requirednumberinteger required≥ 1 · ≤ 30
namestring requiredlabelstring requiredpakshastring requiredends_atstring (date-time) or null requiredOne of:
- string (date-time)
- null
notestring requiredThe engine's one-line character of the tithi (e.g. 'Good - results take shape').
note_idstring requiredA stable id for note: the same sentence always has the same id, so a client can show its own reviewed copy in its place (D3, 2026-10-29).
nakshatraobject requirednameNakshatraId requiredThe 27 nakshatras, 1 Ashwini … 27 Revati. Spellings are fixed: mula (not moola), shatabhisha (not satabhisha), purva_ashadha, uttara_bhadrapada.
one of
ashwini,bharani,krittika,rohini,mrigashira,ardra,punarvasu,pushya,ashlesha,magha,purva_phalguni,uttara_phalguni,hasta,chitra,swati,vishakha,anuradha,jyeshtha,mula,purva_ashadha,uttara_ashadha,shravana,dhanishta,shatabhisha,purva_bhadrapada,uttara_bhadrapada,revatilabelstring requiredlordstring requirednextNakshatraId requiredThe 27 nakshatras, 1 Ashwini … 27 Revati. Spellings are fixed: mula (not moola), shatabhisha (not satabhisha), purva_ashadha, uttara_bhadrapada.
one of
ashwini,bharani,krittika,rohini,mrigashira,ardra,punarvasu,pushya,ashlesha,magha,purva_phalguni,uttara_phalguni,hasta,chitra,swati,vishakha,anuradha,jyeshtha,mula,purva_ashadha,uttara_ashadha,shravana,dhanishta,shatabhisha,purva_bhadrapada,uttara_bhadrapada,revatiends_atstring (date-time) or null requiredOne of:
- string (date-time)
- null
numberinteger required≥ 1 · ≤ 27
hours_remainingnumber or null requiredOne of:
- number
- null
weightnumber requiredThe engine's weighting of the Moon's nakshatra for the day, from -0.22 (Ardra, Mula) to 0.25 (Pushya); astrologics.in files it with its nakshatra alerts.
≥ -1 · ≤ 1
yogaobject requirednamestring requiredlabelstring requiredqualitystring requirednumberinteger required≥ 1 · ≤ 27
karanaobject requirednumberinteger required≥ 1 · ≤ 60
namestring requiredlabelstring required
varaobject requirednamestring requiredlabelstring requiredlordstring required
sunrisestring (date-time) requiredsunsetstring (date-time) requiredrahu_kaalTimeWindow or null requiredOne of:
- TimeWindow
Fields
startstring (date-time) requiredendstring (date-time) required
- null
- TimeWindow
gulika_kaalTimeWindow or null requiredOne of:
- TimeWindow
Fields
startstring (date-time) requiredendstring (date-time) required
- null
- TimeWindow
yamagandaTimeWindow or null requiredOne of:
- TimeWindow
Fields
startstring (date-time) requiredendstring (date-time) required
- null
- TimeWindow
abhijitTimeWindow or null requiredOne of:
- TimeWindow
Fields
startstring (date-time) requiredendstring (date-time) required
- null
- TimeWindow
Errors: 400, 401, 403, 404, 422, 429, 500. See error codes.
Example request
curl 'https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209' \
-H 'Authorization: Bearer al_test_YOUR_KEY'
Node.js
const res = await fetch("https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209", {
headers: { Authorization: "Bearer al_test_YOUR_KEY" },
});
console.log(JSON.stringify(await res.json(), null, 2));Python
import json
import urllib.error
import urllib.request
req = urllib.request.Request(
"https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209",
method="GET",
headers={"Authorization": "Bearer al_test_YOUR_KEY"},
)
try:
with urllib.request.urlopen(req) as res:
print(json.dumps(json.load(res), indent=2, ensure_ascii=False))
except urllib.error.HTTPError as err:
print(err.code, err.read().decode())PHP
<?php
$ch = curl_init('https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['Authorization: Bearer al_test_YOUR_KEY'],
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch), PHP_EOL;Example response
200 OK · 1,716 characters
{
"data": {
"date": "2026-10-02",
"place": {
"latitude": 28.6139,
"longitude": 77.209
},
"timezone": {
"name": "Asia/Kolkata",
"utc_offset": "+05:30"
},
"tithi": {
"number": 22,
"name": "saptami",
"label": "Saptami",
"paksha": "krishna",
"ends_at": "2026-10-03T08:00:00+05:30",
"note": "Positive - a day for action",
"note_id": "tithi_saptami"
},
"nakshatra": {
"name": "mrigashira",
"label": "Mrigashira",
"lord": "mars",
"next": "ardra",
"ends_at": "2026-10-03T02:55:00+05:30",
"weight": 0.05,
"number": 5,
"hours_remaining": 14.9
},
"yoga": {
"name": "vyatipata",
"label": "Vyatipata",
"quality": "inauspicious",
"number": 17
},
"karana": {
"number": 43,
"name": "vishti",
"label": "Vishti"
},
"vara": {
"name": "shukravara",
"label": "Shukravara",
"lord": "venus"
},
"sunrise": "2026-10-02T06:15:00+05:30",
"sunset": "2026-10-02T18:06:00+05:30",
"rahu_kaal": {
"start": "2026-10-02T10:41:00+05:30",
"end": "2026-10-02T12:10:00+05:30"
},
"gulika_kaal": {
"start": "2026-10-02T07:43:00+05:30",
"end": "2026-10-02T09:12:00+05:30"
},
"yamaganda": {
"start": "2026-10-02T15:08:00+05:30",
"end": "2026-10-02T16:37:00+05:30"
},
"abhijit": {
"start": "2026-10-02T11:47:00+05:30",
"end": "2026-10-02T12:34:00+05:30"
}
},
"meta": {
"request_id": "req_example",
"api_version": "v1",
"engine_version": "2026.10.10",
"mode": "live",
"credits_charged": 1
},
"warnings": []
}Try it
More in Panchang & muhurat
- Choghadiya API: Day and night choghadiya
- Muhurat Activities API: Supported muhurat activities
- Muhurat Search API: Days rated for an activity, with scores and rejection reasons
- Personal Muhurat API (Tara Bala): Muhurat windows with tara bala and chandra bala for one person
- Muhurat for a Day API: One day judged for an activity: the panchang, the verdict, the windows left after Rahu Kaal, Yamaganda and Gulika
- Yearly Muhurat List API (Vivah, Griha Pravesh): The dated muhurat list of a year for an occasion: the days that hold a window, with the windows
- Muhurat Dates API for an Occasion: Every local day between two dates for an occasion: available with its windows, or the reason it is not
- Hora API (Planetary Hours): Hora: the 24 planetary hours of a day
- Muhurat Scan API (62 Days): Scan up to 62 days for an activity inside daily hours: the ten best days with their favourable windows