quran.com-api icon indicating copy to clipboard operation
quran.com-api copied to clipboard

Get range of verses recitations

Open AhmedBaset opened this issue 2 years ago • 3 comments

Is there any APIs that provide me range of verses recitation from specific ayah to specific ayah for example: Al-bakarah chapter from verse 5 to verse 10. and response a url for recitation audio file.

AhmedBaset avatar Mar 31 '23 02:03 AhmedBaset

@A7med3bdulBaset : I dont think that's possible, what you can do is make an API call for the number of ayas you are interested in, for example if you are interested in Chapter 114 ayat 1:3, then you can do the following requests:

https://api.quran.com/api/v4/recitations/2/by_ayah/114:1
https://api.quran.com/api/v4/recitations/2/by_ayah/114:2
https://api.quran.com/api/v4/recitations/2/by_ayah/114:3

acenoor avatar May 16 '23 17:05 acenoor

This telegram bot implements it. It is possible by merging two or more audio files into one file. I hope quran-api team implement it.

AhmedBaset avatar May 16 '23 17:05 AhmedBaset

i agree, would be a great add on, ill add a bug ticket iA for this implementation.

acenoor avatar May 16 '23 17:05 acenoor