Skip to content

Free Hadith API Service with Multiple Languages and Multiple Grades

License

Notifications You must be signed in to change notification settings

fawazahmed0/hadith-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
github-actions
Feb 2, 2025
a86c70a · Feb 2, 2025
Jan 15, 2025
Feb 2, 2025
Feb 2, 2025
Mar 30, 2024
Feb 2, 2025
Apr 22, 2022
Feb 10, 2024
Aug 2, 2022
Apr 23, 2022
Feb 6, 2023
Mar 18, 2023
Feb 10, 2024
Feb 2, 2025
Apr 23, 2022
Apr 23, 2022
Apr 7, 2024
Apr 7, 2024
Apr 23, 2022
Jul 13, 2024
Jul 13, 2024
Apr 23, 2022
Feb 2, 2025
Jan 15, 2025
Jan 15, 2025
Feb 10, 2024

Repository files navigation

Hadith API

In the name of God, who has guided me to do this work

Features:

  • Free & Blazing Fast response
  • No Rate limits
  • Multiple Languages
  • Multiple Grades

URL Structure:

https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@{apiVersion}/{endpoint}

Formats:

The Endpoints Supports HTTP GET Method and returns the data in two formats:

/{endpoint}.json

/{endpoint}.min.json

The above formats also work for fallback i.e if .min.json link fails, you can use .json link and vice versa

Warning: You should include fallback mechanism in your code, to avoid issues

Endpoints:

  • /editions

Lists all the available editions in prettified json format:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions.json

Get a minified version of it:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions.min.json

  • /editions/{editionName}

Get the whole hadith/hadith translation:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-abudawud.json

  • /editions/{editionName}/{HadithNo}

Get the 1035th Hadith:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-abudawud/1035.json

Get the 1035th Hadith in minified format:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-abudawud/1035.min.json

  • /editions/{editionName}/sections/{sectionNo}

Get Section 7:
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/editions/eng-abudawud/sections/7.json

  • /info

Get all the details about hadith book, such as hadith grades, books reference etc
https://cdn.jsdelivr.net/gh/fawazahmed0/hadith-api@1/info.json

Contribution:

Without your contribution, this work won't survive, whenever you find any issue, please let me Know, so that I can also fix it and people can benefit from it, incase of any question, issue or problems etc
you can let me Know

  • Please help by adding new translations to this repo, you can share me the translation here

or

  • Read Contribute to add/update the translation directly to this repo

Download: Here

Any Issues: Raise here

Demos:

Projects using Hadith API:

Other Similar Projects:

Share:

Please share this with your friends and Star this repo by clicking on ⭐ button above ↗️

References:

All the open source projects and dawah/Islamic organizations

Please see References




✏️Improve this page