Skip to content

The-Quran-Project/Quran-API

Repository files navigation

Quran API

This is a simple API that provides the verses of the Quran. Unlike other APIs, this API doesn't require any authentication. It's free and open for everyone without any rate limits.

Note

We currently provide these translations directly with every verse request:

  • English
  • Arabic (with and without Tashkeel)
  • Bengali
  • Urdu

We can technically provide more translations directly. But as not everyone will need all the languages, therefore we'll only stick with these major 4 translations.

But, we provide other translations too. But for that, you need to get the whole translation of the quran at once. These are:

  • Trukish
  • Uzbek

More information here

Documentation

The documentation for this API can be found here.

Host it yourself

Docker

docker build -t quran-api .
docker run -p 3000:3000 quran-api

One line command

docker build -t quran-api . && docker run -p 3000:3000 quran-api

Node.js

git clone https://github.com/The-Quran-Project/Quran-API/ --depth 1
cd Quran-API
npm i --loglevel=error
python public/scripts/main.py
npm run build
npx -y serve@latest out

One line command:

git clone https://github.com/The-Quran-Project/Quran-API/ --depth 1 && cd Quran-API && npm i --loglevel=error &&  python public/main.py && npm run build && npx -y serve@latest out

How it works

This API serves static JSON files that contain the verses of the Quran. /api/ folder is generated at build time.

The data is taken from Quran.com.

Repo Activity

Alt

Star History

Star History Chart

About

An API for the Holy Quran with no rate limit. Use it for general purposes

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •