{ "openapi": "3.0.1", "info": { "title": "Content APIs", "description": "Quran.Foundation Content APIs offer programmatic access to the Quran's core content like chapters, verses, recitations, translations, and more, distinct from user-specific data like notes and bookmarks provided by [User-related APIs](/docs/category/user-related-apis).\n\n ## How to get access \n\n We are using OAuth2 flows to authenticate and authorize requests. To get started, you need to [get an access token](/docs/tutorials/oidc/getting-started-with-oauth2#obtaining-oauth-20-client-credentials) to make requests to our APIs. Since the APIs are not user-related, you will need to use the `client_credentials` grant type and [`content` scope](/docs/user_related_apis_versioned/scopes#content) when sending a request to [The OAuth 2.0 Token Endpoint](/docs/oauth2_apis_versioned/oauth-2-token-exchange) to get the access token. The below diagram shows the flow of getting an access token using the `client_credentials` grant type in a very simplified way.\n\n ![Client Credentials Flow](/img/client-credentials-flow.png) After getting a valid access token, each request to get resources will have to include 2 headers mentioned below: `x-auth-token` and `x-client-id`.", "version": "v4" }, "servers": [ { "url": "https://apis-prelive.quran.foundation/content/api/v4", "description": "Pre-production Server" }, { "url": "https://apis.quran.foundation/content/api/v4", "description": "Production Server" } ], "security": [ { "x-auth-token": [], "x-client-id": [] } ], "paths": { "/chapter_recitations/{id}/{chapter_number}": { "get": { "tags": ["Audio"], "summary": "Get chapter's audio file of a reciter", "description": "Get chapter's audio file of a reciter ", "operationId": "chapter-reciter-audio-file", "parameters": [ { "name": "id", "in": "path", "description": "The Id of the reciter", "required": true, "schema": { "type": "number" } }, { "name": "chapter_number", "in": "path", "description": "The number of the chapter", "required": true, "schema": { "maximum": 114, "minimum": 1, "type": "number" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "audio_file": { "$ref": "#/components/schemas/chapter-recitation" } } }, "example": { "audio_file": { "id": 43, "chapter_id": 22, "file_size": 19779712, "format": "mp3", "total_files": 1, "audio_url": "https://download.quranicaudio.com/quran/abdullaah_3awwaad_al-juhaynee//022.mp3" } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/chapter_recitations/{id}": { "get": { "tags": ["Audio"], "summary": "List of all chapter audio files of a reciter", "description": "Get list of chapters' audio files of a reciter", "operationId": "chapter-reciter-audio-files", "parameters": [ { "name": "id", "in": "path", "description": "The Id of the reciter", "required": true, "schema": { "type": "number" } }, { "name": "language", "in": "query", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/chapter-recitation" } } } }, "example": { "audio_files": [ { "id": 43, "chapter_id": 22, "file_size": 19779712, "format": "mp3", "total_files": 1, "audio_url": "https://download.quranicaudio.com/quran/abdullaah_3awwaad_al-juhaynee//022.mp3" }, { "id": 87, "chapter_id": 44, "file_size": 6453376, "format": "mp3", "total_files": 1, "audio_url": "https://download.quranicaudio.com/quran/abdullaah_3awwaad_al-juhaynee//044.mp3" } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/chapters": { "get": { "tags": ["Chapters"], "summary": "List Chapters", "description": "Get list of #model:aC7ed7aoTAZEKLCGF.", "operationId": "list-chapters", "parameters": [ { "name": "language", "in": "query", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "chapters": { "type": "array", "items": { "type": "object" } } } }, "example": { "chapters": [ { "id": 1, "revelation_place": "makkah", "revelation_order": 5, "bismillah_pre": false, "name_simple": "Al-Fatihah", "name_complex": "Al-Fātiĥah", "name_arabic": "الفاتحة", "verses_count": 7, "pages": [1, 1], "translated_name": { "language_name": "english", "name": "The Opener" } } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/chapters/{id}": { "get": { "tags": ["Chapters"], "summary": "Get Chapter", "description": "Get details of a single #model:aC7ed7aoTAZEKLCGF.", "operationId": "GET-chapter", "parameters": [ { "name": "id", "in": "path", "description": "Chapter ID ( 1-114)", "required": true, "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "language", "in": "query", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "chapter": { "$ref": "#/components/schemas/chapter" } } }, "example": { "chapter": { "id": 1, "revelation_place": "makkah", "revelation_order": 5, "bismillah_pre": false, "name_simple": "Al-Fatihah", "name_complex": "Al-Fātiĥah", "name_arabic": "الفاتحة", "verses_count": 7, "pages": [1, 1], "translated_name": { "language_name": "english", "name": "The Opener" } } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/chapters/{chapter_id}/info": { "get": { "tags": ["Chapters"], "summary": "Get Chapter Info", "description": "Get #model:wc8vsnXdQpa7bpWa4 in specific language. Default to `English`.", "operationId": "info", "parameters": [ { "name": "chapter_id", "in": "path", "description": "Chapter number ( 1-114 )", "required": true, "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "language", "in": "query", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "chapter_info": { "$ref": "#/components/schemas/chapter-info" } } }, "example": { "chapter_info": { "id": 1, "chapter_id": 1, "language_name": "english", "short_text": "This Surah is named Al-Fatihah because of its subject-matter. Fatihah is that which opens a subject or a book or any other thing. In other words, Al-Fatihah is a sort of preface.", "source": "Sayyid Abul Ala Maududi - Tafhim al-Qur'an - The Meaning of the Quran", "text": "

Name

\r\n

This Surah is named Al-Fatihah because of its subject-matter. Fatihah is that which opens a subject or a book or any other thing. In other words, Al-Fatihah is a sort of preface.

\r\n

Period of Revelation

..." } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/by_chapter/{chapter_number}": { "get": { "tags": ["Verses"], "summary": "By Chapter", "description": "Get list of #model:J83wDRc48FrARPHBY(s) by Chapter / Surah number.", "operationId": "verses-by_chapter_number", "parameters": [ { "name": "chapter_number", "in": "path", "description": "Chapter number ( 1 - 114 )", "required": true, "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } }, { "name": "page", "in": "query", "description": "For paginating within the result", "schema": { "type": "integer", "default": 1 } }, { "name": "per_page", "in": "query", "description": "records per api call, you can get maximum 50 records. ", "schema": { "maximum": 50, "minimum": 1, "type": "integer", "default": 10 } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "$ref": "#/components/schemas/verse" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "verses": [ { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } ], "pagination": { "per_page": 1, "current_page": 1, "next_page": 2, "total_pages": 7, "total_records": 7 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/by_page/{page_number}": { "get": { "tags": ["Verses"], "summary": "By Page", "description": "Get all verses of a specific Madani Mushaf page(1 to 604)", "operationId": "verses-by_page_number", "parameters": [ { "name": "page_number", "in": "path", "description": "Madani Mushaf page number. Valid range is 1-604 ", "required": true, "schema": { "maximum": 604, "exclusiveMaximum": false, "minimum": 1, "exclusiveMinimum": true, "type": "integer" } }, { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } }, { "name": "page", "in": "query", "description": "For paginating within the result", "schema": { "type": "integer", "default": 1 } }, { "name": "per_page", "in": "query", "description": "records per api call, you can get maximum 50 records. ", "schema": { "maximum": 50, "minimum": 1, "type": "integer", "default": 10 } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "$ref": "#/components/schemas/verse" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "verses": [ { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } ], "pagination": { "per_page": 1, "current_page": 1, "next_page": 2, "total_pages": 7, "total_records": 7 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/by_juz/{juz_number}": { "get": { "tags": ["Verses"], "summary": "By Juz", "description": "Get all verses from a specific juz(1-30).", "operationId": "verses-by_juz_number", "parameters": [ { "name": "juz_number", "in": "path", "required": true, "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } }, { "name": "page", "in": "query", "description": "For paginating within the result", "schema": { "type": "integer", "default": 1 } }, { "name": "per_page", "in": "query", "description": "records per api call, you can get maximum 50 records. ", "schema": { "maximum": 50, "minimum": 1, "type": "integer", "default": 10 } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "$ref": "#/components/schemas/verse" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "verses": [ { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } ], "pagination": { "per_page": 1, "current_page": 1, "next_page": 2, "total_pages": 7, "total_records": 7 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/by_hizb/{hizb_number}": { "get": { "tags": ["Verses"], "summary": "By Hizb number", "description": "Get all verses from a specific Hizb( half(1-60).", "operationId": "verses-by_hizb_number", "parameters": [ { "name": "hizb_number", "in": "path", "description": "Hizb number(1-60)", "required": true, "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } }, { "name": "page", "in": "query", "description": "For paginating within the result", "schema": { "type": "integer", "default": 1 } }, { "name": "per_page", "in": "query", "description": "records per api call, you can get maximum 50 records. ", "schema": { "maximum": 50, "minimum": 1, "type": "integer", "default": 10 } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "$ref": "#/components/schemas/verse" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "verses": [ { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } ], "pagination": { "per_page": 1, "current_page": 1, "next_page": 2, "total_pages": 7, "total_records": 7 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/by_rub/{rub_el_hizb_number}": { "get": { "tags": ["Verses"], "summary": "By Rub el Hizb number", "description": "Get all verses of a specific Rub el Hizb number(1-240).", "operationId": "verses-by_rub_el_hizb_number", "parameters": [ { "name": "rub_el_hizb_number", "in": "path", "description": "Rub el Hizb number(1-240)", "required": true, "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "$ref": "#/components/schemas/verse" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "verses": [ { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } ], "pagination": { "per_page": 1, "current_page": 1, "next_page": 2, "total_pages": 7, "total_records": 7 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/by_key/{verse_key}": { "get": { "tags": ["Verses"], "summary": "By Specific Verse By Key", "description": "Get a specific ayah with key. Key is combination of surah number and ayah number. 1:1 is first ayah offirst surah for exampke.\n\n10:5 is 5th ayah of 10th surah.", "operationId": "verses-by_verse_key", "parameters": [ { "name": "verse_key", "in": "path", "description": "Verse key ( chapter:verse) ", "required": true, "schema": { "type": "string" } }, { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["verse"], "type": "object", "properties": { "verse": { "$ref": "#/components/schemas/verse" } } }, "example": { "verse": { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/verses/random": { "get": { "tags": ["Verses"], "summary": "Get random ayah", "description": "Get a random verse. You can get random verse from a specific `chapter`,`page`, `juz`, `hizb`, `rub-el-hizb`, `ruku`, `manzil`, or from whole Quran.", "operationId": "random_verse", "parameters": [ { "name": "language", "in": "query", "description": "Language to fetch word translation in specific language.", "schema": { "type": "string", "default": "en" } }, { "name": "words", "in": "query", "description": "Include words of each ayah? \n\n0 or false will not include words.\n\n1 or true will include the words.", "schema": { "type": "string", "default": "true", "enum": ["true", "false"] } }, { "name": "translations", "in": "query", "description": "comma separated ids of translations to load for each ayah.", "schema": { "type": "string" } }, { "name": "audio", "in": "query", "description": "Id of recitation if you want to load audio of each ayah.", "schema": { "type": "integer" } }, { "name": "tafsirs", "in": "query", "description": "Comma separated ids of tafisrs to load for each ayah if you want to load tafisrs.", "schema": { "type": "string" } }, { "name": "word_fields", "in": "query", "description": "Comma separated list of word fields if you want to add more fields for each word. ", "schema": { "type": "string" } }, { "name": "translation_fields", "in": "query", "description": "Comma separated list of translation fields if you want to add more fields for each translation. ", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "description": "comma separated list of ayah fields.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["verse"], "type": "object", "properties": { "verse": { "$ref": "#/components/schemas/verse" } } }, "example": { "verse": { "id": 1, "verse_number": 1, "page_number": 1, "verse_key": "1:1", "juz_number": 1, "hizb_number": 1, "rub_el_hizb_number": 1, "sajdah_type": null, "sajdah_number": null, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "line_number": 2, "page_number": 1, "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ], "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "tafsirs": [ { "id": 82641, "language_name": "english", "name": "Tafsir Ibn Kathir", "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

" } ] } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/juzs": { "get": { "tags": ["Juz"], "summary": "Get All Juzs", "description": "Get list of all #model:XwogxNra8JdvchxBE", "operationId": "juzs", "responses": { "default": { "description": "", "content": { "application/json": { "schema": { "type": "object" } } } } } } }, "/quran/verses/indopak": { "get": { "tags": ["Quran"], "summary": "Get Indopak Script of ayah", "description": "Get Indopak script of ayah. Use query strings to filter results, leave all query string blank if you want to fetch Indopak script of whole Quran.", "operationId": "QURAN-verses-indopak", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get indopak script of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get indopak script of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get indopak script of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get indopak script of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get indopak script of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get indopak script of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "text_indopak": { "type": "string" } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "text_indopak": "بِسۡمِ اللهِ الرَّحۡم]ٰنِ الرَّحِيۡمِ" } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/verses/uthmani_tajweed": { "get": { "tags": ["Quran"], "summary": "Get Uthmani Tajweed Script of ayah", "description": "Get Uthmani color coded tajweed text of ayah. Tajweed rules are embeded in text as `tajweed` html tags.", "operationId": "QURAN-verses-uthmani-tajweed", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get text of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get text of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get text of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get text of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get text of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get text of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "text_uthmani_tajweed": { "type": "string" } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "text_uthmani_tajweed": "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ١" } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/verses/uthmani": { "get": { "tags": ["Quran"], "summary": "Get Uthmani Script of ayah", "description": "Get Uthmani script of ayah. Use query strings to filter results, leave all query string blank if you want to fetch Uthmani script of whole Quran.", "operationId": "QURAN-verses-uthmani", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get Uthmani script of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get Uthmani script of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get Uthmani script of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get Uthmani script of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get Uthmani script of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get Uthmani script of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "text_uthmani": { "type": "string" } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "text_uthmani": "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ" } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/verses/uthmani_simple": { "get": { "tags": ["Quran"], "summary": "Get Uthmani simple script of ayah", "description": "Get Uthmani simple script(without tashkiq/diacritical marks) of ayah. Use query strings to filter results, leave all query string blank if you want to fetch script of whole Quran.", "operationId": "QURAN-verses-uthmani_simple", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get Uthmani script of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get Uthmani script of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get Uthmani script of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get Uthmani script of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get Uthmani script of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get Uthmani script of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "text_uthmani_simple": { "type": "string" } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "text_uthmani_simple": "بسم الله الرحمن الرحيم" } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/verses/imlaei": { "get": { "tags": ["Quran"], "summary": "Get Imlaei Simple text of ayah", "description": "Get Imlaei simple script(without tashkiq/diacritical marks) of ayah.", "operationId": "QURAN-verses-Imlaei", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get text of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get text of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get text of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get text of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get text of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get text of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "text_imlaei": { "type": "string" } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "text_imlaei": "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ" } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/recitations": { "get": { "tags": ["Audio"], "summary": "Recitations", "description": "Get list of available Recitations.", "operationId": "recitations", "parameters": [ { "name": "language", "in": "query", "description": "Name of reciters in specific language. Will fallback to English if we don't have names in specific language.", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/recitation" } }, "example": { "recitations": [ { "id": 1, "reciter_name": "AbdulBaset AbdulSamad", "style": "Mujawwad", "translated_name": { "name": "AbdulBaset AbdulSamad", "language_name": "english" } } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/recitations/{recitation_id}": { "get": { "tags": ["Audio"], "summary": "Get list of Audio files of single recitation", "description": "Get list of #model:knzdXGgyjYnAqbhGX for a single recitation. See #endpoint:HLbauN2sdGitPQPPL endpoint to fetch available recitations.\n\nYou can also include more fields of audio files using `fields` query string.", "operationId": "recitation-autio-files", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation id", "required": true, "schema": { "type": "number" } }, { "name": "fields", "in": "query", "description": "comma seperated field of audio files.", "schema": { "type": "string" } }, { "name": "chapter_number", "in": "query", "description": "If you want to get audio file of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get audio file of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get audio file of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get audio file of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get audio file of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get audio file of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "meta": { "type": "object", "properties": { "reciter_name": { "type": "string" } } } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "Alafasy/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "Alafasy/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "Alafasy/mp3/001003.mp3" }, { "verse_key": "1:4", "url": "Alafasy/mp3/001004.mp3" }, { "verse_key": "1:5", "url": "Alafasy/mp3/001005.mp3" }, { "verse_key": "1:6", "url": "Alafasy/mp3/001006.mp3" }, { "verse_key": "1:7", "url": "Alafasy/mp3/001007.mp3" } ], "meta": { "reciter_name": "Mishari Rashid al-`Afasy", "recitation_style": null } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/translations/{translation_id}": { "get": { "tags": ["Quran"], "summary": "Get a single translation", "description": "Get a single #model:XCinMTfQdCrC3D3vH of all ayah.\n\nSee #endpoint:N4JAF8phDshhyrBHs endpoint to fetch available translations.\n\nYou can also include more fields of translation using `fields` query string.", "operationId": "translation", "parameters": [ { "name": "translation_id", "in": "path", "description": "Recitation id", "required": true, "schema": { "type": "number" } }, { "name": "fields", "in": "query", "description": "comma seperated fields of translation.", "schema": { "type": "string" } }, { "name": "chapter_number", "in": "query", "description": "If you want to get translation of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get translation of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get translation of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get translation of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get translation of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get translation of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["translations"], "type": "object", "properties": { "translations": { "type": "array", "items": { "$ref": "#/components/schemas/translation" } }, "meta": { "type": "object", "properties": { "translation_name": { "type": "string" } } } } }, "example": { "translations": [ { "resource_id": 131, "text": "In the Name of Allah—the Most Compassionate, Most Merciful." } ], "meta": { "translation_name": "Dr. Mustafa Khattab, the Clear Quran", "author_name": "Dr. Mustafa Khattab" } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/chapter_reciters": { "get": { "tags": ["Audio"], "summary": "List of Chapter Reciters", "description": "Get list of #model:Q4runBANeeCjwqfcT.", "operationId": "chapter-reciters", "parameters": [ { "name": "language", "in": "query", "description": "Name of reciters in specific language. Will fallback to English if we don't have names in specific language.", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "reciters": { "type": "array", "items": { "$ref": "#/components/schemas/chapter-reciters" } } } }, "example": { "reciters": [ { "id": 3, "name": "Abu Bakr al-Shatri", "arabic_name": "أبو بكر الشاطرى", "relative_path": "abu_bakr_ash-shaatree/", "format": "mp3", "files_size": 1258422528 }, { "id": 4, "name": "Sa`ud ash-Shuraym", "arabic_name": "سعود الشريم", "relative_path": "sa3ood_al-shuraym/", "format": "mp3", "files_size": 1258422528 }, { "id": 5, "name": "Mishari Rashid al-`Afasy", "arabic_name": "مشاري راشد العفاسي", "relative_path": "mishaari_raashid_al_3afaasee/", "format": "mp3", "files_size": 1258422528 } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/tafsirs/{tafsir_id}": { "get": { "tags": ["Quran"], "summary": "Get a single tafsir", "description": "Get a single #model:D7oy5DF6aGMhfLwDB of all ayah.\n\nSee #endpoint:5YnxJJGPMCLnM6PNE\nendpoint to fetch available tafsirs.\n\nYou can also include more fields of tafsir using `fields` query string.", "operationId": "tafsir", "parameters": [ { "name": "tafsir_id", "in": "path", "description": "tafsir id", "required": true, "schema": { "type": "number" } }, { "name": "fields", "in": "query", "description": "comma seperated fields of tafsir.", "schema": { "type": "string" } }, { "name": "chapter_number", "in": "query", "description": "If you want to get tafsir of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get tafsir of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get tafsir of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get tafsir of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get tafsir of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get tafsir of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["tafsirs"], "type": "object", "properties": { "tafsirs": { "type": "array", "items": { "$ref": "#/components/schemas/tafsir" } }, "meta": { "type": "object", "properties": { "tafsir_name": { "type": "string" } } } } }, "example": { "tafsirs": [ { "resource_id": 169, "text": "

Which was revealed in Makkah

The Meaning of Al-Fatihah and its Various Names

This Surah is called

- Al-Fatihah, that is, the Opener of the Book, the Surah with which prayers are begun." } ], "meta": { "tafsir_name": "Tafsir Ibn Kathir", "author_name": "Hafiz Ibn Kathir" } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/verses/code_v1": { "get": { "tags": ["Quran"], "summary": "Get V1 Glyph codes of ayah", "description": "Get glyph codes of ayah for QCF v1 font", "operationId": "QURAN-verses-code_v1", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get text of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get text of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get text of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get text of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get text of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get text of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "code_v1": { "type": "string", "description": "Glyph codes for v1" }, "v1_page": { "maximum": 604, "minimum": 1, "type": "integer", "description": "Madani Muhsaf page number. You can use `v1_page` to generate css and font faces for QCF page font. " } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "code_v1": "ﭑ ﭒ ﭓ ﭔ ﭕ", "v1_page": 1 } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/quran/verses/code_v2": { "get": { "tags": ["Quran"], "summary": "Get V2 Glyph codes of ayah", "description": "Get glyph codes of ayah for QCF v2 font", "operationId": "QURAN-verses-code_v2", "parameters": [ { "name": "chapter_number", "in": "query", "description": "If you want to get text of a specific surah.", "schema": { "maximum": 114, "minimum": 1, "type": "integer" } }, { "name": "juz_number", "in": "query", "description": "If you want to get text of a specific juz.", "schema": { "maximum": 30, "minimum": 1, "type": "integer" } }, { "name": "page_number", "in": "query", "description": "If you want to get text of a Madani Muhsaf page", "schema": { "maximum": 604, "minimum": 1, "type": "integer" } }, { "name": "hizb_number", "in": "query", "description": "If you want to get text of a specific hizb.", "schema": { "maximum": 60, "minimum": 1, "type": "integer" } }, { "name": "rub_el_hizb_number", "in": "query", "description": "If you want to get text of a specific Rub el Hizb.", "schema": { "maximum": 240, "minimum": 1, "type": "integer" } }, { "name": "verse_key", "in": "query", "description": "If you want to get text of a specific ayah.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "verses": { "type": "array", "items": { "required": ["code_v2", "v2_page"], "type": "object", "properties": { "id": { "type": "integer" }, "verse_key": { "type": "string" }, "code_v2": { "type": "string", "description": "Glyph codes for v2" }, "v2_page": { "maximum": 604, "minimum": 1, "type": "integer", "description": "Madani Muhsaf page number. You can use `v2_page` to generate css and font faces for QCF page font. " } } } } } }, "example": { "verses": [ { "id": 1, "verse_key": "1:1", "code_v2": " ﱂ ﱃ ﱄ ﱅ", "v2_page": 1 } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/recitations/{recitation_id}/by_chapter/{chapter_number}": { "get": { "tags": ["Audio"], "summary": "Get Ayah recitations for specific Surah", "description": "Get list of ayah #model:knzdXGgyjYnAqbhGX for a Surah.", "operationId": "list-surah-recitation", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation Id, you can get list of all ayah by ayah recitations using this endpoint #endpoint:HLbauN2sdGitPQPPL", "required": true, "schema": { "type": "number" } }, { "name": "chapter_number", "in": "path", "required": true, "schema": { "maximum": 114, "minimum": 1, "type": "number" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "AbdulBaset/Mujawwad/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "AbdulBaset/Mujawwad/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "AbdulBaset/Mujawwad/mp3/001003.mp3" } ], "pagination": { "per_page": 10, "current_page": 1, "next_page": 2, "total_pages": 2, "total_records": 20 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/recitations/{recitation_id}/by_juz/{juz_number}": { "get": { "tags": ["Audio"], "summary": "Get Ayah recitations for specific Juz", "description": "Get list of ayah #model:knzdXGgyjYnAqbhGX for a juz.", "operationId": "list-juz-recitaiton", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation Id, you can get list of all ayah by ayah recitations using this endpoint #endpoint:HLbauN2sdGitPQPPL", "required": true, "schema": { "type": "number" } }, { "name": "juz_number", "in": "path", "required": true, "schema": { "maximum": 30, "minimum": 1, "type": "number" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files", "pagination"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "AbdulBaset/Mujawwad/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "AbdulBaset/Mujawwad/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "AbdulBaset/Mujawwad/mp3/001003.mp3" } ], "pagination": { "per_page": 10, "current_page": 1, "next_page": 2, "total_pages": 2, "total_records": 20 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/recitations/{recitation_id}/by_page/{page_number}": { "get": { "tags": ["Audio"], "summary": "Get Ayah recitations for specific Madani Mushaf page", "description": "Get list of ayah #model:knzdXGgyjYnAqbhGX for a Madani Mushaf page.", "operationId": "list-page-recitaiton", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation Id, you can get list of all ayah by ayah recitations using this endpoint #endpoint:HLbauN2sdGitPQPPL", "required": true, "schema": { "type": "number" } }, { "name": "page_number", "in": "path", "required": true, "schema": { "maximum": 604, "minimum": 1, "type": "number" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files", "pagination"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "AbdulBaset/Mujawwad/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "AbdulBaset/Mujawwad/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "AbdulBaset/Mujawwad/mp3/001003.mp3" } ], "pagination": { "per_page": 10, "current_page": 1, "next_page": 2, "total_pages": 15, "total_records": 148 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/recitations/{recitation_id}/by_rub/{rub_el_hizb_number}": { "get": { "tags": ["Audio"], "summary": "Get Ayah recitations for specific Rub el Hizb", "description": "Get list of ayah #model:knzdXGgyjYnAqbhGX for a Rub el Hizb.", "operationId": "list-rub-el-hizb-recitaiton", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation Id, you can get list of all ayah by ayah recitations using this endpoint #endpoint:HLbauN2sdGitPQPPL", "required": true, "schema": { "type": "number" } }, { "name": "rub_el_hizb_number", "in": "path", "required": true, "schema": { "maximum": 240, "minimum": 1, "type": "number" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files", "pagination"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "AbdulBaset/Mujawwad/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "AbdulBaset/Mujawwad/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "AbdulBaset/Mujawwad/mp3/001003.mp3" } ], "pagination": { "per_page": 10, "current_page": 1, "next_page": 2, "total_pages": 15, "total_records": 148 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/recitations/{recitation_id}/by_hizb/{hizb_number}": { "get": { "tags": ["Audio"], "summary": "Get Ayah recitations for specific Hizb", "description": "Get list of ayah #model:knzdXGgyjYnAqbhGX for a Hizb.", "operationId": "list-hizb-recitaiton", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation Id, you can get list of all ayah by ayah recitations using this endpoint #endpoint:HLbauN2sdGitPQPPL", "required": true, "schema": { "type": "number" } }, { "name": "hizb_number", "in": "path", "required": true, "schema": { "maximum": 60, "minimum": 1, "type": "number" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files", "pagination"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "AbdulBaset/Mujawwad/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "AbdulBaset/Mujawwad/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "AbdulBaset/Mujawwad/mp3/001003.mp3" } ], "pagination": { "per_page": 10, "current_page": 1, "next_page": 2, "total_pages": 15, "total_records": 148 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/recitations/{recitation_id}/by_ayah/{ayah_key}": { "get": { "tags": ["Audio"], "summary": "Get Ayah recitations for specific Ayah", "description": "Get list of ayah #model:knzdXGgyjYnAqbhGX for a Hizb.", "operationId": "list-ayah-recitaiton", "parameters": [ { "name": "recitation_id", "in": "path", "description": "Recitation Id, you can get list of all ayah by ayah recitations using this endpoint #endpoint:HLbauN2sdGitPQPPL", "required": true, "schema": { "type": "number" } }, { "name": "ayah_key", "in": "path", "description": "Ayah key is combination of surah number and ayah number. e.g 1:1 will be first Ayah of first Surah", "required": true, "schema": { "maximum": 60, "minimum": 1, "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "required": ["audio_files", "pagination"], "type": "object", "properties": { "audio_files": { "type": "array", "items": { "$ref": "#/components/schemas/audiofile" } }, "pagination": { "$ref": "#/components/schemas/pagination" } } }, "example": { "audio_files": [ { "verse_key": "1:1", "url": "AbdulBaset/Mujawwad/mp3/001001.mp3" }, { "verse_key": "1:2", "url": "AbdulBaset/Mujawwad/mp3/001002.mp3" }, { "verse_key": "1:3", "url": "AbdulBaset/Mujawwad/mp3/001003.mp3" } ], "pagination": { "per_page": 10, "current_page": 1, "next_page": 2, "total_pages": 15, "total_records": 148 } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/recitations/{recitation_id}/info": { "get": { "tags": ["Resources"], "summary": "Recitation Info", "description": "Get information of a specific recitation. Could include detail about the reciter, recitation style. When and who recorded it etc.", "operationId": "recitation-info", "parameters": [ { "name": "recitation_id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "info": { "type": "object", "properties": { "id": { "type": "integer" } } } } }, "example": { "info": { "id": 1, "info": null } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/translations/{translation_id}/info": { "get": { "tags": ["Resources"], "summary": "Translation Info", "description": "Get information of a specific translation. Could include detail about the author, publishing date and publisher etc.", "operationId": "translation-info", "parameters": [ { "name": "translation_id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "info": { "type": "object", "properties": { "id": { "type": "integer" } } } } }, "example": { "info": { "id": 1, "info": null } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/translations": { "get": { "tags": ["Resources"], "summary": "Translations", "description": "Get list of available translations. Use `language` query to get translated names of authors in specific language(e.g language=ur will send translation names in Urdu). \n\nFor list of available language see #endpoint:EZsWyDnekGaDKaCpt endpoint.", "operationId": "translations", "parameters": [ { "name": "language", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "translations": { "type": "array", "items": { "$ref": "#/components/schemas/resource" } } } }, "example": { "translations": [ { "id": 131, "name": "Dr. Mustafa Khattab, the Clear Quran", "author_name": "Dr. Mustafa Khattab", "slug": "clearquran-with-tafsir", "language_name": "english", "translated_name": { "name": "Dr. Mustafa Khattab", "language_name": "english" } } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/tafsirs": { "get": { "tags": ["Resources"], "summary": "Tafsirs", "description": "Get list of available tafsirs.", "operationId": "tafsirs", "parameters": [ { "name": "language", "in": "query", "schema": { "type": "string", "default": "en" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "tafsirs": { "type": "array", "items": { "$ref": "#/components/schemas/resource" } } } }, "example": { "tafsirs": [ { "id": 169, "name": "Tafsir Ibn Kathir", "author_name": "Hafiz Ibn Kathir", "slug": "en-tafisr-ibn-kathir", "language_name": "english", "translated_name": { "name": "Tafsir Ibn Kathir", "language_name": "english" } } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/tafsirs/{tafsir_id}/info": { "get": { "tags": ["Resources"], "summary": "Tafsir Info", "description": "Get the information of a specific tafsir. Could include information about the author, when it was published etc.", "operationId": "tafsir-info", "parameters": [ { "name": "tafsir_id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "number" } } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/recitation_styles": { "get": { "tags": ["Resources"], "summary": "Recitation Styles", "description": "Get the available recitation styles.", "operationId": "recitation-styles", "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "mujawwad": { "type": "string" }, "murattal": { "type": "string" }, "muallim": { "type": "string" } } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/languages": { "get": { "tags": ["Resources"], "summary": "Languages", "description": "Get all languages. You can get translated names of languages in specific language using `language` query parameter. For example \n\n ```\n /resources/languages?language=ur\n ```\n \nwill return language names translated into Urdu", "operationId": "languages", "parameters": [ { "name": "language", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/language" } }, "example": [ { "id": -71611860, "iso_code": "amet" } ] } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/chapter_infos": { "get": { "tags": ["Resources"], "summary": "Chapter Infos", "description": "Get list of chaper info we've in different languages.", "operationId": "chapter-info", "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "chapter_infos": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "author_name": { "type": "string" }, "language_name": { "type": "string" }, "translated_name": { "type": "object", "properties": { "name": { "type": "string" }, "language_name": { "type": "string" } } } } } } } }, "example": { "chapter_infos": [ { "id": 155, "name": "Hamza Roberto Piccardo", "author_name": "Hamza Roberto Piccardo", "slug": "hamza-roberto-piccardo-info", "language_name": "italian", "translated_name": { "name": "Hamza Roberto Piccardo", "language_name": "english" } }, { "id": 63, "name": "Chapter Info", "author_name": "Sayyid Abul Ala Maududi", "slug": null, "language_name": "malayalam", "translated_name": { "name": "Chapter Info", "language_name": "english" } }, { "id": 62, "name": "Chapter Info", "author_name": "Sayyid Abul Ala Maududi", "slug": null, "language_name": "tamil", "translated_name": { "name": "Chapter Info", "language_name": "english" } }, { "id": 61, "name": "Chapter Info", "author_name": "Sayyid Abul Ala Maududi", "slug": null, "language_name": "urdu", "translated_name": { "name": "Chapter Info", "language_name": "english" } } ] } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/resources/verse_media": { "get": { "tags": ["Resources"], "summary": "Verse Media", "description": "Get media related to the verse.", "operationId": "verse-media", "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "author_name": { "type": "string" }, "language_name": { "type": "string" } } } } } }, "400": { "$ref": "#/components/responses/invalidRequest" }, "401": { "$ref": "#/components/responses/unauthorized" }, "403": { "$ref": "#/components/responses/forbidden" }, "404": { "$ref": "#/components/responses/notFound" }, "422": { "$ref": "#/components/responses/unprocessableEntity" }, "500": { "$ref": "#/components/responses/internalServerError" }, "502": { "$ref": "#/components/responses/badGateway" }, "503": { "$ref": "#/components/responses/serviceUnavailable" }, "504": { "$ref": "#/components/responses/gatewayTimeout" }, "429": { "$ref": "#/components/responses/rateLimitExceeded" } } } }, "/search": { "get": { "tags": ["Search"], "operationId": "search", "parameters": [ { "name": "q", "in": "query", "description": "Search query, you can use *query* as well", "schema": { "type": "string" } }, { "name": "size", "in": "query", "description": "Results per page. *s* is also valid parameter.", "schema": { "type": "number", "default": 20 } }, { "name": "page", "in": "query", "description": "Page number, well for pagination. You can use *p* as well", "schema": { "type": "number", "default": 0 } }, { "name": "language", "in": "query", "description": "ISO code of language, use this query params if you want to boost translations for specific language. \nFor list of available language see #endpoint:8rjMCZEyPEZMHAKz9 endpoint.", "schema": { "type": "string", "default": "en" } } ], "responses": { "default": { "description": "", "content": { "application/json": { "schema": { "type": "object" } } } } } } } }, "components": { "schemas": { "audiofile": { "title": "AudioFile", "type": "object", "properties": { "url": { "type": "string" }, "duration": { "type": "number" }, "format": { "type": "string" }, "segments": { "type": "array", "items": { "type": "object" } } }, "example": { "url": "https://verses.quran.foundation/AbdulBaset/Mujawwad/mp3/001001.mp3", "duration": 6, "format": "mp3", "segments": [ [ [0, 120, -1], [120, 420, 0], [540, 810, 1], [1350, 1006, 2], [2356, 2454, 3], [4810, 390, -1] ] ] } }, "author": { "title": "Author", "type": "object", "properties": { "name": { "type": "string" }, "id": { "type": "number" } }, "example": { "name": "Dr. Ghali" } }, "chapter-info": { "title": "Chapter Info", "required": ["chapter_id", "short_text", "source", "text"], "type": "object", "properties": { "chapter_id": { "type": "number" }, "text": { "type": "string", "description": "Long text of chapter info, this could include html tags for formatting and styling." }, "short_text": { "type": "string" }, "language_name": { "type": "string" }, "source": { "type": "string", "description": "Name of the source, could be a book name or site name." } }, "example": { "chapter_id": 1, "text": "

Name

\n

This Surah is named Al-Fatihah because of its subject-matter. Fatihah is that which opens a subject or a book or any other thing. In other words, Al-Fatihah is a sort of preface.

...", "short_text": "This Surah is named Al-Fatihah because of its subject-matter. Fatihah is that which opens a subject or a book or any other thing. In other words, Al-Fatihah is a sort of preface.", "language_name": "English", "source": "Sayyid Abul Ala Maududi - Tafhim al-Qur'an - The Meaning of the Quran" } }, "language": { "title": "Language", "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "native_name": { "type": "string" }, "iso_code": { "type": "string", "description": "iso code of the language, you'll pass this code in api calls for fetching content in specific language." }, "direction": { "type": "string" }, "translated_names": { "type": "array", "items": { "$ref": "#/components/schemas/translated-name" } } }, "example": { "id": 1, "name": "English", "native_name": "English", "iso_code": "en", "direction": "ltr", "translated_names": [ { "name": "انگریزی", "language_name": "Urdu" } ] } }, "media-content": { "title": "MediaContent", "type": "object", "properties": { "url": { "type": "string" }, "embed_text": { "type": "string" }, "provider": { "type": "string" }, "author_name": { "type": "string" } }, "example": { "url": "https://www.youtube.com/embed/JyLuLv2hrAo?autoplay=1", "embed_text": "", "provider": "YouTube", "author_name": "Bayyinah" } }, "recitation": { "title": "Recitation", "type": "object", "properties": { "id": { "type": "integer" }, "reciter_name": { "type": "string" }, "style": { "type": "string" }, "translated_name": { "type": "object", "properties": { "name": { "type": "string" }, "language_name": { "type": "string" } } } }, "example": { "id": 1, "reciter_name": "AbdulBaset AbdulSamad", "style": "Mujawwad", "translated_name": { "name": "AbdulBaset AbdulSamad", "language_name": "english" } } }, "tafsir": { "title": "Tafsir", "type": "object", "properties": { "id": { "type": "integer" }, "verse_id": { "type": "integer" }, "language_id": { "type": "integer" }, "text": { "type": "string" }, "language_name": { "type": "string" }, "resource_name": { "type": "string" }, "verse_key": { "type": "string" }, "chapter_id": { "type": "integer" }, "verse_number": { "type": "integer" }, "juz_number": { "type": "integer" }, "hizb_number": { "type": "integer" }, "rub_el_hizb_number": { "type": "integer" }, "page_number": { "type": "integer" } }, "example": { "verse_id": 1, "language_id": 38, "text": "

Bismillah بِسْمِ اللَّـهِ is a verse of the Holy Qur'an

", "language_name": "english", "resource_name": "Maarif-ul-Quran", "verse_key": "1:1", "chapter_id": 1, "verse_number": 1, "juz_number": 1, "hizb_number": 1, "rub_number": 1, "page_number": 1 } }, "translated-name": { "title": "TranslatedName", "required": ["language_name", "name"], "type": "object", "properties": { "language_name": { "type": "string", "default": "english" }, "name": { "type": "string", "description": "Name of the resource in specific language." } }, "example": { "language_name": "english", "name": "The Opener" } }, "translation": { "title": "Translation", "required": ["resource_id", "text"], "type": "object", "properties": { "resource_id": { "type": "integer" }, "resource_name": { "type": "string" }, "id": { "type": "integer" }, "text": { "type": "string", "description": "Text of the translation, text could have HTML tags for formatting and footnotes. " }, "verse_id": { "type": "integer" }, "language_id": { "type": "integer" }, "language_name": { "type": "string" }, "verse_key": { "type": "string" }, "chapter_id": { "type": "integer" }, "verse_number": { "type": "integer" }, "juz_number": { "type": "integer" }, "hizb_number": { "type": "integer" }, "rub_number": { "type": "integer" }, "page_number": { "type": "integer" } }, "example": { "resource_id": 131, "resource_name": "Dr. Mustafa Khattab, the Clear Quran", "id": 903958, "text": "In the Name of Allah—the Most Compassionate, Most Merciful.", "verse_id": 1, "language_id": 38, "language_name": "english", "verse_key": "1:1", "chapter_id": 1, "verse_number": 1, "juz_number": 1, "hizb_number": 1, "rub_number": 1, "page_number": 1 } }, "transliteration": { "title": "Transliteration", "type": "object", "properties": { "language_name": { "type": "string" }, "text": { "type": "string" } } }, "verse": { "title": "Verse", "required": [ "hizb_number", "id", "juz_number", "page_number", "rub_number", "verse_key", "verse_number" ], "type": "object", "properties": { "id": { "type": "integer" }, "chapter_id": { "type": "integer", "description": "Chapter number of this verse" }, "verse_number": { "type": "integer" }, "verse_key": { "type": "string", "description": "key of the verse, key is generated using chapter number and ayah number. e.g 1:1 is first ayah of first surah." }, "verse_index": { "type": "integer" }, "text_uthmani": { "type": "string", "description": "Ayah text in Uthmani Script.\n\nUthmani script is an old-fashion script used by the third Caliph, Uthman, to produce the first standard quran manuscript." }, "text_uthmani_simple": { "type": "string", "description": "Uthmani script diacritic marks " }, "text_imlaei": { "type": "string", "description": "Ayah text in Imla'ei script.\n\nImla'ei script, is the modern Arabic writing style which is currently in use." }, "text_imlaei_simple": { "type": "string" }, "text_indopak": { "type": "string" }, "text_uthmani_tajweed": { "type": "string" }, "juz_number": { "type": "integer" }, "hizb_number": { "type": "integer" }, "rub_number": { "type": "integer" }, "page_number": { "maximum": 604, "minimum": 1, "type": "integer", "description": "page_number is deperacted, please use `v1_page` instead." }, "image_url": { "type": "string" }, "image_width": { "type": "integer" }, "words": { "type": "array", "items": { "$ref": "#/components/schemas/word" } }, "audio": { "$ref": "#/components/schemas/audiofile" }, "translations": { "type": "array", "items": { "$ref": "#/components/schemas/translation" } }, "code_v1": { "type": "string", "description": "Glyphs codes for QCF v1 fonts" }, "code_v2": { "type": "string", "description": "Glyphs codes for QCF v2 fonts" }, "v1_page": { "maximum": 604, "minimum": 1, "type": "integer", "description": "Madani Muhsaf Page number for v1 font. If `v1_page` value is 2, that means you'll use page 2 font file to render this ayah using v1 glyph codes." }, "v2_page": { "maximum": 604, "minimum": 1, "type": "integer", "description": "Madani Muhsaf Page number for v2 font. If `v2_page` value is 2, that means you'll use page 2 font file to render this ayah using v2 glyph codes." } }, "example": { "id": 1, "chapter_id": 1, "verse_number": 1, "verse_key": "1:1", "verse_index": 1, "text_uthmani": "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ", "text_uthmani_simple": "بسم الله الرحمن الرحيم", "text_imlaei": "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ", "text_imlaei_simple": "بسم الله الرحمن الرحيم", "text_indopak": "بِسۡمِ اللهِ الرَّحۡمٰنِ الرَّحِيۡمِ", "text_uthmani_tajweed": "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ١", "juz_number": 1, "hizb_number": 1, "rub_number": 1, "page_number": 1, "image_url": "//c22506.r6.cf1.rackcdn.com/1_1.png", "image_width": 675, "words": [ { "id": 1, "position": 1, "audio_url": "wbw/001_001_001.mp3", "char_type_name": "word", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } ] } }, "word": { "title": "Word", "required": [ "audio_url", "char_type_name", "position", "translation", "transliteration" ], "type": "object", "properties": { "id": { "type": "integer" }, "position": { "type": "integer", "description": "Word position within ayah" }, "text_uthmani": { "type": "string", "description": "Word text in Uthmanic script" }, "text_indopak": { "type": "string" }, "text_imlaei": { "type": "string", "description": "Word text in simple/Imlaei script" }, "verse_key": { "type": "string" }, "page_number": { "maximum": 604, "minimum": 1, "type": "integer", "description": "page_number is deperacted, please use `v1_page` instead." }, "line_number": { "type": "integer", "description": "Line number in the Muhsaf for this word" }, "audio_url": { "type": "string" }, "location": { "type": "string" }, "char_type_name": { "type": "string" }, "code_v1": { "type": "string", "description": "glyph code that you can use to render the word using QCF v1 font." }, "code_v2": { "type": "string", "description": "glyph code that you can use to render the word using QCF v2 font." }, "translation": { "type": "object", "properties": { "text": { "type": "string" }, "language_name": { "type": "string" } } }, "transliteration": { "type": "object", "properties": { "text": { "type": "string" }, "language_name": { "type": "string" } } }, "v1_page": { "maximum": 604, "minimum": 1, "type": "integer", "description": "Madani Muhsaf Page number for v1 font. If `v1_page` value is 2, that means you'll use page 2 font file to render this word using v1 glyph codes." }, "v2_page": { "maximum": 604, "minimum": 1, "type": "integer", "description": "Madani Muhsaf Page number for v2 font. If `v2_page` value is 2, that means you'll use page 2 font file to render this ayah using v2 glyph codes." } }, "example": { "id": 1, "position": 1, "text_uthmani": "بِسْمِ", "text_indopak": "بِسۡمِ", "text_imlaei": "بِسْمِ", "verse_key": "1:1", "page_number": 1, "line_number": 2, "audio_url": "wbw/001_001_001.mp3", "location": "1:1:1", "char_type_name": "word", "code_v1": "ﭑ", "translation": { "text": "In (the) name", "language_name": "english" }, "transliteration": { "text": "bis'mi", "language_name": "english" } } }, "chapter": { "title": "Chapter", "required": ["translated_name"], "type": "object", "properties": { "id": { "type": "integer" }, "revelation_place": { "type": "string" }, "revelation_order": { "type": "integer" }, "bismillah_pre": { "type": "boolean" }, "name_complex": { "type": "string" }, "name_arabic": { "type": "string" }, "verses_count": { "type": "integer" }, "pages": { "type": "array", "items": { "type": "integer" } }, "translated_name": { "$ref": "#/components/schemas/translated-name" } }, "example": { "id": 1, "revelation_place": "makkah", "revelation_order": 5, "bismillah_pre": false, "name_complex": "Al-Fātiĥah", "name_arabic": "الفاتحة", "verses_count": 7, "pages": [1, 1], "translated_name": { "language_name": "english", "name": "The Opener" } } }, "resource": { "title": "Resource", "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "author_name": { "type": "string" }, "slug": { "type": "string" }, "language_name": { "type": "string" }, "translated_name": { "type": "object", "properties": { "name": { "type": "string" }, "language_name": { "type": "string" } } } }, "example": { "id": 169, "name": "Tafsir Ibn Kathir", "author_name": "Hafiz Ibn Kathir", "slug": "en-tafisr-ibn-kathir", "language_name": "english", "translated_name": { "name": "Tafsir Ibn Kathir", "language_name": "english" } } }, "pagination": { "title": "Pagination", "type": "object", "properties": { "per_page": { "type": "integer", "description": "Entries per api call" }, "current_page": { "type": "integer", "description": "" }, "next_page": { "type": "integer", "description": "Next page in paginated result" }, "total_pages=": { "type": "integer", "description": "Total number of pages" }, "total_records=": { "type": "integer" } }, "example": { "per_page": 1, "current_page": 1, "next_page": 2, "total_pages=": 7, "total_records=": 7 } }, "juz": { "title": "Juz", "required": ["verse_mapping"], "type": "object", "properties": { "id": { "type": "integer" }, "juz_number": { "maximum": 30, "minimum": 1, "type": "integer", "description": "" }, "first_verse_id": { "type": "integer", "description": "Id of the first ayah in this juz." }, "last_verse_id": { "type": "integer", "description": "Id of the last ayah in this juz." }, "verses_count": { "type": "integer", "description": "total verses in this juz" }, "verse_mapping": { "type": "object", "properties": { "1": { "type": "string" }, "2": { "type": "string" } }, "description": "Mapping of surah and range of ayah each juz has. \n\nverse_mapping: {\"1: \"1-7\", \"2\": \"1-141\"}\n\nmeans this juz has 1-7 ayah of first surah, then 1-141 ayah of second surah." } }, "example": { "juz_number": 1, "first_verse_id": 1, "last_verse_id": 148, "verses_count": 148, "verse_mapping": { "1": "1-7", "2": "1-141" } } }, "chapter-recitation": { "title": "Chapter Recitation", "type": "object", "properties": { "id": { "type": "integer", "description": "The Id of the audio file" }, "chapter_id": { "type": "integer", "description": "The chapter id" }, "file_size": { "type": "integer", "description": "The file size in bytes" }, "format": { "type": "string", "description": "The format of the file" }, "total_files": { "type": "integer", "description": "The total number of files" }, "audio_url": { "type": "string", "description": "The audio file's url" } }, "example": { "id": 1, "chapter_id": 1, "file_size": 710784, "format": "mp3", "total_files": 1, "audio_url": "https://download.quranicaudio.com/quran/abdullaah_3awwaad_al-juhaynee//001.mp3" } }, "chapter-reciters": { "title": "Chapter Reciters", "required": ["id", "name"], "type": "object", "properties": { "id": { "type": "integer", "description": "Reciter ID" }, "name": { "type": "string", "description": "Name of reciter in English" }, "arabic_name": { "type": "string", "description": "Reciter name in Arabic " }, "relative_path": { "type": "string" }, "format": { "type": "string", "description": "Audio files format", "default": "mp3" }, "files_size": { "type": "number", "description": "Total size of all audio files in KBs" } }, "example": { "id": 3, "name": "Abu Bakr al-Shatri", "arabic_name": "أبو بكر الشاطرى", "relative_path": "abu_bakr_ash-shaatree/", "format": "mp3", "files_size": 1258422528 } }, "commonErrorResponse": { "type": "object", "properties": { "message": { "type": "string" }, "type": { "type": "string", "enum": [ "gateway_timeout", "service_unavailable", "bad_gateway", "internal_server_error", "unprocessable_entity", "not_found", "forbidden", "unauthorized", "invalid_request", "invalid_token", "insufficient_scope", "service_error", "invalid_path", "rate_limit_exceeded" ] }, "success": { "type": "boolean" } } }, "invalidRequestResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "unauthorizedResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "forbiddenResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "notFoundResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "unprocessableEntityResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "internalServerErrorResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "badGatewayResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "serviceUnavailableResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "gatewayTimeoutResponse": { "$ref": "#/components/schemas/commonErrorResponse" }, "rateLimitExceededResponse": { "$ref": "#/components/schemas/commonErrorResponse" } }, "securitySchemes": { "x-auth-token": { "type": "apiKey", "description": "The JWT access token required for accessing the endpoints.", "name": "x-auth-token", "in": "header" }, "x-client-id": { "type": "apiKey", "description": "Your client Id", "name": "x-client-id", "in": "header" } }, "responses": { "invalidRequest": { "description": "Will be returned when the request is invalid e.g. request is missing required headers or with invalid query parameters.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/invalidRequestResponse" }, "example": { "message": "The request is missing required headers or is invalid", "type": "invalid_request", "success": false } } } }, "unauthorized": { "description": "Will be returned when the request is unauthorized.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unauthorizedResponse" }, "example": { "message": "The request requires user authentication", "type": "unauthorized", "success": false } } } }, "forbidden": { "description": "Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/forbiddenResponse" }, "example": { "message": "The server understood the request, but refuses to authorize it", "type": "forbidden", "success": false } } } }, "notFound": { "description": "Not Found. The resource being accessed does not exist.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/notFoundResponse" }, "example": { "message": "The requested resource could not be found", "type": "not_found", "success": false } } } }, "unprocessableEntity": { "description": "Validation Error. The request includes one or more invalid params. Please check the request params and try again.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/unprocessableEntityResponse" }, "example": { "message": "The request was well-formed but was unable to be followed due to semantic errors", "type": "unprocessable_entity", "success": false } } } }, "internalServerError": { "description": "Server Error. Something went wrong, try again later.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/internalServerErrorResponse" }, "example": { "message": "The server encountered an internal error and was unable to complete your request", "type": "internal_server_error", "success": false } } } }, "badGateway": { "description": "Bad Gateway", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/badGatewayResponse" }, "example": { "message": "The server was acting as a gateway or proxy and received an invalid response from the upstream server", "type": "bad_gateway", "success": false } } } }, "serviceUnavailable": { "description": "Service Unavailable", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/serviceUnavailableResponse" }, "example": { "message": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance", "type": "service_unavailable", "success": false } } } }, "gatewayTimeout": { "description": "Gateway Timeout", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/gatewayTimeoutResponse" }, "example": { "message": "The server was acting as a gateway or proxy and did not receive a timely response from the upstream server", "type": "gateway_timeout", "success": false } } } }, "rateLimitExceeded": { "description": "Rate-limit exceeded", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/rateLimitExceededResponse" }, "example": { "message": "Too many requests, please try again later", "type": "rate_limit_exceeded", "success": false } } } } } }, "x-stoplight": { "id": "xmulprojamrcd" }, "x-original-swagger-version": "2.0" }