Skip to content

gadingnst/hadith-api

Repository files navigation

Hadith - API

Simple Islamic Hadith API with Indonesia 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 by range of number. Example: /books/bukhari?range=300-500. (Note: For performance reasons, max accepted range: 300)
  • /books/{name}/{number} = Returns spesific 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 = collect new data from the data source, then unifying it in one JSON file.

LICENSE

MIT

Support or Donate Me

Global

ko-fi

Indonesia


Copyright © 2020 by Sutan Gading Fadhillah Nasution