DEV Community

loading...
Cover image for Open Source Bhagavad Gita API v1.2

Open Source Bhagavad Gita API v1.2

ptprashanttripathi profile image Pt. Prashant tripathi Updated on ・9 min read

About

Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API server

GitHub logo vedicscriptures / bhagavad-gita-api

An open source rest api on indian Vedic Scripture Shrimad Bhagavad Gita.

Bhagavad Gita API

Bhagavad Gita API

Devloper License Website Status stars-shield forks-shield Total-Downlode

View Demo · Report Bug · Request Feature

Loved the tool? Please consider donating 💸 to help it improve!

Donate Buy Coffee for ptprashanttripathi Buy Me A Coffee Support Via UPI

About

Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API server

🚀 How to use

1. Homepage

landing page

2. GET [/gita]

GET Random gita Slok(Verse)

{
  "_id": "BG4.18"
  "chapter": 4
  "verse": 18
  "slok": "कर्मण्यकर्म यः पश्येदकर्मणि च कर्म यः |\nस बुद्धिमान्मनुष्येषु स युक्तः कृत्स्नकर्मकृत् ||४-१८||"
  "transliteration": "karmaṇyakarma yaḥ paśyedakarmaṇi ca karma yaḥ .\nsa buddhimānmanuṣyeṣu sa yuktaḥ kṛtsnakarmakṛt ||4-18||",
  "tej": {
    "author": "Swami Tejomayananda",
    "ht": "।।4.18।। जो पुरुष कर्म में अकर्म और अकर्म में
Enter fullscreen mode Exit fullscreen mode

🚀 How to use

1. Homepage

landing page

2. GET [/gita]

GET Random gita Slok(Verse)

3. GET [/gita/chapters]

GET All Chapters details of Shreemad Bhagavad Gita

4. GET [/gita/:ch]

GET Particular Chapters details of Shreemad Bhagavad Gita

5. GET [/gita/:ch/:sl]

GET JSON of Slok from Particuler slok & chapter of Shreemad Bhagavad Gita

  • URL : https://vedicscripturesapi.herokuapp.com/gita{/:ch/:sl}
  • Method : GET
  • Attributes :
    • :ch : [interger] specfic Adhyay(chapter) number from any of 18 chapters
    • :sl : [interger] specfic Slok(verse) number avilable in taht particuler chapter
  • Response 200 : (application/json)

6. GET [/gita.svg]

GET SVG of Random Slok of Shreemad Bhagavad Gita

Bhagavad Gita API

7. GET [/gita.svg?ch={chapter_num}]

GET SVG of Randome Slok from Particuler chapter of Shreemad Bhagavad Gita

Bhagavad Gita API

8. GET [/gita.svg?ch={chapter_num}&sl={slok_num}]

GET SVG of Slok from Particuler slok & chapter of Shreemad Bhagavad Gita

Bhagavad Gita API

📚 Source Book

💻 Built with

Node.js express
MongoDB Heroko

🙏 Support ✨

Loved the tool? Please consider donating 💸 to help it improve!

Donate Buy Coffee for ptprashanttripathi
Buy Me A Coffee Support Via UPI

🤖 Questions and Feedback

Please contact me using one of the following:

GitHub - https://github.com/ptprashanttripathi
twitter - https://twitter.com/ptprashant09
DEV.TO - https://dev.to/ptprashanttripathi

Developed with ❤️ in India 🇮🇳

Discussion (19)

pic
Editor guide
Collapse
eelstork profile image
Tea

Though I'm more than happy to keep it in book form, interesting work for sure!

Collapse
ptprashanttripathi profile image
Collapse
ptprashanttripathi profile image
Pt. Prashant tripathi Author

Thanks your my brother

Collapse
devashishmamgain profile image
Devashish Datt Mamgain

is the API hosted somewhere for public use?
can i use it to create a chatbot using kommunicate.io ?

Collapse
ptprashanttripathi profile image
Pt. Prashant tripathi Author

Ofcourse brother, if you need any help, i'll be happy to help

Collapse
ptprashanttripathi profile image
Collapse
sunitk profile image
Sunit Katkar

A great tribute and homage to our holy book. Thank you

Collapse
ptprashanttripathi profile image
Collapse
ptprashanttripathi profile image
Pt. Prashant tripathi Author

Thanks my brother 🙏

Collapse
sahilsao profile image
Sahil Sao

Brilliant work brother

Collapse
ptprashanttripathi profile image
Pt. Prashant tripathi Author

Thank you brother 🙏

Collapse
ptprashanttripathi profile image
Collapse
aravind profile image
Aravind Putrevu

I will create a search app on top of it. Fantastic work!

Collapse
ptprashanttripathi profile image
Collapse
aravind profile image
Aravind Putrevu

This is great.

Collapse
apijay profile image
apijay

Good work!! 🙏

Collapse
ptprashanttripathi profile image
Collapse
ashuto7h profile image
Ashutosh Sahu

Nice work. You have put good efforts for this api.

Collapse
ptprashanttripathi profile image
Pt. Prashant tripathi Author

Bhagavad gita api v1.2 Released

check it out in : vedicscripturesapi.herokuapp.com