Skip to content

GlobalQuran/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

67 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GlobalQuran.com - Documentation & Download Portal

GlobalQuran Logo

The official documentation and download portal for GlobalQuran.com - providing free access to Quran data, translations, audio recitations, and development resources.

🌐 Live Site: https://docs.globalquran.com

πŸ“– About GlobalQuran.com

GlobalQuran.com is an open-source project dedicated to making the Holy Quran accessible to everyone through technology. We provide comprehensive APIs, downloadable datasets, and development resources for building Quran-related applications.

🎯 What This Repository Provides

πŸ“š Interactive API Documentation

  • Complete OpenAPI specification with live examples
  • Interactive "Try it out" functionality
  • Code samples in multiple programming languages
  • Real-time API testing environment

πŸ’Ύ Data Downloads

  • Text Formats: Quran translations in 100+ languages
  • Audio Recitations: High-quality MP3/OGG files from renowned recitors
  • Multiple Formats: JSON, JSONP, TXT, and XML
  • Bulk Downloads: ZIP packages for offline use

🎨 Assets & Resources

  • Quran Fonts: Arabic fonts optimized for Quranic text
  • Ayah Images: 6,236 individual verse images in high resolution
  • Development Tools: SDKs and helper libraries

πŸ”§ Developer Examples

  • Basic Examples: Simple API usage patterns
  • Advanced Examples: Complex integration scenarios
  • Source Code: Full HTML/JavaScript implementations
  • Live Demos: Working examples with real data

πŸš€ Features

🌍 Comprehensive Coverage

  • 6,236 Verses: Complete Quran text
  • 100+ Languages: Translations and transliterations
  • 50+ Recitors: Audio recitations in various styles
  • Multiple Formats: Text, audio, and image resources

πŸ”„ Real-time API Access

  • RESTful API: Clean, documented endpoints
  • JSONP Support: Cross-origin requests
  • Rate Limiting: Fair usage policies
  • High Availability: 99.9% uptime

πŸ“± Developer-Friendly

  • Interactive Examples: Side-by-side code and demos
  • Copy-Paste Ready: Working code snippets
  • Multiple Languages: Examples in JavaScript, Python, PHP, etc.
  • Comprehensive Docs: Detailed API reference

πŸ› οΈ Available Resources

Text Data

  • Quran Original: Arabic text in multiple scripts
  • Translations: English, Urdu, French, Spanish, and 100+ more
  • Transliterations: Romanized Arabic text
  • Metadata: Surah names, verse counts, revelation info

Audio Data

  • Recitors: Abdul Basit, Mishary Rashid, Saad Al-Ghamdi, and more
  • Quality Options: 32kbps to 192kbps
  • Formats: MP3 and OGG
  • Individual Verses: 6,236 separate audio files per recitor

Visual Assets

  • Fonts: Specialized Arabic fonts for Quranic text
  • Images: High-resolution verse images
  • Icons: UI elements for Islamic applications
  • Logos: GlobalQuran.com branding assets

πŸ“‹ API Endpoints

Core Endpoints

  • /quran - List all available resources
  • /complete/{translation} - Full Quran text
  • /surah/{number}/{translation} - Specific chapter
  • /ayah/{surah}/{ayah}/{translation} - Individual verse
  • /juz/{number}/{translation} - Quran by Juz (Para)
  • /page/{number}/{translation} - Quran by page

Audio Endpoints

  • /audio/{recitor}/{verse}.mp3 - Individual verse audio
  • /recitors - List available recitors
  • /formats - Available audio formats

πŸŽ“ Getting Started

1. Explore the Documentation

Visit docs.globalquran.com to:

  • Browse the interactive API documentation
  • Try live examples with real data
  • Download sample code and resources

2. Basic API Usage

// Fetch list of available translations
fetch('https://api.globalquran.com/quran')
  .then(response => response.json())
  .then(data => console.log(data.quranList));

// Get a specific verse
fetch('https://api.globalquran.com/ayah/1/1/en.sahih')
  .then(response => response.json())
  .then(data => console.log(data.verse));

3. Download Resources

  • Text Data: Use the download portal to get ZIP packages
  • Audio Files: Bulk download recitations by recitor
  • Assets: Get fonts and images for your applications

🀝 Contributing

We welcome contributions to improve the documentation and add new features:

  1. Report Issues: GitHub Issues
  2. Submit PRs: Help improve documentation and examples
  3. Suggest Features: Request new API endpoints or resources
  4. Translate: Help add more language translations

πŸ“„ License

This project is open source and available under the MIT License.

πŸ”— Links

πŸ’ Support

If you find this project useful, please consider:

  • ⭐ Starring the repository
  • πŸ› Reporting bugs and issues
  • πŸ’‘ Suggesting new features
  • 🀝 Contributing code or documentation
  • πŸ’° Making a donation

πŸ› οΈ Development Setup

Prerequisites

  • Node.js (v18 or higher)
  • npm

Environment Configuration

  1. Copy the environment template:

    cp .env.example .env
  2. Configure reCAPTCHA (required for contact form):

    • Go to Google reCAPTCHA Admin Console
    • Create a new reCAPTCHA v2 "I'm not a robot" Checkbox site
    • Add your domain(s) to the allowed domains list
    • Copy the Site Key to your .env file:
      REACT_APP_RECAPTCHA_SITE_KEY=your_site_key_here
      

Local Development

  1. Clone the repository:

    git clone https://github.com/GlobalQuran/site.git
    cd site
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env with your configuration
  4. Start development server:

    npm start
  5. Build for production:

    npm run build

Deployment

The site automatically deploys to GitHub Pages when changes are pushed to the main branch. Make sure to add your environment variables as GitHub Secrets:

  • RECAPTCHA_SITE_KEY: Your reCAPTCHA v2 site key

Made with ❀️ for the global Muslim community

"And We have certainly made the Quran easy for remembrance, so is there any who will remember?" - Quran 54:17

About

API Documentation for GlobalQuran.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published