# Calendar conversion API

Get Calendar Conversion data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as date, output, and retrieve structured data including resolved Gregorian date, source calendar, weekday label, julian day number, and calendar-keyed conversion records for calendar context, and follow-up calculations, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/market/apis/calendar/calendar-conversion-api/?offering=d3ad050d-3023-4cfd-b76e-1e1ecae7072b
API ID: d3ad050d-3023-4cfd-b76e-1e1ecae7072b
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/calendar/v1/convert
Page update time: 2026-12-03T02:45:13.527Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:45:11.135Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Calendar conversion API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "Gregorian date (YYYY-MM-DD); default today."
        },
        "to": {
          "type": "string",
          "description": "Comma-separated target calendars: hebrew, persian, islamic, islamic-civil, chinese, dangi, indian, ethiopic, coptic, buddhist, japanese, roc, gregorian (default: the main ones)."
        },
        "calendar": {
          "type": "string",
          "description": "Convert from this calendar instead (with year, month, day)."
        },
        "year": {
          "type": "integer",
          "description": "Year in that calendar."
        },
        "month": {
          "type": "integer",
          "description": "Month number in that calendar (Hebrew: civil order from Tishri)."
        },
        "day": {
          "type": "integer",
          "description": "Day of the month."
        },
        "leap_month": {
          "type": "string",
          "description": "1 for a Chinese or Korean leap month."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "conversions": {
      "type": "object",
      "properties": {
        "buddhist": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "chinese": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "null"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "related_gregorian_year": {
              "type": "integer"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "coptic": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "ethiopic": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "hebrew": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "indian": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "islamic": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "japanese": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        },
        "persian": {
          "type": "object",
          "properties": {
            "calendar": {
              "type": "string"
            },
            "day": {
              "type": "integer"
            },
            "era": {
              "type": "string"
            },
            "formatted": {
              "type": "string"
            },
            "formatted_native": {
              "type": "string"
            },
            "month": {
              "type": "integer"
            },
            "month_name": {
              "type": "string"
            },
            "year": {
              "type": "integer"
            }
          }
        }
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "day_of_week": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "gregorian": {
      "type": "string"
    },
    "julian_day": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/calendar/v1/convert?date=2026-11-03&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "conversions": {
    "buddhist": {
      "calendar": "buddhist",
      "day": 3,
      "era": "BE",
      "formatted": "Tuesday, November 3, 2569 BE",
      "formatted_native": "3 พฤศจิกายน 2569",
      "month": 11,
      "month_name": "November",
      "year": 2569
    },
    "chinese": {
      "calendar": "chinese",
      "day": 25,
      "era": null,
      "formatted": "Tuesday, Ninth Month 25, 2026(bing-wu)",
      "formatted_native": "2026丙午年九月廿五",
      "month": 9,
      "month_name": "Ninth Month",
      "related_gregorian_year": 2026,
      "year": 2026
    },
    "coptic": {
      "calendar": "coptic",
      "day": 24,
      "era": "AM",
      "formatted": "Tuesday, Baba 24, 1743 AM",
      "formatted_native": "Baba 24, 1743 AM",
      "month": 2,
      "month_name": "Baba",
      "year": 1743
    },
    "ethiopic": {
      "calendar": "ethiopic",
      "day": 24,
      "era": "AM",
      "formatted": "Tuesday, Tekemt 24, 2019 AM",
      "formatted_native": "24 ጥቅምት 2019 AM",
      "month": 2,
      "month_name": "Tekemt",
      "year": 2019
    },
    "hebrew": {
      "calendar": "hebrew",
      "day": 23,
      "era": "AM",
      "formatted": "Tuesday, 23 Heshvan 5787",
      "formatted_native": "57870223 12:00 PM",
      "month": 2,
      "month_name": "Heshvan",
      "year": 5787
    },
    "indian": {
      "calendar": "indian",
      "day": 12,
      "era": "Śaka",
      "formatted": "Tuesday, Kartika 12, 1948 Śaka",
      "formatted_native": "12 कार्तिक 1948 शक",
      "month": 8,
      "month_name": "Kartika",
      "year": 1948
    },
    "islamic": {
      "calendar": "islamic-umalqura",
      "day": 23,
      "era": "AH",
      "formatted": "Tuesday, Jumada I 23, 1448 AH",
      "formatted_native": "23 جمادى الأولى 1448 هـ",
      "month": 5,
      "month_name": "Jumada I",
      "year": 1448
    },
    "japanese": {
      "calendar": "japanese",
      "day": 3,
      "era": "Reiwa",
      "formatted": "Tuesday, November 3, 8 Reiwa",
      "formatted_native": "令和8年11月3日",
      "month": 11,
      "month_name": "November",
      "year": 8
    },
    "persian": {
      "calendar": "persian",
      "day": 12,
      "era": "AP",
      "formatted": "Tuesday, Aban 12, 1405 AP",
      "formatted_native": "۱۲ آبان ۱۴۰۵",
      "month": 8,
      "month_name": "Aban",
      "year": 1405
    }
  },
  "credits_used": 1,
  "day_of_week": "Tuesday",
  "from": "gregorian",
  "gregorian": "2026-11-03",
  "julian_day": 2461349
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/calendar/calendar-conversion-api/?offering=d3ad050d-3023-4cfd-b76e-1e1ecae7072b

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
