{
"tzid": "America/New_York",
"dtstart": "2026-02-23T09:00:00",
"rrule": "FREQ=WEEKLY;BYDAY=MO;COUNT=4",
"text": "every week on Monday for 4 times",
"all_day": false,
"count": 4,
"truncated": false,
"occurrences": [
{
"local": "2026-02-23T09:00:00",
"utc": "2026-02-23T14:00:00Z",
"offset": "-05:00"
},
{
"local": "2026-03-02T09:00:00",
"utc": "2026-03-02T14:00:00Z",
"offset": "-05:00"
},
{
"local": "2026-03-09T09:00:00",
"utc": "2026-03-09T13:00:00Z",
"offset": "-04:00"
},
{
"local": "2026-03-16T09:00:00",
"utc": "2026-03-16T13:00:00Z",
"offset": "-04:00"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41461/expand+an+rrule+query-string+form' --header 'Authorization: Bearer YOUR_API_KEY'
{
"tzid": "America/New_York",
"dtstart": "2026-02-23T09:00:00",
"rrule": "FREQ=WEEKLY;BYDAY=MO;COUNT=4",
"text": "every week on Monday for 4 times",
"all_day": false,
"count": 4,
"truncated": false,
"occurrences": [
{
"local": "2026-02-23T09:00:00",
"utc": "2026-02-23T14:00:00Z",
"offset": "-05:00"
},
{
"local": "2026-03-02T09:00:00",
"utc": "2026-03-02T14:00:00Z",
"offset": "-05:00"
},
{
"local": "2026-03-09T09:00:00",
"utc": "2026-03-09T13:00:00Z",
"offset": "-04:00"
},
{
"local": "2026-03-16T09:00:00",
"utc": "2026-03-16T13:00:00Z",
"offset": "-04:00"
}
]
}
curl --location --request POST 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41462/expand+an+rrule+into+dates+time-zone+and+dst+aware' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"rrule":"FREQ=WEEKLY;BYDAY=MO;COUNT=4","dtstart":"2026-02-23T09:00:00","tzid":"America/New_York"}'
{
"valid": true,
"rrule": "FREQ=MONTHLY;BYDAY=-1FR",
"text": "every month on the last Friday",
"finite": false
}
curl --location --request GET 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41463/validate+an+rrule+and+describe+it+in+plain+english' --header 'Authorization: Bearer YOUR_API_KEY'
{
"valid": true,
"rrule": "FREQ=MONTHLY;BYDAY=-1FR",
"text": "every month on the last Friday",
"finite": false
}
curl --location --request POST 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41464/validate+an+rrule+json+body' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"rrule":"FREQ=MONTHLY;BYDAY=-1FR"}'
{
"ics": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Seed//Recurrence and Calendar API//EN\r\nCALSCALE:GREGORIAN\r\nMETHOD:PUBLISH\r\nX-WR-CALNAME:Team\r\nBEGIN:VTIMEZONE\r\nTZID:America/New_York\r\nBEGIN:DAYLIGHT\r\nDTSTART:20250309T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20251102T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20260308T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20261101T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20270314T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20271107T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20280312T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20281105T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20290311T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20291104T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20300310T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20301103T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20310309T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20311102T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20320314T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20321107T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20330313T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20331106T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20340312T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20341105T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20350311T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20351104T020000\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:20360309T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nUID:4d7aa97d-537a-479c-9f21-10b60ff5ac17@seed-calendar-api\r\nDTSTAMP:20261124T001800Z\r\nDTSTART;TZID=America/New_York:20260302T090000\r\nDTEND;TZID=America/New_York:20260302T091500\r\nRRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10\r\nSUMMARY:Standup\r\nLOCATION:Room 1\r\nEND:VEVENT\r\nBEGIN:VEVENT\r\nUID:54b1f0cf-1550-4bf4-ac12-eb70384e8804@seed-calendar-api\r\nDTSTAMP:20261124T001800Z\r\nDTSTART;VALUE=DATE:20260704\r\nDTEND;VALUE=DATE:20260705\r\nSUMMARY:Independence Day\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
"links": [
{
"title": "Standup",
"google": "https://calendar.google.com/calendar/render?action=TEMPLATE&text=Standup&dates=20260302T140000Z%2F20260302T141500Z&ctz=America%2FNew_York&location=Room+1&recur=RRULE%3AFREQ%3DWEEKLY%3BBYDAY%3DMO%2CWE%2CFR%3BCOUNT%3D10",
"outlook": "https://outlook.live.com/calendar/0/action/compose?subject=Standup&startdt=2026-03-02T14%3A00%3A00Z&enddt=2026-03-02T14%3A15%3A00Z&location=Room+1",
"note": "Outlook web links cannot carry recurrence; use the .ics file for recurring events."
},
{
"title": "Independence Day",
"google": "https://calendar.google.com/calendar/render?action=TEMPLATE&text=Independence+Day&dates=20260704%2F20260705",
"outlook": "https://outlook.live.com/calendar/0/action/compose?subject=Independence+Day&startdt=2026-07-04&enddt=2026-07-05&allday=true"
}
]
}
curl --location --request POST 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41465/create+an+ics+file+plus+add-to-calendar+links' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"calendar_name":"Team","events":[{"title":"Standup","start":"2026-03-02T09:00:00","end":"2026-03-02T09:15:00","tzid":"America/New_York","rrule":"FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10","location":"Room 1"},{"title":"Independence Day","start":"2026-07-04"}]}'
{
"source": {
"url": "https://www.thunderbird.net/media/caldata/autogen/USHolidays.ics",
"cached": false,
"robots": {
"allowed": true,
"rule": null,
"note": "robots.txt returned 404"
}
},
"window": {
"start": "2026-12-01T00:00:00Z",
"end": "2027-01-15T00:00:00Z"
},
"total_in_window": 23,
"truncated": true,
"occurrences": [
{
"uid": "e398c79dbb022098a3cf13d43d8faa5a-2026-al",
"title": "Rosa Parks Day (Alabama)",
"location": null,
"all_day": true,
"start": "2026-12-01",
"end": "2026-12-02",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "e398c79dbb022098a3cf13d43d8faa5a-2026-oh",
"title": "Rosa Parks Day (Ohio)",
"location": null,
"all_day": true,
"start": "2026-12-01",
"end": "2026-12-02",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "b6e99df2aa90f32c71a994ab37818163-2026-wy",
"title": "Pearl Harbor Remembrance Day (Wyoming)",
"location": null,
"all_day": true,
"start": "2026-12-07",
"end": "2026-12-08",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "b6e99df2aa90f32c71a994ab37818163-2026-ak",
"title": "Pearl Harbor Remembrance Day (Alaska)",
"location": null,
"all_day": true,
"start": "2026-12-07",
"end": "2026-12-08",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "6f6363951114f510fc3e5774b2d84de7-2026-de",
"title": "Delaware Day (Delaware)",
"location": null,
"all_day": true,
"start": "2026-12-07",
"end": "2026-12-08",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "3705e97549424c387eddf252fb9f32e5-2026-wy",
"title": "Wyoming Day (Wyoming)",
"location": null,
"all_day": true,
"start": "2026-12-10",
"end": "2026-12-11",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "cf499c9e16bdf03af9a73331dc71c0eb-2026-mi-ks-(partly)-nc-nd-ok-sc-tx-wi-va-(partly)-ky",
"title": "Christmas Eve (MI, KS (partly), NC, ND, OK, SC, TX, WI, VA (partly), KY)",
"location": null,
"all_day": true,
"start": "2026-12-24",
"end": "2026-12-25",
"start_local": null,
"tzid": "floating",
"recurring": false
},
{
"uid": "cf499c9e16bdf03af9a73331dc71c0eb-2026-ar",
"title": "Christmas Eve (Arkansas)",
"location": null,
"all_day": true,
"start": "2026-12-24",
"end": "2026-12-25",
"start_local": null,
"tzid": "floating",
"recurring": false
}
],
"calendar_name": null,
"events_in_feed": 700
}
curl --location --request GET 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41466/expand+a+public+ics+feed+into+event+occurrences+in+a+date+window' --header 'Authorization: Bearer YOUR_API_KEY'
{
"tzid": "America/New_York",
"year": 2026,
"transitions": [
{
"utc": "2026-03-08T07:00:00Z",
"local_before": "2026-03-08T01:59:59",
"local_after": "2026-03-08T03:00:00",
"offset_from": "-05:00",
"offset_to": "-04:00",
"kind": "dst_start"
},
{
"utc": "2026-11-01T06:00:00Z",
"local_before": "2026-11-01T01:59:59",
"local_after": "2026-11-01T01:00:00",
"offset_from": "-04:00",
"offset_to": "-05:00",
"kind": "dst_end"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15436/rrule+time+zone+dst+calendar+api/41467/daylight-saving+transitions+for+an+iana+zone+in+a+year' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 重复规则 时区 夏令时 日历 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
在任意 IANA 时区中展开 RRULE 重复事件,并正确处理夏令时,创建 ICS 文件,还可将公共日历源展开为具体的发生日期
每次出现都包含 `local`,即所请求 IANA 时区中的墙上时钟时间;`utc`,即 ISO 8601 格式的 UTC 时刻;以及 `offset`,即应用的 UTC 偏移量。这样,您就可以在存储或比较明确无歧义的 UTC 值的同时,显示预期的当地时间
验证会返回 `valid`、规范化或提交的 `rrule`、可解释时的简短英文 `text` 描述,以及 `finite`。`finite` 表示规则是否有自然终点,例如 `COUNT` 或 `UNTIL`;没有自然终点的重复规则不属于有限规则
ICS 包含日历元数据、事件定义、重复规则以及所用时区生成的 `VTIMEZONE` 组件。JSON 格式还提供添加到日历的链接,而 `format=ics` 则以 `text/calendar` 格式返回日历,供下载或导入
Feed 结果包含事件的 `uid`、`title`、`location`、`all_day`、`start`、`end`、`start_local`、`tzid` 和 `recurring`。响应还会报告源 URL、缓存状态、robots 决策、请求的时间范围、匹配总数以及结果是否被截断
对于指定的 `tzid` 和年份,它会返回每次转换的 UTC 时刻、变更前后的当地时间、变更前后的偏移量,以及诸如 `dst_start` 或 `dst_end` 之类的 `kind`。这支持时区感知的日程安排和偏移量计算
每次出现都包含给定 IANA 时区的当地壁钟时间、UTC 时刻、UTC 偏移量,以及当时间落在春季向前跳时的间隙或秋季向后拨时的重叠区间内时的 dst_note。还会返回对该规则的通俗英文描述】【。
该 API 遵循 RFC 5545。在春季跳时日不存在的本地时间会向前移,并标记为 nonexistent_shifted。秋季回拨时存在歧义的时间采用第一次出现的时间,并标记为 ambiguous_first_used。除此之外,本地壁钟时间保持不变,而 UTC 时刻随偏移量变化。
是的。使用公开 ICS 订阅源的 URL 调用 POST 或 GET /v1/ics/expand。该 API 会遵循主机 robots.txt 中针对用户代理标识 SeedCalendarBot 的规则,拒绝私有或本地主机,将订阅源缓存 10 分钟,并处理重复规则、例外、移动的实例和取消的事件
RRULE 展开最多返回 500 个出现项,并接受最长 10 年的规则时间窗口。Feed 展开接受最长 3 年的时间窗口、最大 300 KB 的 feed,以及每分钟对任一主机最多 6 次未缓存的获取。每次调用创建 ICS 最多可包含 100 个事件。除 10 分钟的 feed 缓存外,不存储任何日历数据。
将访问控制配置为名为 X-Zyla-Secret 的标头,并将其值设为源密钥。中心必须在发送到源的每个请求中附加该标头。客户永远不会看到源密钥;他们使用自己的密钥向中心进行身份验证