Skip to content

Open source quran api, not only quran text, this api is also equipped with audio recitation and you can change the audio according to the recitation of the Imam that you like

License

Notifications You must be signed in to change notification settings

zavierferodova/Quran-Api

 
 

Repository files navigation

node-current GitHub repo size GitHub

Website


This project is made for developers who want to develop Islamic applications. besides that this project also aims to be a charity for developers who develop applications with this API, especially me and the developers from the data sources that I get.

Content

Introduction

This API was created to make it easier for developers to develop Islamic applications. There are several different recitations so that developers can create dynamic audio. The data used in the development of this API is taken from several different sources, both from existing APIs and from scraping results.

This API was created using the Express Web Application Framework and several additional libraries that you can see in the package.json file.

File Structure :

Quran-Api
├── __test__/
├── data/
│	├── imam.json
│	└── quran.json
├── server/
|	├── app.js
|	├── controller.js
|	├── middleware.js
|	└── routes.js
├── static/
├── util/
├── package.json
└── package-lock.json

⬆️ Back to Top

Installation

There are several different ways to do the installation, you can use whichever you like

  • Localhost

    # clone the repository
    > git clone https://github.com/zavierferodova/Quran-Api.git quran-api
    
    # change directory
    > cd quran-api
    
    # install all packages from package.json
    > npm install
    
    # now, you can start it
    > npm start
  • Vercel Deploy

    click the deploy button below. Register your own vercel account

    Deploy with Vercel

Note : if you have problems with installation, feel free to create an issue.

⬆️ Back to Top

Usage/Endpoint


Base : https://quran-data.vercel.app/

Alternative : -


Some of these API endpoints that you can access, start the application on your local computer or for a demo, you can go to the following link Qur'an Endpoint

  • /imam/:id

    Displays list of imam

    params :

    [Optional] id : Spesific imam id

    query :

    -

    example :

    # display all imam
    > curl -v -H "Content-Type: application/json" \
    > http://quran-data.vercel.app/imam
    
    # display spesific imam
    > curl -v -H "Content-Type: application/json" \
    > http://quran-data.vercel.app/imam/2
  • /quran/:surah/:ayah?imamId=

    Display list of surah in qur'an

    params :

    [Optional] surah : spesific surah in qur'an

    [Optional] Ayah : Spesific Ayah in qur'an surah

    query :

    [Optional] imamId : Spesific imam id, get it from /imam

    example :

    # show all qur'an surah (without ayah)
    > curl -v -H "Content-Type: application/json" \
    > http://quran-data.vercel.app/quran
    
    # show spesific qur'an surah (with ayah)
    > curl -v -H "Content-Type: application/json" \
    > http://quran-data.vercel.app/quran/12
    
    # show spesific ayah in a surah
    > curl -v -H "Content-Type: application/json" \
    > http://quran-data.vercel.app/quran/12/4
    
    # note :
    #	you can add the ?imamId= query wherever you want,
    # e.g :
    #	/quran?imamId=2
    #	/quran/12?imamId=10
    #	/quran/12/4?imamId=6

    Note : if you have problems with Usage/Endpoint, feel free to create an issue.

⬆️ Back to Top

Sample Apps

You can get inspired and learn from the sample apps below that use this API

  • (Your Apps)

Data Resources

all the data in this api is obtained from several sources below

⬆️ Back to Top

Quran Fonts

Some quran fonts for you projects

⬆️ Back to Top

Thank you

About

Open source quran api, not only quran text, this api is also equipped with audio recitation and you can change the audio according to the recitation of the Imam that you like

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.8%
  • Dockerfile 4.5%
  • Other 0.7%