# Hijri Date Converter

> Hijri Date Converter is a paid API for AI agents from bazaar-catalog.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts Gregorian dates to Hijri (Umm al-Qura calendar) and vice versa, returning day/month/year components, Arabic and English month names, and a formatted Arabic date string.

## Facts

- Endpoint: GET https://bazaar-catalog.vercel.app/api/hijri
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hijri-date-converter-14695c06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oP9Vap0kOGCKFjhEPRWfT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hijri-date-converter-14695c06
```

Example prompt: What is the Hijri (Umm al-Qura) date for March 15, 2025? Give me the Arabic month name and the full formatted Arabic date string.

## When to prefer this

Use this endpoint when you need accurate Umm al-Qura Hijri calendar conversions, especially when Arabic month names or formatted Arabic date strings are required — such as for Islamic religious event scheduling, Arabic-language documents, Ramadan or Hajj planning, or any application serving Muslim users who expect Hijri calendar output. Prefer this over generic date libraries when the Umm al-Qura standard and Arabic locale formatting are required.

## Known failure modes

- Invalid date format (not YYYY-MM-DD or iYYYY-iMM-iDD) returns an error
- Date out of supported calendar range may return an error or unexpected result
- Missing both 'date' and 'hijri' params defaults to today, which may not be intended
- Network or payment failure (402 if payment not attached) blocks the response

## How this service works

Convert Gregorian dates to Hijri (Umm al-Qura calendar) and back. Returns day/month/year, Arabic and English month names, and a formatted Arabic date string. Essential for agents handling Islamic events, Ramadan, Hajj seasons, or Arabic documents.

## Output

Returns the converted date components including the Hijri or Gregorian day, month, and year, the English and Arabic names of the Hijri month, and a fully formatted Arabic date string suitable for display in Arabic-language documents or interfaces.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "date": {
       "type": "string",
       "description": "Gregorian date YYYY-MM-DD to convert to Hijri (default: today)"
      },
      "hijri": {
       "type": "string",
       "description": "Hijri date iYYYY-iMM-iDD to convert to Gregorian (overrides 'date')"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hijri-date-converter-14695c06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bazaar-catalog.vercel.app](https://www.zero.xyz/host/bazaar-catalog.vercel.app/llms.txt)
