Get Ayah by Number and Edition
Returns an ayah by it's number of number in surah for particular edition, reference here can be the ayah number or the surah:ayah. For instance, 262 or 2:255 will both get you Ayat Al Kursi
Curl
curl -X 'GET' \
'https://api-staging.quranhub.com/v1/ayah/2%3A255/ar.alafasy' \
-H 'accept: application/json'
Request URL:
https://api-staging.quranhub.com/v1/ayah/2%3A255/ar.alafasy
Server response
{
"code": 200,
"status": "OK",
"data": {
"number": 262,
"text": "?????????????? ?????? ?????????????? ???????????? ???????? ???????????????? ?????????????????????? ?? ?????? ???????????????????? ???????????? ?????????? ???????????? ?? ???????? ?????? ?????? ?????????????????????????? ?????????? ?????? ?????????????????? ?? ???????? ?????? ?????????????? ???????????????? ???????????????? ???????????? ???????????????????? ?? ???????????????? ?????? ???????????? ?????????????????????? ?????????? ???????????????????? ?? ?????????? ???????????????????? ???????????????? ???????? ???????????????? ???????????? ?????????? ?????????? ?? ???????????? ?????????????????????? ?????????????????????????? ?????????????????????? ?? ?????????? ?????????????????? ?????????????????????? ?? ???????????? ???????????????????? ????????????????????",
"edition": {
"identifier": "ar.alafasy",
"language": "ar",
"name": "?????????? ??????????????",
"englishName": "Alafasy",
"format": "audio",
"type": "versebyverse",
"direction": null
},
"surah": {
"number": 2,
"name": "???????? ????????????",
"englishName": "Al-Baqara",
"englishNameTranslation": "The Cow",
"revelationType": "Medinan",
"numberOfAyahs": 286
},
"numberInSurah": 255,
"juz": 3,
"manzil": 1,
"page": 42,
"ruku": 35,
"hizbQuarter": 17,
"sajda": false,
"audio": "https://quranhub.b-cdn.net/staging/quran/audio/128/ar.alafasy/262.mp3",
"audioSecondary": [
"https://quranhub.b-cdn.net/staging/quran/audio/64/ar.alafasy/262.mp3"
]
}
}