# Delx Commerce — Is Leap Year

> Delx Commerce — Is Leap Year is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Determines whether a given Gregorian calendar year is a leap year, returning a boolean result for a small per-call USDC micropayment.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/is-leap-year?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-is-leap-year-cd195e05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F_u5E8UST0VDBYoOWCTOO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-is-leap-year-cd195e05 -d '<json body>'
```

Example prompt: Is 2032 a leap year?

## When to prefer this

Use this endpoint when you need a lightweight, trustless, pay-per-call leap year check with verifiable delivery over USDC on Base or Solana — ideal for AI agents that need calendar correctness without managing an API key or subscription, and where a single authoritative yes/no answer is sufficient.

## Known failure modes

- Year out of range (below 1 or above 9999) returns a validation error
- Non-integer or missing year field returns a 400 bad request
- Payment failure or insufficient USDC balance blocks the call via x402 protocol
- Network timeout returns no result

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the queried year, a boolean field `is_leap_year` indicating whether it is a leap year, and a schema version string (e.g. `delx/is-leap-year/v1`).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "year": {
   "type": "integer",
   "maximum": 9999,
   "minimum": 1,
   "description": "Gregorian calendar year."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2028,
  "schema": "delx/is-leap-year/v1",
  "is_leap_year": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-is-leap-year-cd195e05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
