Giter Site home page Giter Site logo

daljeet-hcl / api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gurbaninow/api-public

0.0 1.0 0.0 62 KB

โšก๏ธ ๐Ÿ™ Fast and Powerful RESTful Gurbani API (Documentation)

Home Page: https://api.gurbaninow.com/

License: Other

api's Introduction

GurbaniNow API badge

โšก๏ธ ๐Ÿ™ Fast and Powerful JSON API used by GurbaniNow Search and many other projects.

GurbaniNow API utilizes the CloudFlare CDN to bring Gurbani to developers all over the world at lightning fast speeds!

If you need help, have an issue, or would like to request an feature, please submit it here!

The API is located at https://api.gurbaninow.com.

alt text

Used By

GurbaniNow AKJ.Org /r/sikh Hukamnama Bot Nitnem App

Documentation

Search

URL: https://api.gurbaninow.com/v2/search/:query
Example: https://api.gurbaninow.com/v2/search/DDrgj/?source=G&searchtype=1

Variable Use
:query The Actual Query, whatever is typed into the Search Box.
INFO: GurbaniAkhar Keyset and Unicode can be used for searching on searchtype: 0 and 1. searchtype: 2 only supports GurbaniAkhar. URL Encoding is Recommended
source Sets which Source you want Shabads from:
Default is All Sources
G - Guru Granth Sahib Ji
D - Sri Dasam Granth
B - Bhai Gurdas Ji Vaaran
N - Bhai Nand Lal Ji Guzals
A - Amrit Keertan
U - Uggardanti
searchtype Search Type
0 - First Letter Start (Gurmukhi/Unicode) (DEFAULT)
1 - First Letter Anywhere (Gurmukhi/Unicode)
2 - Full Word/Line (Gurmukhi)
3 - Full Word/Line (English)
4 - Search All Words (Gurmukhi)
5 - Search All Words (English)
6 - Search Any Words (Gurmukhi)
7 - Search Any Words (English)
writer Set Writer (Default is All Writers) - WriterID List
raag Set Raag (Default is All Raags) - RaagID List
ang Ang/PageNo
Leave Empty if Not Used
1,2,3,4,.... - Specify Ang/PageNo
results Set Count of Results (DEFAULT 20, MAX 100)
In case skip is set, this will return results from the skip to skip+results results.
skip Skip Records (DEFAULT 0)
For example, if you want 20 to 30 results, set skip=20 and results=10

Get Shabad

URL: https://api.gurbaninow.com/v2/shabad/:id
Example: https://api.gurbaninow.com/v2/shabad/3589

Variable Use
:id ShabadID

Get Line

URL: https://api.gurbaninow.com/v2/line/:id
Example: https://api.gurbaninow.com/v2/line/1

Variable Use
:id Line ID

Get Ang

URL: https://api.gurbaninow.com/v2/ang/:page

URL2: https://api.gurbaninow.com/v2/ang/:page/:source

Examples: https://api.gurbaninow.com/v2/ang/917, https://api.gurbaninow.com/v2/ang/1/D

Variable Use
:ang Set Ang/Paana Number (REQUIRED)
:source Sets which Source you want Shabads from: (OPTIONAL)
G - Guru Granth Sahib Ji (DEFAULT)
D - Sri Dasam Granth
B - Bhai Gurdas Ji Vaaran
N - Bhai Nand Lal Ji Guzals
A - Amrit Keertan
U - Uggardanti

Get Today's Hukamnama from Darbar Sahib, Amritsar

URL: https://api.gurbaninow.com/v2/hukamnama/today

NOTE: Hukamnama API Updates Daily at 9:00 PM Eastern Time
Sometimes the Hukamnama Source does not have the Hukamnama for the Day at 9:00 PM, the API will re-update around 12:00 AM to make sure the Hukamnama for the Day has been updated.

Get Hukamnama Archives from Darbar Sahib, Amritsar

URL: https://api.gurbaninow.com/v2/hukamnama/:year/:month/:day

Example: https://api.gurbaninow.com/v2/hukamnama/2017/1/1

NOTE: Hukamnama Archives only go back up to Year 2002.

GurbaniAkhar/Unicode Converter

URL: https://api.gurbaninow.com/v2/convert/:type/:text

Variable Use
:type unicode - GurbaniAkhar to Unicode
akhar - Unicode to GurbaniAkhar
:text Text to be Converted. URL Encoding is Recommended

Licence

GurbaniNow API Copyright (C) 2015-2017 GurbaniNow Dev Team. All Rights Reserved.

Any Data recieved by any means from the GurbaniNow API is licensed under  
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International.

You should have received a copy of the license along with this  
work.  If not, see <https://creativecommons.org/licenses/by-nc-nd/4.0/>.

THE GURBANINOW API IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  
OUT OF OR IN CONNECTION WITH THE GURBANINOW API OR THE USE OR OTHER DEALINGS IN  
THE GURBANINOW API.

April 14, 2017
Subject To Change

api's People

Contributors

sarabveer avatar bogas04 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.