---
title: "Hijri calendar converter API | APIFor"
description: "Convert a Gregorian date to the Hijri calendar and back, or list the months of a Hijri year with their start, end and length. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/calendars/"
---

1. [Services](https://apifor.dev/services/)
2. [Calendars](https://apifor.dev/services/calendars/)

# Hijri calendar converter API

Convert a Gregorian date to the Hijri calendar and back, or list the months of a Hijri year with their start, end and length.

GET /v1/calendars/hijri 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/calendars/)

## Try it

GET /v1/calendars/hijri

```bash
curl 'https://api.apifor.dev/v1/calendars/hijri?date=2026-11-28&country=ID' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "success": true,
  "data": {
    "country": "ID",
    "official_coverage": [
      "ID"
    ],
    "gregorian_date": "2026-11-28",
    "hijri": {
      "year": 1448,
      "month": 6,
      "day": 18,
      "month_name": "Jumada al-Akhirah",
      "formatted": "18 Jumada al-Akhirah 1448 AH",
      "local_month_name": "Jumadil Akhir"
    },
    "method": "official",
    "method_note": "Official government calendar for ID."
  },
  "meta": {
    "attribution": {
      "source": "Kalender Hijriah Indonesia, Kementerian Agama Republik Indonesia (Ministry of Religious Affairs)",
      "license": "Public domain (government calendar)",
      "license_url": "https://kemenag.go.id",
      "source_url": "https://bimasislam.kemenag.go.id",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "Dates follow the published government calendar (MABIMS criteria). Final dates for Ramadan, Shawwal and Dhu al-Hijjah are set by the gover..."
    }
  }
}
```

A real response from our OpenAPI file, with long lists and strings shortened.

## Endpoints and price

| Endpoint | Credits | About |
| --- | --- | --- |
| GET `/v1/calendars/hijri` | 1 credit | $0.001 |
| GET `/v1/calendars/coverage` (Free) | Free | $0 |

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

## Coverage today

Works for any country. Country-specific data: Bahrain, Indonesia, Kuwait, Oman, Qatar, Saudi Arabia and United Arab Emirates.

Leave `country` out to get every covered country, or pass one to narrow it.

Sources, row counts and country-only fields per country: [`GET /v1/calendars/coverage`](https://apifor.dev/docs/reference/calendars/#get-calendars-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## Limits

- Official government dates where we hold them. Everywhere else uses the tabular calendar.
- The tabular calendar does not follow moon sighting and can be a day or two off.
- Send only one of date, hijri or year.

## Sources and licences

- **[Ministry of Religious Affairs Hijri calendar (ID)](https://bimasislam.kemenag.go.id)**: Public domain (government calendar)
- **Tabular Islamic calendar**: Computed

### Attribution

- Copyright © 2016-2025 Unicode, Inc.

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## Questions

**How do I know which calendar answered?**

method is official, tabular or mixed for a year that is partly covered.

**Can official dates still change?**

Yes. The start of Ramadan, Shawwal and Dhu al-Hijjah can move by a day after the sighting session.

## Related services

[All services](https://apifor.dev/services/)

- [Sunrise, sunset and moon phase API](https://apifor.dev/services/sun/)
- [Quran text API](https://apifor.dev/services/quran/)
- [Bible text API](https://apifor.dev/services/bible/)
- [English dictionary API](https://apifor.dev/services/dictionary/)
- [Prayer times API](https://apifor.dev/services/prayer-times/)
- [Public holidays API](https://apifor.dev/services/holidays/)
