1,400 Years of Islamic History
as a RAG API

71,000+ authenticated chunks across 132 primary sources. Al-Tabari to Ibn Kathir. Query the classical canon.

71K+ Chunks
132 Sources
15 Eras
265 Figures
1,400 Years
Get Free API Key API Docs GitHub

Quick Start

Query 1,400 years in one request

# Semantic search across the full corpus curl -X POST https://islamiccorpus.com/query \ -H "X-API-Key: your_key" \ -H "Content-Type: application/json" \ -d '{"q": "Khalid ibn Walid Battle of Yarmouk", "n": 5}' # Returns: ranked chunks with source, era, chain_strength, score # Top result: Al-Tabari Vol 12 (score: 0.847) — eyewitness chain
# Full research brief for a figure + event curl -X POST https://islamiccorpus.com/research \ -H "X-API-Key: your_key" \ -H "Content-Type: application/json" \ -d '{"figure": "Saladin", "event": "Fall of Jerusalem", "era": "crusades"}' # Returns: primary accounts + character context + # religious context + pre-flagged source conflicts

Endpoints

Four ways to query the corpus

POST
/query
Semantic search. Returns ranked chunks with source attribution, chain strength, and conflict flags.
POST
/research
Structured research brief. Multi-query context packet for a figure + event — primary accounts, character context, pre-flagged conflicts. The power endpoint.
GET
/figure/{name}
Knowledge graph entry. Sensitivity tier, relationships, scholarly debates, lineage, source coverage count.
GET
/sources
Full source manifest. 132 sources with chunk counts, authentication tier, and chain strength.

Interactive docs at /docs →

Sources

The classical Islamic canon, structured

Al-Tabari — Tarikh al-Rusul
Rashidun → Abbasid · Vols 10-38
classical_islamic
Ibn Kathir — Al-Bidaya wa'l-Nihaya
All eras · Key volumes
classical_islamic
Ibn Sa'd — Tabaqat al-Kabir
Rashidun · Vols I-VIII · 265 companions
classical_islamic
Sahih Bukhari + Muslim
Hadith · 15,000+ narrations
classical_islamic
Ibn Khaldun — Muqaddimah
All eras · 3 volumes
classical_islamic
Al-Masudi — Muruj al-Dhahab
Abbasid · Geography + court culture
classical_islamic
Ibn al-Athir — Al-Kamil
Crusades + Mongol · Complete history
classical_islamic
+ 125 more sources
Sira · Hadith · Ottoman · Mughal · Africa · Andalusia · Southeast Asia
GET /sources

Access

Pay for infrastructure, not scholarship

Free
$0
100 queries / month
  • All 4 endpoints
  • Full source attribution
  • Students & researchers
Institutional
$75 / month
Unlimited queries
  • All 4 endpoints
  • Universities & publishers
  • Ed-tech platforms

Cannot afford access? Contact us — we will work something out.

Get Started

Free API key — instant access

Enter your email for a free tier key (100 queries/month).
Copy your key — requesting again replaces the old one.

Ethics

Infrastructure costs. Scholarship is free.

The words of Al-Tabari, Ibn Kathir, and Imam Bukhari belong to the scholars and to Islamic civilization. We built the infrastructure that makes them queryable at scale. That infrastructure has a nominal cost. The scholarship itself remains freely available at its original sources.

All ingested sources are public domain or open access. Modern copyrighted translations are never redistributed. The knowledge graph metadata is original work, released under CC-BY. Pipeline code is MIT licensed on GitHub.