# Recurrence Rules (RRULE) - Next Occurrence

> Recurrence Rules (RRULE) - Next Occurrence 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 first occurrence of an iCalendar RRULE strictly after a given date-time, respecting EXDATE exclusions and a fixed UTC offset.

## Facts

- Endpoint: GET https://recurrence-rules.x402tookit.com/next-occurrence?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-next-occurrence-7790638b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2MSBR76ejvXDdVYyht7Nl

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-next-occurrence-7790638b
```

Example prompt: My recurring meeting uses RRULE FREQ=MONTHLY;BYDAY=2TU and starts 2027-01-12T09:00:00 — when is the first occurrence strictly after March 15, 2027, skipping April 13 (EXDATE=2027-04-13T09:00:00)?

## When to prefer this

Use this endpoint when you need to find exactly the next single occurrence of a recurring iCalendar event after a specific moment, especially when you need EXDATE exclusion support and fixed UTC offset handling. Prefer this over manual date arithmetic or local calendar libraries when dealing with complex RRULE patterns like Nth weekday of month. It is ideal for scheduling agents, calendar automation, and subscription billing logic.

## Known failure modes

- Invalid or malformed RRULE string returns an error or warning list
- dtstart not matching the rule pattern may be flagged with dtstartMatchesRule=false
- No future occurrence found (e.g. RRULE has an ending COUNT or UNTIL already passed) returns null for next
- Invalid offsetMinutes outside -840 to 840 range may cause a validation error
- Malformed EXDATE entries may be ignored or flagged in notChecked array

## How this service works

First occurrence of an iCalendar RRULE strictly after a given date-time, honoring EXDATE and a fixed UTC offset.

## Output

Returns a JSON object containing the next occurrence as ISO, UTC, and local date-time strings along with the weekday name, a human-readable rule summary, verdict, reasons, number of occurrences scanned, applied UTC offset, whether dtstart matches the rule, and any degraded/disclaimer flags.

## 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": [
      "rrule",
      "dtstart",
      "after"
     ],
     "properties": {
      "after": {
       "type": "string",
       "description": "Find the first occurrence after this local date-time (Z or +hh:mm converts via offsetMinutes)"
      },
      "rrule": {
       "type": "string",
       "description": "RRULE value, e.g. FREQ=MONTHLY;BYDAY=2TU"
      },
      "exdate": {
       "type": "string",
       "description": "Comma list of dates or date-times to exclude"
      },
      "dtstart": {
       "type": "string",
       "description": "First instance, local time: 2027-01-12T09:00:00"
      },
      "offsetMinutes": {
       "type": "integer",
       "description": "Fixed UTC offset in minutes, -840 to 840 (default 0)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "next": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "iso": {
         "type": [
          "null",
          "string"
         ]
        },
        "utc": {
         "type": [
          "null",
          "string"
         ]
        },
        "local": {
         "type": [
          "null",
          "string"
         ]
        },
        "weekday": {
         "type": [
          "null",
          "string"
         ]
        }
       }
      },
      "rule": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "scanned": {
       "type": [
        "null",
        "number"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/recurrence-rules-rrule-next-occurrence-7790638b/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)
