/v1/convert
Convert Gregorian ⇄ Hijri date
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/prayer-api/v1/convert" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/prayer-api/v1/convert", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/prayer-api/v1/convert");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/prayer-api/v1/convert",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"conversion": {
"from": "gregorian",
"hijri": {
"day": "15",
"date": "15-12-1447",
"year": "1447",
"month": "Dhū al-Ḥijjah",
"weekday": "Al Athnayn",
"month_ar": "ذوالحجة",
"designation": "AH",
"month_number": 12
},
"input": "01-06-2026",
"gregorian": {
"day": "01",
"date": "01-06-2026",
"year": "2026",
"month": "June",
"weekday": "Monday",
"month_number": 6
}
}
},
"meta": {
"timestamp": "2026-05-31T15:30:51.136Z",
"request_id": "fdc25ac3-a7a6-4742-ae29-7139b751f775"
},
"status": "ok",
"message": "Date converted",
"success": true
}