{
  "x402Version": 2,
  "id": 36317,
  "slug": "36317",
  "resource": "https://api.duoleads.com/v1/time/calendar",
  "description": "Convert a Gregorian date to other calendar systems: Islamic (both the tabular civil calendar and the Umm al-Qura variant), Hebrew, Japanese imperial era, Republic of China, Buddhist and Persian. Also computes Easter Sunday for a year in both the Gregorian and Julian reckonings. Uses the calendar support built into the runtime, with the algorithm named in every response.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "algorithm": {
                "type": "string"
              },
              "calendars": {
                "additionalProperties": {
                  "properties": {
                    "algorithm": {
                      "type": "string"
                    },
                    "day": {
                      "type": "integer"
                    },
                    "era": {
                      "type": "string"
                    },
                    "formatted": {
                      "type": "string"
                    },
                    "month": {
                      "type": "integer"
                    },
                    "month_name": {
                      "type": "string"
                    },
                    "year": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "month_name",
                    "day",
                    "era",
                    "formatted",
                    "algorithm"
                  ],
                  "type": "object"
                },
                "description": "keyed by caller-chosen names",
                "type": "object"
              },
              "date": {
                "type": "string"
              },
              "gregorian": {
                "type": "string"
              },
              "gregorian_date": {
                "type": "string"
              },
              "julian_date": {
                "type": "string"
              },
              "rite": {
                "type": "string"
              },
              "unavailable": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "keyed by caller-chosen names",
                "type": "object"
              },
              "year": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/time/calendar"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "date": "2026-09-28",
            "to": "islamic,hebrew,japanese"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "calendars": {
                "hebrew": {
                  "algorithm": "Hebrew calendar (months numbered from Tishri = 1)",
                  "day": 17,
                  "era": "AM",
                  "formatted": "17 Tishri 5787",
                  "month": 1,
                  "month_name": "Tishri",
                  "year": 5787
                },
                "islamic": {
                  "algorithm": "tabular civil (islamic-civil)",
                  "day": 15,
                  "era": "AH",
                  "formatted": "Rabiʻ II 15, 1448 AH",
                  "month": 4,
                  "month_name": "Rabiʻ II",
                  "year": 1448
                },
                "japanese": {
                  "algorithm": "Japanese imperial eras on the Gregorian calendar",
                  "day": 28,
                  "era": "Reiwa",
                  "formatted": "September 28, 8 Reiwa",
                  "month": 9,
                  "month_name": "September",
                  "year": 8
                }
              },
              "gregorian": "2026-09-28"
            },
            "meta": {
              "computed_at": "2026-09-28T12:00:00.000Z",
              "deterministic": true,
              "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
              "price_usd": "0.05",
              "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
            },
            "ok": true,
            "route": "/v1/time/calendar",
            "version": "1.0.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "date": {
                    "description": "Gregorian date YYYY-MM-DD. Required when op=convert.",
                    "maxLength": 32,
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "op": {
                    "default": "convert",
                    "description": "convert (default) a Gregorian date, or easter for a year.",
                    "enum": [
                      "convert",
                      "easter"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "rite": {
                    "default": "western",
                    "description": "Easter reckoning: western (default) or eastern.",
                    "enum": [
                      "western",
                      "eastern"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "to": {
                    "description": "Comma-separated calendar ids: islamic, islamic-umalqura, hebrew, japanese, roc, buddhist, persian. Default all.",
                    "maxLength": 256,
                    "type": "string"
                  },
                  "year": {
                    "description": "Year for op=easter, 326-9999.",
                    "maxLength": 64,
                    "pattern": "^[+-]?\\d+$",
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "algorithm": {
                        "type": "string"
                      },
                      "calendars": {
                        "additionalProperties": {
                          "properties": {
                            "algorithm": {
                              "type": "string"
                            },
                            "day": {
                              "type": "integer"
                            },
                            "era": {
                              "type": "string"
                            },
                            "formatted": {
                              "type": "string"
                            },
                            "month": {
                              "type": "integer"
                            },
                            "month_name": {
                              "type": "string"
                            },
                            "year": {
                              "type": "integer"
                            }
                          },
                          "required": [
                            "year",
                            "month",
                            "month_name",
                            "day",
                            "era",
                            "formatted",
                            "algorithm"
                          ],
                          "type": "object"
                        },
                        "description": "keyed by caller-chosen names",
                        "type": "object"
                      },
                      "date": {
                        "type": "string"
                      },
                      "gregorian": {
                        "type": "string"
                      },
                      "gregorian_date": {
                        "type": "string"
                      },
                      "julian_date": {
                        "type": "string"
                      },
                      "rite": {
                        "type": "string"
                      },
                      "unavailable": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "keyed by caller-chosen names",
                        "type": "object"
                      },
                      "year": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/time/calendar"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "time",
    "calendar",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:51:25.452Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:51:25.317Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "date": "2026-09-28",
              "to": "islamic,hebrew,japanese"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "calendars": {
                  "hebrew": {
                    "algorithm": "Hebrew calendar (months numbered from Tishri = 1)",
                    "day": 17,
                    "era": "AM",
                    "formatted": "17 Tishri 5787",
                    "month": 1,
                    "month_name": "Tishri",
                    "year": 5787
                  },
                  "islamic": {
                    "algorithm": "tabular civil (islamic-civil)",
                    "day": 15,
                    "era": "AH",
                    "formatted": "Rabiʻ II 15, 1448 AH",
                    "month": 4,
                    "month_name": "Rabiʻ II",
                    "year": 1448
                  },
                  "japanese": {
                    "algorithm": "Japanese imperial eras on the Gregorian calendar",
                    "day": 28,
                    "era": "Reiwa",
                    "formatted": "September 28, 8 Reiwa",
                    "month": 9,
                    "month_name": "September",
                    "year": 8
                  }
                },
                "gregorian": "2026-09-28"
              },
              "meta": {
                "computed_at": "2026-09-28T12:00:00.000Z",
                "deterministic": true,
                "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
                "price_usd": "0.05",
                "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
              },
              "ok": true,
              "route": "/v1/time/calendar",
              "version": "1.0.0"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "date": {
                      "description": "Gregorian date YYYY-MM-DD. Required when op=convert.",
                      "maxLength": 32,
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "op": {
                      "default": "convert",
                      "description": "convert (default) a Gregorian date, or easter for a year.",
                      "enum": [
                        "convert",
                        "easter"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "rite": {
                      "default": "western",
                      "description": "Easter reckoning: western (default) or eastern.",
                      "enum": [
                        "western",
                        "eastern"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "to": {
                      "description": "Comma-separated calendar ids: islamic, islamic-umalqura, hebrew, japanese, roc, buddhist, persian. Default all.",
                      "maxLength": 256,
                      "type": "string"
                    },
                    "year": {
                      "description": "Year for op=easter, 326-9999.",
                      "maxLength": 64,
                      "pattern": "^[+-]?\\d+$",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "algorithm": {
                          "type": "string"
                        },
                        "calendars": {
                          "additionalProperties": {
                            "properties": {
                              "algorithm": {
                                "type": "string"
                              },
                              "day": {
                                "type": "integer"
                              },
                              "era": {
                                "type": "string"
                              },
                              "formatted": {
                                "type": "string"
                              },
                              "month": {
                                "type": "integer"
                              },
                              "month_name": {
                                "type": "string"
                              },
                              "year": {
                                "type": "integer"
                              }
                            },
                            "required": [
                              "year",
                              "month",
                              "month_name",
                              "day",
                              "era",
                              "formatted",
                              "algorithm"
                            ],
                            "type": "object"
                          },
                          "description": "keyed by caller-chosen names",
                          "type": "object"
                        },
                        "date": {
                          "type": "string"
                        },
                        "gregorian": {
                          "type": "string"
                        },
                        "gregorian_date": {
                          "type": "string"
                        },
                        "julian_date": {
                          "type": "string"
                        },
                        "rite": {
                          "type": "string"
                        },
                        "unavailable": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "keyed by caller-chosen names",
                          "type": "object"
                        },
                        "year": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/time/calendar"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "algorithm": "string",
        "calendars": {},
        "date": "string",
        "gregorian": "string",
        "gregorian_date": "string",
        "julian_date": "string",
        "rite": "string",
        "unavailable": {},
        "year": 0
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}