findByChapter

Get all ayahs for a specific chapter.

Params:

verses.findByChapter(id: ChapterId, options?: GetVerseOptions)

ParamType
idChapterId (minimum 1, maximum 114)
optionsGetVerseOptions

Example:

quran.v4.verses.findByChapter('1')
quran.v4.verses.findByChapter('114')

findByJuz

Get all ayahs for a Juz.

Params:

verses.findByJuz(juz: JuzNumber, options?: GetVerseOptions)

ParamType
juzJuzNumber (minimum 1, maximum 30)
optionsGetVerseOptions

Example:

quran.v4.verses.findByJuz('1')
quran.v4.verses.findByJuz('30')

findByKey

Get a specific ayah with key. Key is combination of surah number and ayah number.

Params:

verses.findByKey(key: VerseKey, options?: GetVerseOptions)

ParamTypeDescription
keyVerseKeysurah number and ayah number separated by a colon.
optionsGetVerseOptions

Example:

quran.v4.verses.findByKey('1:1')
quran.v4.verses.findByKey('101:5')

findByPage

Get all ayahs for a specific page in the Quran.

Params:

verses.findByKey(page: PageNumber, options?: GetVerseOptions)

ParamTypeDescription
pagePageNumberQuran page number
optionsGetVerseOptions

Example:

quran.v4.verses.findByPage('1')
quran.v4.verses.findByPage('101')

findRandom

Get a random ayah.

Params:

verses.findRandom(options?: GetVerseOptions)

ParamType
optionsGetVerseOptions

Example:

quran.v4.verses.findRandom()