هذا API وسيط للـ API الدرر السنية

Overview

Dorar.net Hadith API

السلام عليكم ورحمة الله وبركاته

منذ مدة حاولت إستعمال الـ API الخاص بالدرر السنية
لكنني واجهت بعض الصعوبات منها أن الـ API يتعامل مع JSONP فقط وأيضًا لن تستطيع التعامل معه بالطرق العادية بسبب الـ CORS

وإن نجحت بتجنب الـ CORS بإستعمال JSONP فتحصل على الناتج بهيئة HTML

فأنا قررت عمل API وسيط يتجنب مشكلة CORS ويعطيك البيانات كهيئة JSON

الاستعمال

الرابط: https://dorar-hadith-api.herokuapp.com/
لديه endpoint وحيدة وهى /api/search?value={value}&page={page}
الـ query يحتوي على value وهي محتوى نص الحديث المراد البحث عنه
والـ page رقم الصفحة - الدرر السنية يقدم 15 حديث لكل صفحة -

شكل الرد كـ JSON

[
    {
        "hadith": "الحديث",
        "el_rawi": "الراوي",
        "el_mohdith": "المحدث",
        "source": "المصدر",
        "number_or_page": "رقم الحديث او الصفحة",
        "grade": "درجة الصحة"
    },
    {
        ...
    },
    ...
]

مصفوفة تحتوي على مجموعة من البيانات كل واحدة يمثل حديث

  • hadith: نص الحديث
  • el_rawi: إسم الراوي
  • el_mohdith: إسم المحدث
  • source: مصدر الحديث
  • number_or_page: رقم الحديث او الصفحة
  • grade: درجة صحة الحديث

مثال تطبيقي

لنبحث عن حديث أتاكم أهل اليمن أرق قلوباً منكم

https://dorar-hadith-api.herokuapp.com/api/search?value=أتاكم أهل اليمن أرق قلوباً منكم

الـ API يحضر لك 15 حديث

عرض الناتج
[
  {
    "hadith": "أتاكُم أهلُ اليَمَنِ وهُم أرَقُّ قلوبًا منكم، وهُم أوَّلُ مَن جاء بالمُصافَحةِ. .",
    "el_rawi": "أنس بن مالك",
    "el_mohdith": "شعيب الأرناؤوط",
    "source": "تخريج المسند",
    "number_or_page": "13212",
    "grade": "إسناده صحيح على شرط مسلم"
  },
  {
    "hadith": "أتاكم أهلُ اليمنِ هم أرَقُّ قلوبًا الإيمانُ يمانٍ والحكمةُ يمانيةُ والفقهُ يمانٍ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "أحمد شاكر",
    "source": "تخريج المسند لشاكر",
    "number_or_page": "14/50",
    "grade": "إسناده صحيح"
  },
  {
    "hadith": "أَتاكم أَهْلُ اليَمَنِ، هُم أَرَقُّ قُلوبًا، الإيمانُ يَمانٍ، الفِقهُ يَمانٍ، الحِكمَةُ يَمانيَّةٌ. .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "شعيب الأرناؤوط",
    "source": "تخريج المسند",
    "number_or_page": "7723",
    "grade": "إسناده صحيح على شرط الشيخين"
  },
  {
    "hadith": "أتاكم أهلُ اليمنِ ، هم أضعفُ قلوبًا ، و أَرَقُّ أفئدةً ، الفقهُ يمانٍ ، و الحكمةُ يمانيَّةٌ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "السيوطي",
    "source": "الجامع الصغير",
    "number_or_page": "75",
    "grade": "صحيح"
  },
  {
    "hadith": "أتاكم أهلُ اليمنِ ، هم أضعفُ قلوبًا ، و أَرَقُّ أفئدةً ، الفقهُ يمانٍ ، و الحكمةُ يمانيَّةٌ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "الألباني",
    "source": "صحيح الجامع",
    "number_or_page": "54",
    "grade": "صحيح"
  },
  {
    "hadith": "قد أقبل أهلُ اليمنِ ، وهم أرقُّ قلوبًا منكم .",
    "el_rawi": "أنس بن مالك",
    "el_mohdith": "الألباني",
    "source": "صحيح الأدب المفرد",
    "number_or_page": "744",
    "grade": "صحيح"
  },
  {
    "hadith": "أَتاكُمْ أهْلُ اليَمَنِ، هُمْ أرَقُّ أفْئِدَةً وأَلْيَنُ قُلُوبًا، الإيمانُ يَمانٍ والحِكْمَةُ يَمانِيَةٌ، والفَخْرُ والخُيَلاءُ في أصْحابِ الإبِلِ، والسَّكِينَةُ والوَقارُ في أهْلِ الغَنَمِ. .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "البخاري",
    "source": "صحيح البخاري",
    "number_or_page": "4388",
    "grade": "[صحيح]"
  },
  {
    "hadith": "لما نزلت :  إِذَا جَاءَ نَصْرُ اللهِ وَالْفَتْحُ  ؛ قال : أتاكم أهلُ اليمنِ ؛ هم أَرَقُّ قلوبًا ، الإيمانُ يمانٍ ، الفقهُ يمانٍ ، الحكمةُ يمانيَّةٌ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "الألباني",
    "source": "السلسلة الصحيحة",
    "number_or_page": "3369",
    "grade": "إسناده صحيح على شرط الشيخين"
  },
  {
    "hadith": "أتاكم أَهلُ اليمَنِ هم أرقُّ أفئدةً وأرقُّ قلوبًا الإيمانُ يمانٍ والحِكمةُ يمانيَةٌ والقَسوةُ وغِلَظُ القلوبِ في الفدَّادينَ أصحابِ الإبلِ قِبلَ المشرقِ في ربيعةَ ومُضَرَ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "أبو نعيم",
    "source": "حلية الأولياء",
    "number_or_page": "7/420",
    "grade": "صحيح من حديث الأعمش مشهور"
  },
  {
    "hadith": "لما نزلتْ { إِذا جاءَ نَصْرُ اللهِ وَالْفَتْحُ } قال النبيُّ صلَّى اللهُ عليهِ وسلَّمَ أتاكم أهلُ اليمنِ هم أرقُّ قلوبًا الإيمانُ يمانٍ الفقهُ يمانٍ الحكمةُ يمانيَّةٌ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "أحمد شاكر",
    "source": "تخريج المسند لشاكر",
    "number_or_page": "14/149",
    "grade": "إسناده صحيح"
  },
  {
    "hadith": "الإيمانُ يَمانٍ، والفقهُ يَمانٍ، والحكمةُ يَمانيَةٌ، أتاكم أَهلُ اليمنِ فهم أَرَقُّ أفئدةً، وأَلْينُ قلوبًا، والكفرُ قِبَلَ المَشرقِ، والفخرُ والخُيلاءُ في أهلِ الخيلِ والإبلِ والفدَّادين أهلِ الوَبَرِ، والسكينةُ في أهلِ الغنمِ.  .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "شعيب الأرناؤوط",
    "source": "تخريج المسند",
    "number_or_page": "8942",
    "grade": "صحيح"
  },
  {
    "hadith": "أتاكم أهلُ اليمنِ هم أَرَقُّ أفئدةً ، و ألينُ قلوبًا ، الإيمانُ يمانٍ ، و الحكمةُ يمانيَّةٌ ، و الفخرُ و الخُيلاءُ في أصحابِ الإبلِ ، و السكينةُ و الوقارُ في أهلِ الغنمِ .",
    "el_rawi": "أبو هريرة",
    "el_mohdith": "الألباني",
    "source": "صحيح الجامع",
    "number_or_page": "53",
    "grade": "صحيح"
  },
  {
    "hadith": "قد أقبلَ أهلُ اليمنِ ، و هُمْ أَرَقُّ قُلوبًا مِنكمْ قال أنسُ : و هُمْ أولُ مَنْ جاء بِالمُصافَحَةِ .",
    "el_rawi": "أنس بن مالك",
    "el_mohdith": "الألباني",
    "source": "السلسلة الصحيحة",
    "number_or_page": "527",
    "grade": "إسناده صحيح على شرط مسلم"
  },
  {
    "hadith": "إنَّه لَمَّا أقْبَلَ أهلُ اليَمَنِ، قال رسولُ اللهِ صلَّى اللهُ عليه وسلَّم: قد جاءَكم أهْلُ اليَمَنِ، هُم أرَقُّ مِنكم قُلوبًا. قال أنسٌ: وهُم أوَّلُ مَن جاء بالمُصافَحةِ. .",
    "el_rawi": "أنس بن مالك",
    "el_mohdith": "شعيب الأرناؤوط",
    "source": "تخريج المسند",
    "number_or_page": "13624",
    "grade": "إسناده صحيح على شرط مسلم"
  },
  {
    "hadith": "أَهْلُ اليمَنِ أرقُّ أفئدةً وأليَنُ قلوبًا .",
    "el_rawi": "أبو سعيد الخدري وأبو هريرة",
    "el_mohdith": "ابن القيسراني",
    "source": "ذخيرة الحفاظ",
    "number_or_page": "2/1088",
    "grade": "تفرد به روح بن مسافر وهو ضعيف"
  }
]

يكمننا إستخدام page لعرض صفحة مختلفة من الاحاديث (15 حديث آخر)

https://dorar-hadith-api.herokuapp.com/api/search?value=أتاكم أهل اليمن أرق قلوباً منكم&page=5

You might also like...

The leaderboard website displays scores submitted by different players. It also allows you to submit your score. All data is preserved thanks to the external Leaderboard API service. Build with Html, CSS, JS, API, and Webpack.

The leaderboard website displays scores submitted by different players. It also allows you to submit your score. All data is preserved thanks to the external Leaderboard API service. Build with Html, CSS, JS, API, and Webpack.

Mar 11, 2022

Essa API tem como objetivo auxiliar na produção de documentação de métodos e design packs, fornecendo de maneira visual a documentação de cores para api's

Essa API tem como objetivo auxiliar na produção de documentação de métodos e design packs, fornecendo de maneira visual a documentação de cores para api's

DocColors-API Essa API tem como objetivo auxiliar na produção de documentação de métodos e design packs, fornecendo de maneira visual a documentação d

Feb 4, 2022

The Taste food web app is our JavaScript capstone project, Taste food is a web application based on an external food API, showing data about Italian foods and we used Used involvement API to record the different user interactions (likes, comments).

taste-food The Taste food web app is our JavaScript capstone project, Taste food is a web application based on an external food API TheMealDB, showing

Aug 10, 2022

A serverless AWS expense tracker API. AWS Lambda functions, API gateway, and Dynamodb are among the ingredients.

AWS-Serverless-API A serverless AWS expense tracker API. AWS Lambda functions API gateway Dynamodb Endpoints Create a new expense: Method: POST Body f

Jul 16, 2022

This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js

This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js. But in most cases, I would recommend you to use something like Express in a production project for productivity purposes.

Jul 19, 2022

News API Wrapper for Violetics API News

News API Wrapper for Violetics API News

Mar 23, 2022

Rent-A Movie is a website based on movie renting. The user can leave likes, comments or make reservations for movies they would like to rent. Made using tvMaze API, Involvement API, HTML, SASS and JavaScript

Rent-A Movie is a website based on movie renting. The user can leave likes, comments or make reservations for movies they would like to rent. Made using tvMaze API, Involvement API, HTML, SASS and JavaScript

Rent-A Movie "Rent-A Movie" is a website for movie renting where you can make reservations, add comments & likes or just get details about movies that

Aug 23, 2022

A landing page, as well as a results page, that utliize both Yelp API and Google Maps API.

A landing page, as well as a results page, that utliize both Yelp API and Google Maps API.

Economic Eats Group Project #1 Maintained By: Austin Donovan John Hysong John Guzzetta Jahnathan Exantus Description This project contains a landing p

Aug 4, 2022

A Travel companion app using Google Maps API, Travel Search and Weather API

A Travel companion app using Google Maps API, Travel Search and Weather API

Travel Advisor Introduction An advanced Travel Companion Application using Google Maps. With Geolocation, Google Maps API, Searching for places, Fetch

Nov 11, 2022
Comments
  • تغير موقع الاستضافة

    تغير موقع الاستضافة

    أعلن heroku أنه سيلغي الاستضافات المجانية يوم 28/11/2022 لذا نحتاج لبديل لرفع هذا الـ API

    Starting November 28th, 2022, free Heroku Dynos, free Heroku Postgres, and free Heroku Data for Redis® will no longer be available. If you have apps using any of these resources, you must upgrade to paid plans by this date to ensure your apps continue to run and to retain your data. For students, we will announce a new program by the end of September. Learn more

    opened by AhmedElTabarani 0
Owner
أحمد الطبراني
Games Dev & Back-End Node.Js
أحمد الطبراني
This project is built with JavaScript, Webpack, HTML & CSS, Leaderboard api. When user clicks on Refresh button it hits the api and responds with the data, The user can also post data to the api

leaderboad Description the project. this project is about the leaderboad i did during Microverse to build a website for adding Data to the API and fet

Emmanuel Moombe 4 May 30, 2022
Unofficial API client for the Tidbyt API. Use this client to control Tidbyt devices and integrate with other services.

Tidbyt Client for Node.js Unofficial API client for the Tidbyt API. Use this client to control Tidbyt devices and integrate with other services. Insta

Nicholas Penree 19 Dec 17, 2022
Webb-tracker-api - James Webb Space Telescope (JWST) tracking REST API

James Webb Telescope tracking REST API Public REST API to track JWST's current status API data source: https://www.jwst.nasa.gov/content/webbLaunch/wh

Aslan Vatsaev 67 Nov 22, 2022
To-do-expressJS-api - An ExpressJS API, where you can create your own To-Do's

ExpressJS to-do API What is this API about? This is an API where you can do the following: Log in. Sign up. Create task Read Task Update Task Delete T

Pértile Franco Giuliano 1 Jan 3, 2022
Base-mock-api - Repo to storage my fake api's to use in my 2022 projects.

Base Mock API's Project made 100% with JavaScript, with the objective of creating endpoints to use in projects. Prerequisites Before you begin, ensure

Arthur Cabral 0 Nov 20, 2022
Lolis-rest - RESTful API for lolis-api

Lolis REST RESTful + Website for Lolis API. Introduction This is a RESTful API which will be used on Lolis API Website and Wrapper. This API uses Imgu

Waifu.sbs 3 Aug 11, 2022
JavaScript API based capstone project using TVmaze API for displaying and interacting with items from the data base.

Yuriy Chamkoriyski & Bonke Gcobo Javascript capstone project API-based webapp from Module 2 at Microverse Wireframe requirements The Home Page low fid

Yuriy Chamkoriyski 5 May 30, 2022
An open source API wrapper for TechHost API.

TechHost API Wrapper An open source API wrapper for TechHost API. Badges Installation Install techhost-api-wrapper with npm. npm install techhost-api-

Eight∞ 4 Jun 23, 2022
Weather Application built using ReactJs , OpenCage API and OpenWeatherMap API

Weather-bot Netlify Site Status : Weather application built using ReactJs, OpenCage Api and OpenWeatherMap Api Tech Stack and Dependencies Name Descri

Kaushik Selvaraju 13 Oct 17, 2022
Example CRUD API for API Fest'22. See Pull Requests for chapter 2 and 3

Example CRUD API for API Fest'22. See Pull Requests for chapter 2 and 3

Postman Student Program 6 Mar 2, 2022