Quran Edge API
Surah CatalogAPI PlaygroundStatusAbout
GitHubGitHub
Sign In
Quran Edge API

Free, open-source Al-Quran API delivering accurate Arabic text, Indonesian translations, and Tafsir Kemenag RI at the edge.

Edge-delivered via Cloudflare Workers

Product

  • Surah Catalog
  • API Playground
  • Status
  • About

Resources

  • GitHub Repository
  • Kemenag RI
  • License (MIT)

Community

  • Issues
  • Pull Requests
  • Discussions

Data source: Kementerian Agama Republik Indonesia. Original dataset by Rio Astamal.

MIT License. Built by Twinpath.

About Quran Edge API

Quran Edge API was born from a simple need: lightweight, accurate, and fast access to the Holy Quran in a developer-friendly format. What started as a personal project by Rio Astamal to create a static Quran reader for his Blackberry Passport has grown into a modern edge-delivered API serving developers worldwide.

Accuracy
Sourced directly from the official Kemenag RI application with full diacritical marks and verified translations.
Speed
Edge-delivered via Cloudflare Workers across 300+ locations for sub-15ms response times worldwide.
Openness
MIT licensed, no API keys, rate limited to 60 requests/min, no tracking. Fork it, self-host it, or use our CDN.

Dataset Lineage

Tracing the provenance and accuracy of the Quran Edge API dataset. Original dataset authored by Rio Astamal.

Primary Source

Arabic text, Indonesian translations, and Tafsir are sourced from the official application of Kementerian Agama Republik Indonesia.

quran.kemenag.go.id
D1 Database Seed

The dataset is loaded and indexed inside a Cloudflare D1 SQL database using Drizzle ORM schemas and seeders, optimizing direct querying and search.

Script Integrity

Arabic text includes full diacritical marks (harakat) following the Uthmani script standard. Each ayah preserves the original encoding from Kementerian Agama Republik Indonesia.

Translation & Tafsir

Indonesian translations and Tafsir Kemenag RI are included for every ayah, providing comprehensive meaning and scholarly interpretation.

Architecture

How Quran Edge API delivers sub-15ms responses worldwide through edge infrastructure.

Client Request

Users and applications send HTTP requests to the Quran Edge API domain.

Cloudflare Edge (300+ PoPs)

Requests hit the nearest Cloudflare edge node. Edge-cached API responses are served directly from Cloudflare KV caching namespace.

Cloudflare Workers (OpenNext SSR)

Dynamic pages and API routes are rendered on Cloudflare Workers using the OpenNext adapter for Next.js, running full server-side rendering at the edge.

Cloudflare D1 Database

If cached KV is a miss, requests are dynamically queried against the serverless D1 (SQLite) SQL database at the edge, and results are cached.

Contributors

The people and organizations behind Quran Edge API.

Rio Astamal

Original Dataset Author

Visit Rio Astamal

Twinpath

Edge API & Web Application

Visit Twinpath

Want to contribute?

We welcome Pull Requests for translations, bug fixes, and feature improvements.

Open a Pull Request

Ready to build with Quran Edge API?

Start integrating accurate Quran data into your application today. Free forever, no API key required.

Try the APIGitHubStar on GitHub