Api Endpoint

x402 Utils

Add or subtract an ISO 8601 duration (P1M, P2W, PT36H) to a date, months clamped to the month's end; or count the days, weeks, calendar months, years, seconds and business days (Monday to Friday, less a country's public holidays) between two dates. Also the weekday, ISO week and day of year.

Open interactive test console

Offering

Provider
utils.kagurazaka.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://utils.kagurazaka.dev/v1/date
MIME type
application/json
First seen
2026-10-25T21:33:42.825Z
Last seen
Tags
date, calendar, business-days, duration

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xF1643BD00D3c071d9a0c12A4E7d3a17e6E19f8a5"
  }
]

Observed health

Status
Healthy
Latest latency
51 ms
Average latency
77 ms
HTTP status
402
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "description": "a date such as 2026-10-25, or an ISO 8601 time"
        },
        "add": {
          "type": "string",
          "description": "an ISO 8601 duration to add, such as P1M10D"
        },
        "subtract": {
          "type": "string",
          "description": "an ISO 8601 duration to subtract"
        },
        "end": {
          "type": "string",
          "description": "a second date, to count the time between"
        },
        "country": {
          "type": "string",
          "description": "ISO country code whose public holidays are not business days, such as JP"
        }
      },
      "required": [
        "start"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "add": {
              "description": "an ISO 8601 duration to add, such as P1M10D",
              "type": "string"
            },
            "country": {
              "description": "ISO country code whose public holidays are not business days, such as JP",
              "type": "string"
            },
            "end": {
              "description": "a second date, to count the time between",
              "type": "string"
            },
            "start": {
              "description": "a date such as 2026-10-25, or an ISO 8601 time",
              "type": "string"
            },
            "subtract": {
              "description": "an ISO 8601 duration to subtract",
              "type": "string"
            }
          },
          "required": [
            "start"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "between": {},
            "start": {}
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}