Giter Site home page Giter Site logo

vedicscriptures / bhagavad-gita-api Goto Github PK

View Code? Open in Web Editor NEW
167.0 9.0 27.0 784 KB

An opensource rest API on Vedic Scripture Shrimad Bhagavad Gita

Home Page: https://vedicscriptures.github.io

License: GNU General Public License v3.0

JavaScript 100.00%
api-rest gita-api iskcon krishna vedic sanatadharma hindu api karma-yoga ptprashanttripathi

bhagavad-gita-api's Introduction

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

๐Ÿ”’ API key

Its a public service Bhagavad Gita API, so free to use. No hidden costs, no hidden fees. Free for you to use on your non-monetized app

๐Ÿš€ Api Reference

  1. GET /slok/:ch/:sl
  2. GET /chapters
  3. GET /chapter/:ch

https://youtu.be/1OVXdkFoKIg

๐Ÿ“š Source Book

Swami Tejomayananda
Swami Sivananda
Shri Purohit Swami
Swami Chinmayananda
Dr.S.Sankaranarayan
Swami Adidevananda
Swami Gambirananda
Shri Madhavacharya
Shri Anandgiri
Swami Ramsukhdas
Shri Ramanuja
Shri Abhinav Gupta
Shri Shankaracharya
Shri Jayatritha
Shri Vallabhacharya
Shri M. Saraswati
Shri shridhara Swami
Shri Dhanpati
Vedantadeshika
Shri Purushottamji
Shri Neelkanth

๐Ÿ’ป Built with

Node.js express MongoDB Heroko

๐Ÿ‘จโ€๐Ÿ’ป Developer

Pt. Prashant Tripathi

Questions and Feedback

Please contact me using one of the following:


Developed with โค๏ธ in India ๐Ÿ‡ฎ๐Ÿ‡ณ

bhagavad-gita-api's People

Contributors

balram-parmar avatar dependabot[bot] avatar ptprashanttripathi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bhagavad-gita-api's Issues

Not able to fetch data from Flutter app

Describe the bug
I am trying to build a Flutter app using your API. But when I am calling the API, instead of a JSON response, I am getting a script as a string. But, it works fine if I hit the URL in the browser.

Expected behavior
Response in the browser:
Screenshot 2022-12-09 at 4 45 17 PM

Response when called from the Flutter (Dart) code.
Screenshot 2022-12-09 at 4 47 33 PM

Dart Code
Screenshot 2022-12-09 at 4 53 02 PM

Any help will be appreciated.

GET Chapters API not working

Chapter's API does not seem to work.

To Reproduce
Steps to reproduce the behavior:

  1. Query the chapters using browser https://vedicscripturesapi.herokuapp.com/chapters
  2. Error "Cannot GET /chapters" appears

Expected behavior
A list of Chapters should appear

Desktop (please complete the following information):

  • OS: macOS Catalina
  • Browser Chrome
  • Version 10.15.7

Audio file for shlokas

Well no way to reach out to you directly, but this is super great to see this project, plus vedic language. To be honest I don't know anything about my native language like I can only speak don't know how to write or read so yeah it going to be really amazing for me.

Thanks to Krishna I found this project, for many days I wanted to try an experiment on randomness, though we know random is not random in programming, I was like deep down to atomic level His there as well so experiment Gita's Shloka and we relate that to our journey of each day how's going to be like and we write the thoughts on it at the end of the day.

404 error with https://bhagavadgitaapi.in/api/v1

const response = await fetch(https://bhagavadgitaapi.in/api/v1/chapter/${chapter}/verse/${verse});
const geeta = await response.json();

  const shlok = geeta.data.slok;
  const tej = geeta.data.tej.ht;
  const trans = geeta.data.siva.et;

Its show an error: FetchError: invalid json response body at https://bhagavadgitaapi.in/api/v1/chapter/2/verse/8 reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

all shloks of a chapter

Is your feature request related to a problem? Please describe.
I want to display all shloks when user clicks on a chapter. To do so I have to make separate api calls for every shlok of the chapter. Due to this I am not able to do pagination and due to several api calls, it is taking too much time to load.

Describe the solution you'd like
It would be good if there is a direct endpoint which returns the list of shloks of a particular chapter. The end point can have parameter of chapter number. Further another parameter to request list of shloks of particular translation only to make result less bulky can be added.

API returns Javascript instead of JSON

API returns Javascript instead of JSON
The random slok endpoint does not return JSON.

To Reproduce
Steps to reproduce the behavior:

  1. Perform GET request with https://bhagavadgitaapi.in/slok
  2. Receive Javascript

Expected behavior
JSON is returned with random slok

Screenshots
Screen Shot 2022-06-20 at 9 41 15 AM

This is not working anymore

Describe the bug
A clear and concise description of what the bug is.
I would like to say this is a wonderful api if you can get it back as it is not working anymore. I sent a req at "https://bhagavadgitaapi.in/chapters/4" and other chapters too but it is returning 404.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Application Error

Hi, can u please check ur Heroku error log because the site is showing "Application Error"

gita

Getting wrong SVG

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://bhagavadgitaapi.in/gita.svg/1/1
  2. Then it must respond with SVG of Chapter 1 and Slok 1
  3. But I'm getting random SVG

Expected behavior
It must respond with correct SVG.

Screenshots
image

Server requests are responding with an error.

Describe the bug
All requests are failing.

To Reproduce

curl https://vedicscripturesapi.herokuapp.com/gita
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /gita</pre>
</body>
</html>

Additional context
It was working until yesterday.

docs unreachable

Describe the bug
Getting a 404 error when trying to access https://docs.bhagavadgitaapi.in

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://docs.bhagavadgitaapi.in'
  2. See error

Expected behavior
User should be able to access the documentation page.

Screenshots
image

Desktop (please complete the following information):

  • OS: [macOS Monterey]
  • Browser [chrome and safari]
  • Version [latest]

geeta api for android app

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

hii. i am aman yadav i am actually working a project connected to your api here is my github repo please check this https://github.com/AmanYadav1419/Bhagvadgita-1.0.0 and in this actually add the features for translation of the sloka and add meanings of sloka in different so it will help more as you see the code already written but in api there is nothing for translation and meaning so it not recongising it for contact details my email-id is : [email protected]

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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.