Skip to main content

Hadith References API

from quran_foundation import QuranClient

client = QuranClient(client_id="YOUR_CLIENT_ID", access_token="APP_ACCESS_TOKEN")

references = client.get_hadith_references_by_ayah("12:12")
hadiths = client.get_hadiths_by_ayah("12:12", params={"limit": 4})
counts = client.count_hadiths_within_range("12:12", "12:13")

Supported helpers:

  • get_hadith_references_by_ayah(verse_key, params=None)
  • get_hadiths_by_ayah(verse_key, params=None)
  • count_hadiths_within_range(from_verse_key, to_verse_key, params=None)

Read next: