Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 2.21 KB

File metadata and controls

65 lines (48 loc) · 2.21 KB

Hadith - API

Simple Islamic Hadith API with Indonesian Translation.

Deploy

Already deployed in [https://api.hadith.gading.dev] or you can deploy your own at:

Deploy your own with Vercel

Data Source

Available Hadith

  • Muslim
  • Bukhari
  • Tirmidzi
  • Nasai
  • Abu Daud
  • Ibnu Majah
  • Ahmad
  • Darimi
  • Malik
  • Your contribution ?

Features

  • Arabic
  • Indonesia Translation
  • Your contribution ?

Endpoint usage

  • /books = Returns the list of available Hadith Books.
  • /books/{name}?range={number}-{number} = Returns hadiths within the specified range of numbers. Example: /books/bukhari?range=300-500. (Note: For performance reasons, max accepted range: 300)
  • /books/{name}/{number} = Returns specific hadith. Example: /books/muslim/5

Example Response

Fetching on HR. Muslim No. 5

/books/muslim/5

Recommended Arabic Fonts

Available Commands

  • yarn start = Run server.
  • yarn dev = Run develop server.
  • yarn crawl = Collects new data from the data source and unifies it into a single JSON file.

LICENSE

MIT

Support or Donate Me

Global

ko-fi

Indonesia


Copyright © 2020 by Sutan Gading Fadhillah Nasution