The Bot provide Hadith API and fetch content via api.hadith.sutanlab.id
- Python
- Asynchronous
- HTTP protocol client
- Telegram-Bot
-
hadith
GET api.hadith.sutanlab.id/books/{name}?range={number}-{number}
[Example]
https://api.hadith.sutanlab.id/books/muslim?range=1-150
Parameter value e.g Description number
0-300
Returns hadiths by range of number. (Note: For performance reasons, max accepted range: 300)
name
['muslim','bukhari','tirmidzi','nasai','abu-daud','ibnu-majah','ahmad','darimi','malik']
Returns hadiths by range of number. (Note: For performance reasons, max accepted range: 300)
-
spesific
GET api.hadith.sutanlab.id/books/{name}/{number}
[Example]
https://api.hadith.sutanlab.id/books/bukhari/52
Parameter value e.g Description number
0-300
Returns hadiths by range of number. (Note: For performance reasons, max accepted range: 300)
name
['muslim','bukhari','tirmidzi','nasai','abu-daud','ibnu-majah','ahmad','darimi','malik']
Returns spesific hadith
-
endpoints
GET api.hadith.sutanlab.id/books
[Example]
https://api.hadith.sutanlab.id/books
pattern Type Description https://api.hadith.sutanlab.id/books
list
Returns the list of available Hadith Books.
👤 Author
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!