Skip to content

Books

The library: more than 300 books, each with one or more Arabic editions, translations into up to 64 languages, and PDF and Word copies.

GET/books
Parameter
lang optional Adds translated_title and translated_description for books translated into this language.

Every book that is published, with its versions and the languages of each. About 800 KB; cache it.

Terminal window
curl "https://islamenc.com/api/books?lang=en"
[
{
"project_id": 36,
"title": "الأصول الثلاثة وأدلتها",
"name": "الأصول الثلاثة وأدلتها",
"description": "...",
"is_hidden": false,
"versions": [
{
"id": 3702,
"version_number": "2.00",
"version_name": "2.0",
"is_latest": true,
"translations": [
{ "id": 17308, "language": { "isoCode": "fr", "englishName": "French", "nativeName": "Français", "direction": "ltr" }, "version_number": 1, "source": "molhem" }
]
}
],
"available_languages": ["ar", "en", "fr", "..."],
"language_count": 64,
"translated_title": "The Three Fundamental Principles",
"translated_description": "..."
}
]

available_languages and language_count cover the latest version. source names where a translation came from (molhem, islamhouse…).

GET/books/{projectId}

The book’s record with its versions and translations (as above) plus every printable copy:

{
"project_id": 36,
"title": "الأصول الثلاثة وأدلتها",
"versions": [ ... ],
"pdfs": [
{ "id": 383, "project_id": 36, "lang": "af", "version_name": "2.0", "source": "molhem", "url": "https://islamenc-files.hel1.your-objectstorage.com/pdf/36/af-2.0.pdf", "bytes": 412433, "updated_at": "2026-10-02T09:11:40.000Z" }
],
"docxs": [
{ "id": 120, "project_id": 36, "lang": "af", "version_name": "2.0", "url": "https://islamenc-files.hel1.your-objectstorage.com/docx/36/af-2.0.docx", "bytes": 98311, "updated_at": "2026-10-12T02:30:11.000Z" }
]
}

The urls are public and direct; link to them or download them. A withdrawn book answers with an empty body.

GET/books/{projectId}/versions/{versionName}

The Arabic text of one edition, as chapters of phrases, in reading order. versionName is the version_name from the catalogue (2.0).

Terminal window
curl "https://islamenc.com/api/books/36/versions/2.0"
[
{
"id": 7283,
"serial": 1,
"name": "الأصول الثلاثة وأدلتها",
"phrases": [
{
"phrase_id": "21fd289f-c28c-458b-bae3-d8f5741da543",
"group_id": 360,
"group_order": 10,
"arabic_text": "(اعلم) رحمك الله أنه يجب على كل مسلم ومسلمة تعلم هذه الثلاث مسائل والعمل بهن.",
"text_type": "p",
"content_type_id": 4,
"tag": "p",
"hadith_card_id": null,
"hadith_match_score": null,
"hadith_link_source": null,
"links": []
}
]
}
]
Field
group_id, group_order A group is a paragraph; group_order orders the sentences in it. Join a group’s phrases to rebuild the paragraph.
tag The HTML-like role of the phrase: p, h1…h4, li, blockquote. text_type is the same in the source’s own vocabulary.
content_type_id The kind of text: 1 title, 4 body, and the footnote and heading kinds.
hadith_card_id When the phrase quotes a hadith that the hadith encyclopedia has, the card’s external_id, with the match score and how it was found.
links Cross-references the site found in this phrase, for its own pages; empty for most phrases.
GET/books/{projectId}/translations/{isoCode}

The book in one language, phrase by phrase, each paired with its Arabic source. isoCode is a language from GET /books/{projectId}/languages.

Terminal window
curl "https://islamenc.com/api/books/36/translations/fr"
[
{
"id": 17308,
"arabicVersion": { "id": 3702, "version_number": "2.00", "version_name": "2.0", "is_latest": true },
"language": { "isoCode": "fr", "englishName": "French", "nativeName": "Français", "direction": "ltr" },
"version_number": 1,
"source": "molhem",
"phrases": [
{
"id": 7033944,
"phrase": {
"phrase_id": "fee0fb72-8ccb-4aac-80bb-cc7e872d9ea1",
"chapter": { "id": 7285, "serial": 2, "name": "ثلاثة الأصول وأدلتها" },
"group_id": 55,
"group_order": 3,
"arabic_text": "[آل عمران: 18]"
},
"translated_text": "[Âl ‘Imrân : 18]"
}
]
}
]

One element per translated Arabic version (usually the latest). Group the phrases by phrase.chapter and phrase.group_id to render chapters and paragraphs, exactly as for the Arabic.

GET/books/{projectId}/languages
["aa", "af", "ak", "am", "as", "en", "fr", "..."]
GET/books/pdfs

One row per book, language and version, for the whole library (about 2,900 rows, 800 KB): what the sitemap and a download mirror need.

[
{ "project_id": 36, "lang": "fr", "version_name": "2.0", "source": "molhem", "bytes": 466120, "url": "https://islamenc-files.hel1.your-objectstorage.com/pdf/36/fr-2.0.pdf", "updated_at": "2026-10-02T09:11:40.000Z", "title": "Les trois fondements" }
]

title is the book’s title in that language, the name the file is meant to be saved under.