The Bhagavad Gita API allows any developer to use content from Gita in their apps. This API is built with FastAPI which is based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.
Documentation for this API is availaible in two interactive formats:
If you are interested in using this API for your application, please register an account at RapidAPI where you'll get both the credentials as well as sample code in your language of choice. The API is 100% FREE to use.
Here is a list of interesting projects using this API.
Have you build something with this API ? Open a "Show and tell" discussion. The maintainers will feature your project on the README if they find it interesting.
The official API is free to use for all. But If you wish you can self host anywhere you want.
If you want to deploy your own instance,You can deploy the API server on your system or VPS.
Note If you dont have
pip install pipx
pipx run bhagavad-gita-api
docker run -it -p 8081:8081 --env-file=.env bhagavadgita/bhagavad-gita-api
Now open http://localhost:8081/docs to see docs. To stop the server press Ctrl + C on your keyboard.
By default an in-memory SQLite database is used. But you configure to use any SQL database of your choice. The official version uses PostgreSQL.
Looking to deploy on a cloud platform ? We have detailed docs to deploy to the following platforms:
Here is the list of supported environment variables.
|The API key for testing.|
|The DSN for your database connection.|
If you want to configure your deployment even more,
then please take a look at module
To set the environment variables, you may simply use a
.env file where you
specify the values in the format of
Feel free to use the issue tracker for bugs and feature requests.
Looking to contribute code ? PRs are most welcome! To get started with developing this API, please read the contributing guide.
Join the Discord chat server and hang out with others in the community.
You can also use GitHub Discussions to ask questions or tell us about projects you have built using this API.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!