Skip to main content

Resources API

The Resources API provides metadata about translations, tafsirs, reciters, and other Quranic resources.

Recitations​

Get All Recitations​

const recitations = await client.resources.findAllRecitations();

recitations.forEach((r) => {
console.log(`${r.id}. ${r.reciterName ?? "Unknown"} (${r.style ?? "N/A"})`);
});

RecitationResource Type​

FieldTypeNotes
idnumberUnique identifier for the recitation.
reciterNamestringReciter's full name.
stylestringRecitation style such as murattal.
translatedNameTranslatedNameLocalized display names.

TranslatedName objects include languageName, name, and optional localization metadata from the SDK.

Get Recitation Details​

const info = await client.resources.findRecitationInfo("2");

console.log(info.info); // Rich text/HTML describing the recitation

RecitationInfoResource Type​

FieldTypeNotes
idnumberRecitation identifier.
infostringBiography or extended information about the reciter.

Translations​

Get All Translations​

const translations = await client.resources.findAllTranslations();

const english = translations.filter((t) => t.languageName === "english");
const urdu = translations.filter((t) => t.languageName === "urdu");

TranslationResource Type​

FieldTypeNotes
idnumberTranslation identifier.
namestringTranslation title.
authorNamestringTranslator's name.
slugstringURL-friendly slug.
languageNamestringLanguage of the translation.
translatedNameTranslatedNameLocalized names and language metadata.

Get Translation Details​

const info = await client.resources.findTranslationInfo("131");

console.log(info.info); // Information about the translation (HTML/string)

TranslationInfoResource Type​

FieldTypeNotes
idnumberTranslation identifier.
infostringExtended translation details or biography.

Tafsirs​

Get All Tafsirs​

const tafsirs = await client.resources.findAllTafsirs();

tafsirs.forEach((t) => {
console.log(`${t.name} by ${t.authorName}`);
});

TafsirResource Type​

FieldTypeNotes
idnumberTafsir identifier.
namestringTafsir title.
authorNamestringAuthor of the tafsir.
slugstringURL-friendly identifier.
languageNamestringLanguage of the tafsir.
translatedNameTranslatedNameLocalized name entries.

Get Tafsir Details​

const info = await client.resources.findTafsirInfo("171");

console.log(info.name); // "Tafsir Ibn Kathir"
console.log(info.authorName); // "Ibn Kathir"
console.log(info.bio);

TafsirInfoResource Type​

FieldTypeNotes
idnumberTafsir identifier.
infostringDetailed description or biography.

Languages​

const languages = await client.resources.findAllLanguages();

languages.forEach((lang) => {
console.log(`${lang.name} (${lang.isoCode}) - native: ${lang.nativeName}`);
});

LanguageResource Type​

FieldTypeNotes
idnumberLanguage identifier.
namestringEnglish name of the language.
nativeNamestringNative script name.
isoCodestringISO code (e.g., en).
directionstringText direction such as ltr or rtl.
translatedNamesTranslatedName[]Available localized names.

Chapter Resources​

Chapter Information​

const chapterInfos = await client.resources.findAllChapterInfos();

chapterInfos.forEach((info) => {
console.log(`${info.name} - ${info.languageName}`);
});

ChapterInfoResource Type​

FieldTypeNotes
idnumberResource identifier.
namestringTitle of the chapter info resource.
authorNamestringAuthor attribution.
slugstringURL-friendly identifier.
languageNamestringLanguage of the chapter info.
translatedNameTranslatedNameLocalized names for the resource.

Chapter Reciters​

const reciters = await client.resources.findAllChapterReciters();

reciters.forEach((r) => {
console.log(`${r.name} (${r.arabicName ?? "n/a"})`);
});

ChapterReciterResource Type​

FieldTypeNotes
idnumberReciter identifier.
namestringReciter name.
arabicNamestringArabic display name.
relativePathstringRelative file path for audio.
formatstringAudio format, e.g., mp3.
filesSizenumberTotal file size in kilobytes.

Recitation Styles​

const styles = await client.resources.findAllRecitationStyles();

console.log(styles.murattal); // Murattal reciters
console.log(styles.mujawwad); // Mujawwad reciters

RecitationStylesResource Type​

FieldTypeNotes
mujawwadstringLabel for Mujawwad-style recitations.
murattalstringLabel for Murattal-style recitations.
muallimstringLabel for teaching-style recitations.

Verse Media​

const media = await client.resources.findVerseMedia();

console.log(media.name); // Resource name
console.log(media.languageName); // Language associated with the resource

VerseMediaResource Type​

FieldTypeNotes
idnumberMedia identifier.
namestringMedia name.
authorNamestringAuthor or curator name.
languageNamestringLanguage associated with the resource.