Skip to content

Hijri Date Widget

Show today’s Hijri and Gregorian date on any website in under a minute. No frameworks, no tracking, no dependencies — just a tiny script served from a global edge network.

Accounts for regional moon-sighting differences (±2 days).

Loading…

API reference

GET /api/widget/today accepts the following query parameters:

Parameter Allowed values Description
langen · ar · urInterface language & RTL direction.
offset-2 … +2Shift the base date by this many days.
themelight · dark · autoColour scheme.
formatjson · htmlResponse format (default json).

Served from a global edge network with 5-minute caching. Returns Access-Control-Allow-Origin: * so it works from any website.