# WritersLogic Recurrence Expand

> WritersLogic Recurrence Expand is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Expands an RFC 5545 RRULE or crontab expression into up to 366 concrete occurrences within a time window, including UTC instants, DST flags, exclusions, plain-English summaries, and optional collision detection with a second rule.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/recurrence-expand?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-recurrence-expand-f7f6f2ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x88FN1uR5S38rH11JBPqX

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 writerslogic-recurrence-expand-f7f6f2ba -d '<json body>'
```

Example prompt: Expand this RRULE for me — DTSTART;TZID=America/Chicago:20240101T090000 with RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=20 — and show me all the occurrence dates with their UTC times, noting any DST gaps or overlaps, up to 20 results.

## When to prefer this

Use this endpoint when an AI agent needs to materialize abstract recurrence rules (iCalendar RRULE or crontab) into concrete dates without reading the system clock, especially when DST correctness, exclusion dates, plain-English summaries, or cross-rule collision detection are needed. Prefer it over manual date arithmetic or generic LLM reasoning when RFC 5545 compliance and deterministic UTC instants are required.

## Known failure modes

- Unsupported FREQ values (hourly, minutely) or extensions (BYHOUR, BYYEARDAY, BYWEEKNO, RDATE, EXRULE, Quartz cron, @macros) return an 'unsupported' error
- Invalid RRULE syntax or malformed cron expression returns a parse error
- Missing required 'from' for cron rules returns a validation error
- Missing timeZone for cron rules returns a validation error
- Window produces zero valid occurrences after EXDATE removal returns an empty list
- Requesting more than 366 occurrences is rejected by schema validation

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a list of up to 366 concrete occurrences, each with its local date-time, UTC instant, DST gap or overlap flags, and optionally which occurrences collide with a second rule. Also includes a plain-English reading of the recurrence rule and skips invalid dates (e.g. Feb 30) and caller-supplied blackout dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$",
   "maxLength": 30,
   "description": "Local end of the window, inclusive."
  },
  "from": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$",
   "maxLength": 30,
   "description": "Local start of the output window; required for cron, default DTSTART for rrule."
  },
  "kind": {
   "enum": [
    "rrule",
    "cron"
   ],
   "type": "string"
  },
  "rule": {
   "type": "string",
   "maxLength": 800,
   "description": "rrule: 'DTSTART;TZID=America/New_York:19970902T090000\\nRRULE:FREQ=DAILY;COUNT=10\\nEXDATE;TZID=America/New_York:19970903T090000' or just 'FREQ=...' with dtstart. cron: '*/15 9-17 * * 1-5' (dom and dow both restricted match if either does)."
  },
  "limit": {
   "type": "integer",
   "maximum": 366,
   "minimum": 1,
   "description": "Maximum occurrences returned (default 20)."
  },
  "other": {
   "type": "object",
   "required": [
    "kind",
    "rule"
   ],
   "properties": {
    "kind": {
     "enum": [
      "rrule",
      "cron"
     ],
     "type": "string"
    },
    "rule": {
     "type": "string",
     "maxLength": 800
    },
    "dtstart": {
     "type": "string",
     "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$",
     "maxLength": 30
    },
    "timeZone": {
     "type": "string",
     "pattern": "^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$",
     "maxLength": 64
    },
    "durationMinutes": {
     "type": "integer",
     "maximum": 43200,
     "minimum": 0
    }
   },
   "description": "A second rule to compare; conflicts are occurrences whose intervals overlap (equal instants when both durations are 0)."
  },
  "dtstart": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$",
   "maxLength": 30,
   "description": "Local DTSTART when the rule text has none."
  },
  "exdates": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 30
   },
   "maxItems": 200,
   "description": "Extra excluded local date-times (YYYY-MM-DDTHH:MM[:SS]) or dates (YYYY-MM-DD, excludes that day)."
  },
  "timeZone": {
   "type": "string",
   "pattern": "^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$",
   "maxLength": 64,
   "description": "IANA zone for local times (required for cron; for rrule unless DTSTART has TZID or Z)."
  },
  "blackouts"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-recurrence-expand-f7f6f2ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
