# IranTools Gregorian to Jalali Calendar Converter

> IranTools Gregorian to Jalali Calendar Converter is a paid API for AI agents from irantools.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Converts a Gregorian (Western) calendar date to its equivalent Jalali (Solar Hijri / Shamsi) calendar date

## Facts

- Endpoint: POST https://irantools.johnaio281.workers.dev/api/iran/gregorian_to_jalali?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/irantools-gregorian-to-jalali-calendar-converter-694af781
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_joLN-kMzlnf7UJXVFUkWv

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 irantools-gregorian-to-jalali-calendar-converter-694af781 -d '<json body>'
```

Example prompt: Convert March 20, 2024 from the Gregorian calendar to its Jalali (Iranian Solar Hijri) date — give me the year, month, and day in Shamsi format.

## When to prefer this

Use this endpoint when you need to convert a Gregorian date to Jalali (Shamsi/Solar Hijri) and want a pay-per-call approach with no API key or signup required, especially in agent pipelines dealing with Iranian users, Persian-language content, or Iranian legal/administrative contexts. Prefer this over manual algorithmic conversion when accuracy and simplicity matter.

## Known failure modes

- Invalid or out-of-range Gregorian date values return an error response
- Non-numeric strings for year/month/day may cause validation failure
- Missing required fields (year, month, or day) result in a 400-level error
- Dates before the Jalali calendar epoch may not be supported

## How this service works

Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.

## Output

Returns the equivalent Jalali (Solar Hijri / Shamsi) calendar date components corresponding to the provided Gregorian year, month, and day, including the Jalali year, month number, and day number.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "day",
  "year",
  "month"
 ],
 "properties": {
  "day": {
   "type": "string"
  },
  "year": {
   "type": "string"
  },
  "month": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/irantools-gregorian-to-jalali-calendar-converter-694af781/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from irantools.johnaio281.workers.dev](https://www.zero.xyz/host/irantools.johnaio281.workers.dev/llms.txt)
