{"uid":"cap_2MSBR76ejvXDdVYyht7Nl","slug":"recurrence-rules-rrule-next-occurrence-7790638b","name":"Recurrence Rules (RRULE) - Next Occurrence","description":"First occurrence of an iCalendar RRULE strictly after a given date-time, honoring EXDATE and a fixed UTC offset.","url":"https://recurrence-rules.x402tookit.com/next-occurrence?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"utcOffsetMinutes":{"type":["null","number"]},"dtstartMatchesRule":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L7TKJRnWE9XADXYPmNAqt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the first occurrence of an iCalendar RRULE strictly after a given date-time, respecting EXDATE exclusions and a fixed UTC offset.","exampleAgentPrompt":"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)?","exampleUseCases":[{"title":"Next monthly billing cycle date","prompt":"I have a subscription that recurs on the first Monday of every month, starting 2025-01-06T00:00:00 with RRULE FREQ=MONTHLY;BYDAY=1MO — what is the next billing date after July 20, 2025?"},{"title":"Skip holiday for recurring standup","prompt":"Our team standup follows FREQ=WEEKLY;BYDAY=MO,WE,FR starting 2025-09-01T10:00:00, but we're excluding 2025-11-27T10:00:00 (Thanksgiving). What is the next standup after November 26, 2025?"},{"title":"Next scheduled job run after failure","prompt":"My cron-like job uses RRULE FREQ=DAILY;INTERVAL=3 starting 2025-06-01T06:00:00 and my last successful run was June 10 at 06:00 UTC. When is the next scheduled run after June 10, 2025?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T00:32:03.771Z","isFirstParty":false,"canonicalSlug":"recurrence-rules-rrule-next-occurrence-7790638b"}