Quran text and translations in JSON format. Both Quran text and the translations are provided by tanzil.net.
Check the json directory to see all available JSON files. The JSON files are also available through UNPKG CDN.
- List of surah: unpkg.com/quran-json@latest/json/surahs.json
- Quran Text: unpkg.com/quran-json@latest/json/quran/text.json
- English translation (Saheeh International): unpkg.com/quran-json@latest/json/translations/en.json
- Indonesian translation (Indonesian Ministry of Religious Affairs): unpkg.com/quran-json@latest/json/translations/id.json
- Quran text with English translation (Saheeh International): unpkg.com/quran-json@latest/json/quran/en.json
- Quran text with Indonesian translation (Indonesian Ministry of Religious Affairs): unpkg.com/quran-json@latest/json/quran/id.json
- Quran text with English and Indonesian translations: unpkg.com/quran-json@latest/json/quran/en-id.json
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:
- Al-Faatiha: unpkg.com/quran-json@latest/json/surahs/1.json
- Ar-Rahmaan: unpkg.com/quran-json@latest/json/surahs/55.json
- Al-Aadiyaat: unpkg.com/quran-json@latest/json/surahs/100.json
All of the JSON files above are the minified version. Each one of them also has the pretty version with spacing. For example:
- List of surah: unpkg.com/quran-json@latest/json/surahs.pretty.json
- Quran Text: unpkg.com/quran-json@latest/json/quran/text.pretty.json
- Quran text with English and Indonesian translations: unpkg.com/quran-json@latest/json/quran/en-id.pretty.json
- Al-Faatiha: unpkg.com/quran-json@latest/json/surahs/1.pretty.json
If you want to generate the JSON by yourself:
Clone this repository to your local computer:
$ git clone [email protected]:risan/quran-json.git
CD
into the project directory and install the dependencies:
# Go to the project directory
$ cd quran-json
# Install the dependencies
$ npm install
Run the following command to generate the JSON files:
$ npm run build
CC-BY-SA 4.0 · Risan Bagja Pradana
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.