# ISO Week Number

> ISO Week Number is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-03).

Returns the ISO 8601 week number, week year, and day-of-year for a given date.

## Facts

- Endpoint: GET https://api.gadgethumans.com/week-number?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iso-week-number-bca953ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lZiKU8d8XtxC0_t4fWkbR

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 iso-week-number-bca953ff
```

Example prompt: What ISO 8601 week number, week year, and day of year does 2024-03-15 fall on?

## When to prefer this

Use this endpoint when you need a fast, authoritative ISO 8601 week number calculation without setting up local date libraries. It is especially valuable when ISO week year (which can differ from the calendar year for dates near Jan 1) is important, and when you need the day-of-year alongside the week number in a single call.

## Known failure modes

- Missing or invalid date format returns an error — date should be provided as a parseable string such as YYYY-MM-DD
- Ambiguous or malformed dates may be rejected or misinterpreted
- No response if the API is unreachable or the x402 payment fails

## How this service works

Return the ISO 8601 week number, week year and day of year for a date. Pure CPU, instant.

## Output

Returns a JSON object containing the ISO 8601 week number (1–53), the ISO week year (which may differ from the calendar year near year boundaries), and the day of year (1–366) for the requested date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Date (default today)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iso-week-number-bca953ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
