Api Endpoint

SiteCheck

Date and time calculations in pure code. op=diff: calendar years, months and days between two dates, and the total days. op=add or subtract: move a date by years, months, weeks, days, hours or minutes (month ends are clamped). op=info: weekday, ISO week, day of year, quarter, and age from birthDate. op=tz: a local date-time in one IANA time zone shown in another. Impossible dates are a 400 with the reason.

Open interactive test console

Offering

Provider
api.sitecheck-api.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
General Utilities
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.sitecheck-api.workers.dev/api/date/calc
MIME type
application/json
First seen
2026-10-16T01:51:02.144Z
Last seen
Tags
date calculator, date difference, add days, age calculator, iso week, time zone converter, day of week

Payment pricing

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

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.002 USDC
Atomic price: 2000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
2000 atomic units
Atomic price: 2000 · Network: eip155:5042 · Asset: 0x3600000000000000000000000000000000000000 · Scheme: exact
Payment option 4
0.002 USDC
Atomic price: 2000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 5
0.002 USDC
Atomic price: 2000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 6
0.002 USDC
Atomic price: 2000 · Network: eip155:143 · Asset: USDC · Scheme: exact
Payment option 7
0.002 USDC
Atomic price: 2000 · Network: eip155:480 · Asset: USDC · Scheme: exact
Payment option 8
0.002 USDC
Atomic price: 2000 · Network: eip155:10 · Asset: USDC · Scheme: exact
Payment option 9
2000 atomic units
Atomic price: 2000 · Network: eip155:42220 · Asset: 0xcebA9300f2b948710d2653dD7B07f33A8B32118C · Scheme: exact
Payment option 10
20000 atomic units
Atomic price: 20000 · Network: stellar:pubnet · Asset: CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75 · Scheme: exact
Payment option 11
1604 atomic units
Atomic price: 1604 · Network: xrpl:0 · Asset: XRP · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "2000",
    "payTo": "J8vnmBx4pS1X7UUBTfz1yWBKiw69Dj2yRGRHDaXBRdhR"
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:143",
    "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:480",
    "asset": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:10",
    "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "eip155:42220",
    "asset": "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
    "amount": "2000",
    "payTo": "0xb8491F953e6860D3b5840b73c60883Ff099ceAfA"
  },
  {
    "scheme": "exact",
    "network": "stellar:pubnet",
    "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
    "amount": "20000",
    "payTo": "GBIX2M7HNL2G2VYU5KZ446OSN55ZWHS3WBEUP4JTLS6R34VXIGTDOAFI"
  },
  {
    "scheme": "exact",
    "network": "xrpl:0",
    "asset": "XRP",
    "amount": "1604",
    "payTo": "rDxNZCDfLxUzeMWGGwsY3sjQT8eoZCf8UJ"
  }
]

Observed health

Status
Healthy
Latest latency
105 ms
Average latency
540 ms
HTTP status
402
Last checked
Reachability
100% over 11 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": {
        "op": {
          "type": "string",
          "description": "diff, add, subtract, info or tz"
        },
        "from": {
          "type": "string",
          "description": "diff: start date YYYY-MM-DD; tz: local date-time YYYY-MM-DDTHH:MM"
        },
        "to": {
          "type": "string",
          "description": "diff: end date YYYY-MM-DD"
        },
        "date": {
          "type": "string",
          "description": "add, subtract, info: date YYYY-MM-DD"
        },
        "amount": {
          "type": "string",
          "description": "add, subtract: whole number"
        },
        "unit": {
          "type": "string",
          "description": "add, subtract: years, months, weeks, days (default), hours or minutes"
        },
        "birthDate": {
          "type": "string",
          "description": "info: date of birth YYYY-MM-DD, for the age"
        },
        "asOf": {
          "type": "string",
          "description": "info: the date the age is counted to, default today (UTC)"
        },
        "datetime": {
          "type": "string",
          "description": "tz: local date-time like 2026-10-15T09:30"
        },
        "from_zone": {
          "type": "string",
          "description": "tz: IANA zone of the given time, e.g. Europe/Berlin"
        },
        "to_zone": {
          "type": "string",
          "description": "tz: IANA zone to show, e.g. America/New_York"
        }
      },
      "required": [
        "op"
      ]
    }
  },
  "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": {
            "amount": {
              "description": "add, subtract: whole number",
              "type": "string"
            },
            "asOf": {
              "description": "info: the date the age is counted to, default today (UTC)",
              "type": "string"
            },
            "birthDate": {
              "description": "info: date of birth YYYY-MM-DD, for the age",
              "type": "string"
            },
            "date": {
              "description": "add, subtract, info: date YYYY-MM-DD",
              "type": "string"
            },
            "datetime": {
              "description": "tz: local date-time like 2026-10-15T09:30",
              "type": "string"
            },
            "from": {
              "description": "diff: start date YYYY-MM-DD; tz: local date-time YYYY-MM-DDTHH:MM",
              "type": "string"
            },
            "from_zone": {
              "description": "tz: IANA zone of the given time, e.g. Europe/Berlin",
              "type": "string"
            },
            "op": {
              "description": "diff, add, subtract, info or tz",
              "type": "string"
            },
            "to": {
              "description": "diff: end date YYYY-MM-DD",
              "type": "string"
            },
            "to_zone": {
              "description": "tz: IANA zone to show, e.g. America/New_York",
              "type": "string"
            },
            "unit": {
              "description": "add, subtract: years, months, weeks, days (default), hours or minutes",
              "type": "string"
            }
          },
          "required": [
            "op"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}