/quran-json

Quran text and translations in JSON format.

Primary LanguageJavaScriptCreative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

Quran JSON

Build Status Latest Version

Quran text and translations in JSON format. Both Quran text and the translations are provided by tanzil.net.

CDN

Check the json directory to see all available JSON files. The JSON files are also available through UNPKG CDN.

List of Surah

Quran Text

Translations

Quran Text with Translations

Quran Text with Translations per Surah

Each Surah is available under the following URL format:

https://unpkg.com/quran-json@latest/json/surahs/{surahNumber}.json

surahNumber is an integer from 1 (Al-Faatiha) to 144 (An-Naas). For example:

Pretty JSON Version

All of the JSON files above are the minified version. Each one of them also has the pretty version with spacing. For example:

Generate the JSON

If you want to generate the JSON by yourself:

1. Clone the Repository

Clone this repository to your local computer:

$ git clone git@github.com:risan/quran-json.git

2. Install the Dependencies

CD into the project directory and install the dependencies:

# Go to the project directory
$ cd quran-json

# Install the dependencies
$ npm install

3. Generate the JSON Files

Run the following command to generate the JSON files:

$ npm run build

Related

License

CC-BY-SA 4.0 · Risan Bagja Pradana

Legal

This repository is in no way affiliated with, authorized, maintained, sponsored or endorsed by Tanzil.net or any of its affiliates or subsidiaries. This is an independent and unofficial library.

By using this Quran text from Tanzil.net you agree to Tanzil's terms of use:

#  - This quran text is distributed under the terms of a
#    Creative Commons Attribution 3.0 License.
#
#  - Permission is granted to copy and distribute verbatim copies
#    of this text, but CHANGING IT IS NOT ALLOWED.
#
#  - This quran text can be used in any website or application,
#    provided its source (Tanzil.net) is clearly indicated, and
#    a link is made to http://tanzil.net to enable users to keep
#    track of changes.
#
#  - This copyright notice shall be included in all verbatim copies
#    of the text, and shall be reproduced appropriately in all files
#    derived from or containing substantial portion of this text.