quran / quran.com-api

Quran.com content APIs
https://api-docs.quran.foundation/docs/category/content-apis
MIT License
923 stars 192 forks source link

How to get the chapter with full verse? #291

Closed ngekoding closed 3 years ago

ngekoding commented 3 years ago

Hi, thanks to this great work.

I was read the doc, but can't found how can I get the chapter with full verse (not word by word). How can I do that?

Edit: I use the v4

naveed-ahmad commented 3 years ago

You can use Ayah by chapter but this route has pagination. You can get max 50 records per API call. Use words=false query string if don't need words.

Second options is Verse text endpoint. No pagination there, but you can get a single attribute of each ayah. /v4/quran/verses/uthmani will return Uthmani text( no words )

ngekoding commented 3 years ago

You can use Ayah by chapter but this route has pagination. You can get max 50 records per API call. Use words=false query string if don't need words.

Second options is Verse text endpoint. No pagination there, but you can get a single attribute of each ayah. /v4/quran/verses/uthmani will return Uthmani text( no words )

If I use the second options, can I get the translation also in one API call?

ngekoding commented 3 years ago

Trying to use Ayah by chapter, but can't found how to get next page.

No pagination options