بِسْمِ ٱللّٰهِ الرَّحْمٰنِ الرَّحِيْمِ

Al Quran Content Delivery Network (CDN)

Al Quran Cloud provides an open CDN to serve audio files and Quran ayah images to allow you integrate media into your app. The documentation below explains how to access the media. Please note that the CDN is available over both http and https.

Primary CDN - Served by Cloudflare

This CDN will be faster than the secondary CDN, but it may not be available in some countries, like Russia and China. If you do not have access to it, please use the secondary CDN.

Audio files can be accessed via the Cloudflare CDN using the following URL:

http://cdn.alquran.cloud/media/audio/ayah/{edition}/{number}/{quality}
  • {edition} - An audio edition as returned by the API. (Example - ar.alafasy). A list of these editions is available here: http://api.alquran.cloud/edition/format/audio
  • {number} - An ayah number. the Quran contains 6236 ayahs, so this must be a number between 1 and 6236.
  • {quality} - Quality of audio served. Acceptable values are 'high' or 'low'. Do not specify if you want medium quality. Example: http://cdn.alquran.cloud/audio/ayah/ar.alafasy/262 will return a medium quality file for Ayat al Kursi.

Examples:

Secondary CDN

This is the fallback CDN in-case the primary one goes down.

Audio files can be accessed via the following URL:

https://cdn.islamic.network/quran/audio/{bitrate}/{edition}/{number}.mp3

Examples:

Image files can be accessed via the 2 CDNs using the following URLs:

https://cdn.alquran.cloud/media/image/{surah}/{ayah} or https://cdn.islamic.network/quran/images/{surah}_{ayah}.png
  • {surah} - A surah number (from 1 to 114)
  • {ayah} - An ayah number relative to the surah

Examples: