OpenAny
Get API keyAPI Key
APIData

calendar logo
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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Calendar Conversion API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Calendar Conversion API

Calendar Conversion API

date supplies a Gregorian YYYY-MM-DD date and defaults to today. to is a comma-separated supported calendar list. For a non-Gregorian source, set calendar with year, month and day; Hebrew months use civil order from Tishri, and leap_month=1 identifies a Chinese or Korean leap month. Keep the resolved calendar variant and era with numeric dates.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Choose the lookup or search inputs described below. Optional: date, to, calendar, year, month, day, leap_month. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · Calendar conversion API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Calendar context: Retain the requested date range and returned source context when displaying calendar information.
  • Follow-up calculations: Use explicit source conventions and the returned identifiers or dates when planning a follow-up calculation.

Returned Data

Field Meaning
gregorian Resolved Gregorian date
from Source calendar
day_of_week Weekday label
julian_day Julian day number
conversions Calendar-keyed conversion records

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/calendar/v1/convert \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode date=2026-11-03 \
  --data-urlencode output=json

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Calendar Conversion API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (12)
Gregorian date (YYYY-MM-DD); default today.
Comma-separated target calendars: hebrew, persian, islamic, islamic-civil, chinese, dangi, indian, ethiopic, coptic, buddhist, japanese, roc, gregorian (default: the main ones).
Convert from this calendar instead (with year, month, day).
Year in that calendar.
Month number in that calendar (Hebrew: civil order from Tishri).
Day of the month.
1 for a Chinese or Korean leap month.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
Calendar conversion API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/calendar/v1/convert
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
dateURL query parametersquerystringNo

Gregorian date (YYYY-MM-DD); default today.

toURL query parametersquerystringNo

Comma-separated target calendars: hebrew, persian, islamic, islamic-civil, chinese, dangi, indian, ethiopic, coptic, buddhist, japanese, roc, gregorian (default: the main ones).

calendarURL query parametersquerystringNo

Convert from this calendar instead (with year, month, day).

yearURL query parametersqueryintegerNo

Year in that calendar.

monthURL query parametersqueryintegerNo

Month number in that calendar (Hebrew: civil order from Tishri).

dayURL query parametersqueryintegerNo

Day of the month.

leap_monthURL query parametersquerystringNo

1 for a Chinese or Korean leap month.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • conversionsobject
    • buddhistobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • chineseobject
      • calendarstring
      • dayinteger
      • eranull
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • related_gregorian_yearinteger
      • yearinteger
    • copticobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • ethiopicobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • hebrewobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • indianobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • islamicobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • japaneseobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
    • persianobject
      • calendarstring
      • dayinteger
      • erastring
      • formattedstring
      • formatted_nativestring
      • monthinteger
      • month_namestring
      • yearinteger
  • credits_usedinteger
  • day_of_weekstring
  • fromstring
  • gregorianstring
  • julian_dayinteger

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits used$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Official documentation response

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 12

    Review these request fields before running. Keep the published provider and request method unchanged.

    date
    Gregorian date (YYYY-MM-DD); default today.
    to
    Comma-separated target calendars: hebrew, persian, islamic, islamic-civil, chinese, dangi, indian, ethiopic, coptic, buddhist, japanese, roc, gregorian (default: the main ones).
    calendar
    Convert from this calendar instead (with year, month, day).
    year
    Year in that calendar.
    month
    Month number in that calendar (Hebrew: civil order from Tishri).
    day
    Day of the month.
    leap_month
    1 for a Chinese or Korean leap month.
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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
    }

Common questions

Can I convert from a non-Gregorian date?

Yes. Set calendar and year, month and day rather than only date.

How do I choose target calendars?

Pass supported names in to as a comma-separated list.

How are Hebrew months numbered?

In civil order from Tishri.

How do I represent a Chinese or Korean leap month?

Set leap_month=1 and retain the calendar and era metadata in the result.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use Calendar Conversion API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.