# 24K Labs Calendar Month Grid

> 24K Labs Calendar Month Grid is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns a month as a structured grid of week rows (Monday or Sunday start), plus the weekday of the 1st, total day count, and leap year flag.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/calendar-month
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-calendar-month-grid-0103e231
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cK8eQwPttg6lUgmONJyQw

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 24k-labs-calendar-month-grid-0103e231 -d '<json body>'
```

Example prompt: Give me the full calendar grid for March 2025 with weeks starting on Monday — I need the week rows, what day the 1st falls on, and the total number of days.

## When to prefer this

Use this endpoint when you need structured calendar data for a specific month — particularly when you need week-row layout (e.g. for rendering calendar UIs), need to know what weekday a month starts on, or want to confirm day counts and leap year status without manual date arithmetic. Prefer it over generic date libraries when operating in a serverless or agent context without access to local computation.

## Known failure modes

- Invalid month value (outside 1–12) returns an error
- Invalid year value returns an error
- Missing required fields (year or month) returns a validation error
- Invalid week-start option returns an error

## How this service works

Return a month as a grid of week rows (weeks start Monday or Sunday), plus the weekday of the 1st, the day count, and whether it is a leap year.

## Output

A JSON response containing: an array of week rows where each row lists the days of that week (with padding for partial weeks), the weekday index of the 1st of the month, the total number of days in the month, and a boolean indicating whether the year is a leap year.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "year": {
   "type": "number"
  },
  "month": {
   "type": "number"
  },
  "first_weekday": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "weeks": [
   [
    0,
    0,
    0,
    0,
    0,
    0,
    1
   ]
  ],
  "days_in_month": 28
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-calendar-month-grid-0103e231/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
