# Farsi Tools – Jalali to Gregorian Date Converter

> Farsi Tools – Jalali to Gregorian Date Converter is a paid API for AI agents from farsi-tools.johnaio281.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-30).

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

## Facts

- Endpoint: GET https://farsi-tools.johnaio281.workers.dev/api/fa/jalali-to-gregorian?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farsi-tools-jalali-to-gregorian-date-converter-3b2251dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QuaPbUi2iqMZ_DQmB3vYz

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 farsi-tools-jalali-to-gregorian-date-converter-3b2251dd
```

Example prompt: What's the Gregorian date for the Persian date 1403, month 8, day 15?

## When to prefer this

Use this endpoint when you need to programmatically convert Persian (Jalali/Solar Hijri/Shamsi) calendar dates to Gregorian dates, particularly for applications serving Iranian users, processing Persian-dated documents, or integrating with Iranian business systems. It is ideal for pay-per-call usage patterns where you don't want to maintain a calendar library, and when operating in an x402/USDC micropayment environment.

## Known failure modes

- Missing required query parameters (year, month, day) returns an error
- Out-of-range month (< 1 or > 12) or day (< 1 or > 31) returns a validation error
- Invalid Jalali date combinations (e.g. day 30 in a 29-day month) may return an error or unexpected result
- Payment not provided or insufficient USDC balance returns HTTP 402
- Network errors on the Cloudflare Workers edge may return 5xx responses

## How this service works

Persian (Farsi) and Iranian utility API for AI agents. Text normalization, transliteration, Jalali (Solar Hijri) calendar conversion, Persian digits and number-to-words, Iranian national ID / Sheba (IBAN) / mobile / landline / postal code / bank card (Luhn PAN) / company ID / economic code validators, Iranian provinces and cities, official Jalali holidays, Rial-Toman conversion. Also a FIXED-PRICE deliverable SKU: Persian/Arabic data cleanup at $0.90, $9 or $25 flat per file (not per call) - upload a CSV, TSV or text file and get it back normalized, with an optional Latin transliteration column. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

A JSON object containing a single 'gregorian' field with the converted date formatted as YYYY-MM-DD (e.g. {"gregorian": "2026-10-21"})

## 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": [
      "year",
      "month",
      "day"
     ],
     "properties": {
      "day": {
       "type": "integer",
       "maximum": 31,
       "minimum": 1
      },
      "year": {
       "type": "integer"
      },
      "month": {
       "type": "integer",
       "maximum": 12,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gregorian": "2026-10-21"
 }
}
```

## More

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