/v1/today
Returns today's Gregorian date, Nanakshahi date, holidays, and next Gurpurab.
Public API
Public API for Nanakshahi Calendar dates including Gurpurabs, historical days, and other significant events in Sikh history. This API currently powers Gurpurab.com and is maintained and supported by the same team.
Requests are unauthenticated. Use the hosted base URL below and send standard HTTP GET requests.
https://api.gurpurab.com
Base URL
/v1/today
Returns today's Gregorian date, Nanakshahi date, holidays, and next Gurpurab.
/v1/date/:date
Looks up a Gregorian date. Accepts today, tomorrow, yesterday, or YYYY-MM-DD.
/v1/ns/:year/:month/:day
Looks up a Nanakshahi date and resolves it to the matching Gregorian date.
/v1/holidays
Lists holidays for a Nanakshahi year, with optional filtering by holiday type, historical status, Gurpurab status, or the Guru.
/v1/holidays/upcoming
Returns upcoming holidays from a given date, filtered by the Guru.
/v1/meta
Returns API calendar coverage metadata, including the final loaded Gregorian date.
| Name | Where | Accepted values |
|---|---|---|
date |
Path | today, tomorrow, yesterday, or YYYY-MM-DD |
year |
Path or query | Nanakshahi year. Currently 558. |
month, day |
Path | Nanakshahi month and day numbers. |
type |
Query | historical, sangrand, puranmashi, massia, or Gurpurab types. |
gurpurab, historical |
Query | true to filter holiday lists. |
guru |
Query | 1 through 11. Use 1 for Sri Guru Nanak Dev Ji through 10 for Sri Guru Gobind Singh Ji; 11 is Sri Guru Granth Sahib Ji. |
Gregorian date search for /v1/date/2026-11-24.
application/json
{
"gregorian": "2026-11-24",
"nanakshahi": {
"day": 9,
"month": 9,
"monthName": {
"en": "Maghar",
"pa": "ਮੱਘਰ",
"transliteration": "Maghar"
},
"year": 558,
"yearLabel": "NS 558"
},
"holidays": [
{
"id": "guru-nanak-prakash",
"type": "gurpurab_lunar",
"isGurpurab": true,
"importance": 1,
"name": {
"guru": {
"number": 1,
"en": "Sri Guru Nanak Dev Ji",
"pa": "ਸ੍ਰੀ ਗੁਰੂ ਨਾਨਕ ਦੇਵ ਜੀ",
"transliteration": "Sri Guru Nanak Dev Ji"
},
"gurpurab": {
"en": "Prakash Gurpurab",
"pa": "ਪ੍ਰਕਾਸ਼ ਗੁਰਪੁਰਬ",
"transliteration": "Prakash Gurpurab"
}
},
"significance": {
"en": "Guru Nanak Dev Ji Prakash Gurpurab celebrates the birth of the founder of Sikhism, whose message of Ik Oankar, equality, seva, and truthful living shaped the Sikh Panth.",
"pa": "ਗੁਰੂ ਨਾਨਕ ਦੇਵ ਜੀ ਪ੍ਰਕਾਸ਼ ਗੁਰਪੁਰਬ ਸਿੱਖ ਧਰਮ ਦੇ ਸੰਸਥਾਪਕ ਗੁਰੂ ਸਾਹਿਬ ਦੇ ਜਨਮ ਦੀ ਖੁਸ਼ੀ ਮਨਾਉਂਦਾ ਹੈ।"
},
"nanakshahi": {
"day": 9,
"month": 9,
"monthName": {
"en": "Maghar",
"pa": "ਮੱਘਰ",
"transliteration": "Maghar"
},
"year": 558
}
},
{
"id": "puranmashi-maghar",
"type": "puranmashi",
"isGurpurab": false,
"importance": 3,
"name": {
"en": "Maghar Pooranmashi",
"pa": "ਮੱਘਰ ਪੂਰਨਮਾਸ਼ੀ",
"transliteration": "Maghar Pooranmashi"
},
"significance": {
"en": "Maghar Pooranmashi marks the full moon observance for this Nanakshahi month.",
"pa": "ਮੱਘਰ ਪੂਰਨਮਾਸ਼ੀ ਇਸ ਨਾਨਕਸ਼ਾਹੀ ਮਹੀਨੇ ਦੀ ਪੂਰਨਮਾਸ਼ੀ ਦਾ ਦਿਹਾੜਾ ਹੈ।"
},
"nanakshahi": {
"day": 9,
"month": 9,
"monthName": {
"en": "Maghar",
"pa": "ਮੱਘਰ",
"transliteration": "Maghar"
},
"year": 558
}
}
],
"isGurpurabToday": true,
"nextGurpurab": null
}
Guru-related holidays use name.guru and name.gurpurab.
Historical holidays with a named person use name.person and name.event.
Sangrand, Pooranmashi, Massia, and historical holidays without a person keep the flat localized name.
Coverage metadata for /v1/meta.
application/json
{
"calendar": {
"loadedThrough": "2027-03-13"
}
}
Calendar data is sourced from the
SGPC Jantri
published each year. Only the current Nanakshahi year, NS 558, is
available for now.
guru and gurpurab objects.person and event objects.guru=1 through guru=11 filtering by the Guru for holiday lists and upcoming holidays.api.gurpurab.com.