POST

Complete Panchang

The Complete Panchang API provides comprehensive Hindu Panchang details for a specified date, time, and geographical location. Retrieve sunrise and sunset, weekday, lunar month, Ritu, Aayanam, Tithi, Nakshatra, Yoga, Karana, and Saka Salivahana and Vikram Chaitradi year information in a structured JSON response.

/complete-panchang
Method
POST
Format
JSON
Auth
API Key
Credits
1

Overview

The Complete Panchang API provides detailed Hindu calendar and Panchang information for a specified date, time, and geographical location. It returns sunrise and sunset times, weekday details, lunar month, Ritu (season), Aayanam, Tithi, Nakshatra, Yoga, Karana, and traditional year information, including Saka Salivahana and Vikram Chaitradi year names and numbers.

To use the API, send a POST request with the year, month, date, hours, minutes, seconds, latitude, longitude, and timezone offset of the location. You can also provide optional configuration settings to select the Ayanamsha, language of the response, and observation point for planetary calculations.

The API returns structured JSON data, including the names and numbers of Panchang elements, their relevant start or completion times, and percentage information where available. Responses can be requested in supported languages such as English, Telugu, Hindi, Tamil, Kannada, Malayalam, and others. This makes the API suitable for integrating traditional Hindu calendar information into astrology applications, Panchang websites, and calendar tools.

Note: The Complete Panchang API endpoint is not available under the Free package. Please upgrade to an eligible paid package to access this endpoint.

Request Parameters

Parameter Type Required Description Example
year
integer Yes Year number, eg: 2023 2023
month
integer Yes Month number,with no leading zero 7
date
integer Yes Day number,with no leading zero 5
hours
integer Yes Hours number,with no leading zero 1
minutes
integer Yes Minutes number,with no leading zero 1
seconds
integer Yes Seconds number, with no leading zero 0
latitude
float Yes Latitude number, in the range from -90 to 90 12.86
longitude
float Yes Longitude number, in the range from -180 to 180 123.5
timezone
float Yes Timezone of birth location, eg: 5.5 5.5
📦 config
object No Contains optional configuration values
ayanamsha
string No Either "tropical" or "sayana" or "lahiri" Either "tropical" or "sayana" or "lahiri"
language
string No Valid 2 letter ISO 639-1 language code Either "en" For English or "te" for Telugu or "hi" for Hindi or "ta" for Tamil or "kn" for Kannada or "ml" for Malayalam or "or" for Odia or "gu" for Gujarati or "pa" for Punjabi or "bn" for Bengali or "mr" for Marathi or "as" for Assamese or "ur" for Urdu or "ne" for Nepali
observation_point
string No Geocentric positions are calculated with respect to the center of Earth. Topocentric positions are calculated with respect to the actual given place Either "topocentric" or "geocentric"

Request Example

{
  "year": 2026,
  "month": 11,
  "date": 6,
  "hours": 2,
  "minutes": 0,
  "seconds": 0,
  "latitude": 17.38405,
  "longitude": 78.45636,
  "timezone": 5.5,
  "config": {
    "observation_point": "topocentric",
    "ayanamsha": "lahiri",
    "language":"te"
  }
}

Response Examples

Example responses returned by this API.

English Response
{
    "sun_rise": "6:16:46",
    "sun_set": "17:42:50",
    "weekday": {
        "weekday_number": 5,
        "weekday_name": "Friday",
        "vedic_weekday_number": 4,
        "vedic_weekday_name": "Thursday"
    },
    "lunar_month": {
        "lunar_month_number": 7,
        "lunar_month_name": "Ashweeyujam",
        "lunar_month_full_name": "Ashweeyujam",
        "adhika": 0,
        "nija": 0,
        "kshaya": 0
    },
    "ritu": {
        "number": 5,
        "name": "Hemant (Winter)"
    },
    "aayanam": "Dakshinayanam",
    "tithi": {
        "number": 27,
        "name": "Dwadashi",
        "paksha": "krishna",
        "completes_at": "2026-11-06T10:41:24",
        "left_precentage": 28.19
    },
    "nakshatra": {
        "number": 12,
        "name": "Uttara Phalguni(Uttara)",
        "starts_at": "2026-11-05T01:49:06",
        "ends_at": "2026-11-06T02:16:59",
        "left_percentage": 1.3071217781691757
    },
    "yoga": {
        "1": {
            "number": 27,
            "name": "Vaidhriti",
            "completion": "2026-11-06T03:32:45",
            "yoga_left_percentage": 7.242357840979352
        },
        "2": {
            "number": 1,
            "name": "Vishkambha",
            "completion": "2026-11-07T02:41:01"
        }
    },
    "karana": {
        "1": {
            "number": 54,
            "name": "Taitula",
            "karana_left_percentage": 56.38196825635191,
            "completion": "2026-11-06T10:41:29"
        },
        "2": {
            "number": 55,
            "name": "Garija",
            "completion": "2026-11-06T22:21:20"
        },
        "3": {
            "number": 56,
            "name": "Vanija",
            "completion": "2026-11-07T10:34:04"
        }
    },
    "year": {
        "status": "success",
        "timestamp": "2026-03-19T05:35:19",
        "saka_salivahana_number": 1948,
        "saka_salivahana_name_number": 40,
        "saka_salivahana_year_name": "Paraabhava",
        "vikram_chaitradi_number": 2083,
        "vikram_chaitradi_name_number": 54,
        "vikram_chaitradi_year_name": "Rowdri"
    }
}
Telugu
{
    "sun_rise": "6:16:46",
    "sun_set": "17:42:50",
    "weekday": {
        "weekday_number": 5,
        "weekday_name": "శుక్రవారము",
        "vedic_weekday_number": 4,
        "vedic_weekday_name": "గురువారము"
    },
    "lunar_month": {
        "lunar_month_number": 7,
        "lunar_month_name": "ఆశ్వయుజము",
        "lunar_month_full_name": "ఆశ్వయుజము",
        "adhika": 0,
        "nija": 0,
        "kshaya": 0
    },
    "ritu": {
        "number": 5,
        "name": "హేమంత ఋతువు"
    },
    "aayanam": "దక్షిణాయణం",
    "tithi": {
        "number": 27,
        "name": "ద్వాదశి",
        "paksha": "krishna",
        "completes_at": "2026-11-06T10:41:24",
        "left_precentage": 28.19
    },
    "nakshatra": {
        "number": 12,
        "name": "ఉత్తర ఫల్గుని (ఉత్తర)",
        "starts_at": "2026-11-05T01:49:06",
        "ends_at": "2026-11-06T02:16:59",
        "left_percentage": 1.3071217781691757
    },
    "yoga": {
        "1": {
            "number": 27,
            "name": "వైధృతి",
            "completion": "2026-11-06T03:32:45",
            "yoga_left_percentage": 7.242357840979352
        },
        "2": {
            "number": 1,
            "name": "విష్కంభ",
            "completion": "2026-11-07T02:41:01"
        }
    },
    "karana": {
        "1": {
            "number": 54,
            "name": "తైతిల",
            "karana_left_percentage": 56.38196825635191,
            "completion": "2026-11-06T10:41:29"
        },
        "2": {
            "number": 55,
            "name": "గరిజ",
            "completion": "2026-11-06T22:21:20"
        },
        "3": {
            "number": 56,
            "name": "వనిజ",
            "completion": "2026-11-07T10:34:04"
        }
    },
    "year": {
        "status": "success",
        "timestamp": "2026-03-19T05:35:19",
        "saka_salivahana_number": 1948,
        "saka_salivahana_name_number": 40,
        "saka_salivahana_year_name": "పరాభవ",
        "vikram_chaitradi_number": 2083,
        "vikram_chaitradi_name_number": 54,
        "vikram_chaitradi_year_name": "రౌద్రి"
    }
}
Hindi
{
    "sun_rise": "6:16:46",
    "sun_set": "17:42:50",
    "weekday": {
        "weekday_number": 5,
        "weekday_name": "शुक्रवार",
        "vedic_weekday_number": 4,
        "vedic_weekday_name": "गुरुवार"
    },
    "lunar_month": {
        "lunar_month_number": 7,
        "lunar_month_name": "आश्विन",
        "lunar_month_full_name": "आश्विन",
        "adhika": 0,
        "nija": 0,
        "kshaya": 0
    },
    "ritu": {
        "number": 5,
        "name": "हेमंत"
    },
    "aayanam": "दक्षिणायन",
    "tithi": {
        "number": 27,
        "name": "द्वादशी",
        "paksha": "krishna",
        "completes_at": "2026-11-06T10:41:24",
        "left_precentage": 28.19
    },
    "nakshatra": {
        "number": 12,
        "name": "उत्तर फाल्गुन",
        "starts_at": "2026-11-05T01:49:06",
        "ends_at": "2026-11-06T02:16:59",
        "left_percentage": 1.3071217781691757
    },
    "yoga": {
        "1": {
            "number": 27,
            "name": "वैधृति",
            "completion": "2026-11-06T03:32:45",
            "yoga_left_percentage": 7.242357840979352
        },
        "2": {
            "number": 1,
            "name": "विष्कुम्भ",
            "completion": "2026-11-07T02:41:01"
        }
    },
    "karana": {
        "1": {
            "number": 54,
            "name": "तैतिल",
            "karana_left_percentage": 56.38196825635191,
            "completion": "2026-11-06T10:41:29"
        },
        "2": {
            "number": 55,
            "name": "गर",
            "completion": "2026-11-06T22:21:20"
        },
        "3": {
            "number": 56,
            "name": "वणिज",
            "completion": "2026-11-07T10:34:04"
        }
    },
    "year": {
        "status": "success",
        "timestamp": "2026-03-19T05:35:19",
        "saka_salivahana_number": 1948,
        "saka_salivahana_name_number": 40,
        "saka_salivahana_year_name": "पराभव",
        "vikram_chaitradi_number": 2083,
        "vikram_chaitradi_name_number": 54,
        "vikram_chaitradi_year_name": "रौद्र"
    }
}

Code Examples

Use the following examples to integrate this API into your application.

PHP Code
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://json.freeastrologyapi.com/complete-panchang',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "year": 2026,
  "month": 11,
  "date": 6,
  "hours": 2,
  "minutes": 0,
  "seconds": 0,
  "latitude": 17.38405,
  "longitude": 78.45636,
  "timezone": 5.5,
  "config": {
    "observation_point": "topocentric",
    "ayanamsha": "lahiri",
    "language":"te"
  }
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'x-api-key: YOUR_API_KEY_HERE'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
Python Code
import requests
import json

url = "https://json.freeastrologyapi.com/complete-panchang"

payload = json.dumps({
  "year": 2026,
  "month": 11,
  "date": 6,
  "hours": 2,
  "minutes": 0,
  "seconds": 0,
  "latitude": 17.38405,
  "longitude": 78.45636,
  "timezone": 5.5,
  "config": {
    "observation_point": "topocentric",
    "ayanamsha": "lahiri",
    "language": "te"
  }
})
headers = {
  'Content-Type': 'application/json',
  'x-api-key': 'YOUR_API_KEY_HERE'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Node JS Code
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://json.freeastrologyapi.com/complete-panchang',
  'headers': {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY_HERE'
  },
  body: JSON.stringify({
    "year": 2026,
    "month": 11,
    "date": 6,
    "hours": 2,
    "minutes": 0,
    "seconds": 0,
    "latitude": 17.38405,
    "longitude": 78.45636,
    "timezone": 5.5,
    "config": {
      "observation_point": "topocentric",
      "ayanamsha": "lahiri",
      "language": "te"
    }
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});