# Recurrence Rules (RRULE) – Nth Weekday of Month

> Recurrence Rules (RRULE) – Nth Weekday of Month is a paid API for AI agents from recurrence-rules.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-22).

Returns the dates of the Nth (or last) occurrence of a specified weekday in each month of a given year, noting months where that occurrence doesn't exist.

## Facts

- Endpoint: GET https://recurrence-rules.x402tookit.com/nth-weekday-of-month?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/recurrence-rules-rrule-nth-weekday-of-month-7710378e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_54L8qUC2977xsZOwbILT0

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 recurrence-rules-rrule-nth-weekday-of-month-7710378e
```

Example prompt: What are the dates of the second Tuesday of every month in 2027, and let me know which months don't have one?

## When to prefer this

Use this endpoint when you need to enumerate the exact calendar dates of a recurring weekday pattern within a year (e.g., 'second Tuesday of every month'), especially when you also want to know which months lack that occurrence. Prefer this over general RRULE parsers when you want human-readable output with per-month dates and an auto-generated RRULE equivalent string.

## Known failure modes

- Missing required parameters (weekday, nth, year) returns a validation error
- nth value outside -5 to 5 or 0 returns an error
- year outside 1000–9999 returns a range error
- Invalid weekday name/code returns an error
- month outside 1–12 returns a validation error
- Some months may have no Nth occurrence (e.g., no 5th Tuesday) — these are listed in skippedMonths rather than as an error

## How this service works

Dates of the Nth weekday (or last) of each month in a year, e.g. second Tuesday of 2027; months without one are listed.

## Output

Returns a structured response containing: the list of matching dates per month (with date string, month name, weekday, and day-of-month), any months skipped because the Nth weekday doesn't exist, an equivalent RRULE string, a plain-language summary, and metadata like year, nth value, and weekday requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "weekday",
      "nth",
      "year"
     ],
     "properties": {
      "nth": {
       "type": "integer",
       "description": "1 to 5 for first..fifth, or -1 to -5 for last, second-to-last..."
      },
      "year": {
       "type": "integer",
       "description": "Year, 1000 to 9999"
      },
      "month": {
       "type": "integer",
       "description": "Only this month, 1 to 12 (default all twelve)"
      },
      "weekday": {
       "type": "string",
       "description": "Day name or code: Tuesday, Tue, TU"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "nth": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "year": {
       "type": [
        "null",
        "number"
       ]
      },
      "dates": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": [
           "null",
           "string"
          ]
         },
         "month": {
          "type": [
           "null",
           "string"
          ]
         },
         "weekday": {
          "type": [
           "null",
           "string"
          ]
         },
         "dayOfMonth": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "weekday": {
       "type": [
        "null",
        "string"
       ]
      },
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/recurrence-rules-rrule-nth-weekday-of-month-7710378e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from recurrence-rules.x402tookit.com](https://www.zero.xyz/host/recurrence-rules.x402tookit.com/llms.txt)
