TheShia
العودة إلى جميع الواجهات

الكسوف والخسوف

الكسوف والخسوف من ٢٠٢٠ إلى ٢٠٤٠ — الأنواع وأوقات الذروة والمقادير ومدد الخسوف ونقاط الذروة الأرضية، من المحرك المتحقق منه نفسه الذي يرسم خرائط الكسوف.

GET https://theshia.org/api/v1/eclipses

المعاملات

  • kind optional values: "solar" · "lunar".
  • type optional values: "total" · "annular" · "hybrid" · "partial" · "penumbral".
  • from optional start of the window — YYYY or YYYY-MM-DD (dataset covers 2020 to 2040).
  • to optional end of the window — YYYY (through that year's end) or YYYY-MM-DD.
  • upcoming optional 1 to 24 — the next N eclipses from today, each with daysUntil. Not combinable with from/to.
  • calendar default: moonsighting reckoning for the returned Hijri dates — values: "moonsighting" · "iran".
افتح مثالاً حياً ↗

أمثلة برمجية

curl

curl "https://theshia.org/api/v1/eclipses?upcoming=4"

JavaScript

const res = await fetch("https://theshia.org/api/v1/eclipses?upcoming=4");
const data = await res.json();

Python

import requests

data = requests.get("https://theshia.org/api/v1/eclipses?upcoming=4").json()

حدود الاستخدام

الاستجابات مخزنة بقوة على الحافة — يرجى التخزين من جهتكم أيضاً. الطلبات غير المخزنة محدودة بـ١٠٠ في الدقيقة لكل IP؛ والطلبات الضخمة (أكثر من ٤٩٦ حسابَ يوم×طريقة) تُرفض. مجاني للاستخدام المجتمعي، بلا ضمان توافر.