TheShia
Back to all APIs

Day status

Today (or any date) as machine-readable flags — Hijri date, the day's events, and mourning/festive season, fasting and night-of-worship indicators — so masjid sites and apps can theme themselves automatically.

GET https://theshia.org/api/v1/day-status

Parameters

  • date default: today the day to describe, YYYY-MM-DD (years 1900 to 2100).
  • calendar default: moonsighting values: "moonsighting" · "iran".
Open live example ↗

Code samples

curl

curl "https://theshia.org/api/v1/day-status"

JavaScript

const res = await fetch("https://theshia.org/api/v1/day-status");
const data = await res.json();

Python

import requests

data = requests.get("https://theshia.org/api/v1/day-status").json()

Rate limits & fair use

Responses are cached hard at the edge — please cache on your side too. Uncached requests are limited to 100 per minute per IP; oversized requests (over 496 day×method computations) are rejected. Free for community use, no uptime guarantee.