Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

API v1 Docs

Sarabveer Singh edited this page Jan 19, 2020 · 3 revisions

NOTE: This API is deprecated and is only recommended for use in old applications that need to use the old iGurbani v1 query layout.

The API is located at https://api.gurbaninow.com/v1/. The API uses normal GET Parameters, it does not use REST.

Search

Variable Use
mode This sets the mode for the API, there are three modes for the API. Set mode to 1 to Search.
1 - Search
2 - Get Shabad
3 - Get Ang/Panna.
q The Actual Query, whatever is typed into the Search Box. Remember for Gurmukhi Searches, the API uses GurbaniAkhar Keyset.
source Set the Scripture to Search From.
0 - All
1 - Sri Guru Granth Sahib Ji
2 - Vaaran and Ghazals
3 - Sri Dasam Granth and Amrit Keertan
searchtype Search Type
0 - First Letter Start (Gurmukhi)
1 - First Letter Anywhere (Gurmukhi)
2 - Full Word (Gurmukhi)
writer Set Writer - WriterID List
raag Set Raag - RaagID List
ang Ang/PageNo
Leave Empty if Not Used
1,2,3,4,.... - Specify Ang/PageNo
results Set Shabad Results
0 - 20 Results
1,2,3,4.....,100 - Custom Number of Results (100 Results Max)

Get Shabad

Variable Use
mode This sets the mode for the API, there are three modes for the API. Set mode to 2 to Get Shabad.
1 - Search
2 - Get Shabad
3 - Get Ang/Panna.
shabadNo Set Shabad Number

Get Ang

Variable Use
mode This sets the mode for the API, there are three modes for the API. Set mode to 3 to Get Ang.
1 - Search
2 - Get Shabad
3 - Get Ang/Panna.
ang Set Ang/Paana Number