South Star

RRULE Recurring Dates ICS Calendar API

Free tier included · Tools
Expand RFC 5545 RRULE strings, parse ICS files, calculate cron schedules, and handle business days.

The RRULE Recurring Dates Engine is a robust calendar and scheduling toolkit designed for developers building booking systems, calendar apps, subscription billing engines, and automation platforms. Built on top of `python-dateutil`, `recurring-ical-events`, and `pebble`, it removes the complexity of dealing with RFC 5545 recurrence rules, timezone shifts across daylight saving changes, and calendar file parsing. Beyond standard RRULE expansion, it features advanced endpoints for parsing and building `.ics` files, computing free/busy windows, expanding rrulesets with `EXDATE` and `RDATE`, validating and calculating next run-times for cron expressions, and adding or subtracting business days with custom weekends and holidays.

Execution is sandboxed in pebble worker processes with strict time limits (e.g. 2s for expansions, 5s for ICS parsing) to prevent runaway calculations on infinite or malformed rules.

Honest limits: RRULE expansions return a maximum of 100 occurrences per request, rules cannot exceed 500 characters, cron and rule queries are restricted to valid ISO-8601 datetimes, and ICS file uploads are capped at 512 KB with a maximum of 200 events processed per request. The service is completely stateless and performs no persistent logging or database storage.

Endpoints

MethodPathWhat it does
GET/expandExpand an RFC 5545 RRULE string into the next N occurrence datetimes, starting from an ISO-8601 datetime with optional IANA timezone support.
GET/validateValidate an RRULE string and verify its syntax and structure.
POST/ics-parseParse an uploaded .ics calendar file into structured JSON containing events with summary, start, end, location, and recurrence rules.
POST/ics-buildBuild and return a valid .ics calendar file string from a JSON payload of events.
POST/ics-freebusyScan an ICS file or inline event list against a time window to compute free/busy availability intervals.
GET/expand/fullExpand an RRULE with support for EXDATE and RDATE lists (RFC 5545 rruleset) and per-occurrence UTC offset reporting.
GET/cron/validateCheck whether a 5- or 6-field cron expression (including optional @macros like @daily) is valid.
GET/cron/nextCalculate the next N run times for a cron expression after a specified start datetime.
GET/describeGenerate a human-readable, plain-English description of what an RRULE does.
GET/business-daysAdd or subtract N business days from a start date, with configurable weekend days and holiday exclusions.

Quick start

curl -X GET "https://rrule.p.rapidapi.com/expand?rule=FREQ%3DWEEKLY%3BYDAY%3DMO%2CWE&start=2026-01-01&count=10" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: rrule.p.rapidapi.com"

FAQ

What is the maximum number of occurrences returned per expansion?

Up to 100 occurrences per request (`count` parameter between 1 and 100).

Are my calendar files or event details stored anywhere?

No. The service is entirely stateless. Uploaded `.ics` files and query parameters are processed in memory and discarded immediately.

How does the engine handle infinite or poorly constructed rules?

Execution runs inside isolated worker processes with strict time caps (2 seconds for rule expansion, 5 seconds for ICS parsing) to prevent resource exhaustion or hanging requests.

Can I handle custom work weeks and holidays for business day calculations?

Yes. The `/business-days` endpoint accepts custom weekend configurations (e.g. `5,6` for Saturday/Sunday) and a list of holiday dates to skip.

Try RRULE Recurring Dates ICS Calendar free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs