Api Endpoint

AIPayGen

Date math agents get wrong: days and business days between two dates (skipping weekends and a country's nationwide public holidays, looked up for the start and end year), add or subtract days or business days, and facts about a date (weekday, ISO week, quarter, day of year, leap year).

Open interactive test console

Offering

Provider
aipaygen.com
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://aipaygen.com/v1/date_calc
MIME type
application/json
First seen
2026-11-16T17:39:40.763Z
Last seen
Tags
Utility, Data, developer

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": "0xebA22e8CD05Cb72A2F913099D6cCA666DD6D35B0"
  }
]

Observed health

Status
Healthy
Latest latency
55 ms
Average latency
445 ms
HTTP status
402
Last checked
Reachability
100% over 5 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",
        "HEAD",
        "DELETE"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "op": {
          "type": "string",
          "enum": [
            "diff",
            "add_days",
            "add_business_days",
            "info"
          ],
          "description": "\"diff\", \"add_days\", \"add_business_days\" or \"info\"."
        },
        "date": {
          "type": "string",
          "description": "Start date, YYYY-MM-DD."
        },
        "end_date": {
          "description": "End date for diff, YYYY-MM-DD.",
          "type": "string"
        },
        "days": {
          "description": "Days to add (negative to subtract).",
          "type": "integer",
          "minimum": -36500,
          "maximum": 36500
        },
        "country": {
          "description": "Skip this country's public holidays in business-day math, e.g. \"US\".",
          "type": "string",
          "minLength": 2,
          "maxLength": 2
        }
      },
      "required": [
        "op",
        "date"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object"
    }
  },
  "required": [
    "type"
  ]
}