# Calendar ICS API: Create Invites, Parse Feeds, Free Slots (`tudorlane/ics-calendar-tools`) Actor

Create .ics calendar invites (attendees, reminders, repeats), read any .ics/webcal feed with repeating events expanded, expand RRULEs, and find free meeting slots across busy calendars.

- **URL**: https://apify.com/tudorlane/ics-calendar-tools.md
- **Developed by:** [Tudor Lane](https://apify.com/tudorlane) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 calendar operations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Calendar ICS API: Create Invites, Parse Feeds, Free Slots

**Use when:** a scheduling or personal-assistant agent must create a standards-compliant .ics invite, parse a public iCal/webcal feed, expand a repeat rule, or find free meeting slots among busy times.

**Try this input** (also the default, just click Start)

```json
{"requests": [{"action": "create", "title": "Project kickoff", "start": "2026-11-03T10:00", "duration_minutes": 45, "timezone": "Europe/London", "location": "Zoom", "attendees": ["ana@example.com"]}, {"action": "rrule", "rrule": "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5", "start": "2026-11-02T09:00", "timezone": "America/New_York"}, {"action": "free_slots", "busy": [{"start": "2026-11-03T09:00", "end": "2026-11-03T10:30"}, {"start": "2026-11-03T13:00", "end": "2026-11-03T14:00"}], "from": "2026-11-03T08:00", "to": "2026-11-03T18:00", "duration_minutes": 60, "timezone": "Europe/London"}]}
```

**Sample output** (real run, 11 Nov 2026, trimmed)

```json
{"action": "create", "uid": "a66ec7fe-75dd-4396-80b1-bdb930328b0e@tudorlane", "start": "2026-11-03T10:00:00+00:00", "end": "2026-11-03T10:45:00+00:00", "ics_url": "https://api.apify.com/v2/key-value-stores/.../records/event-a66ec7fe.ics?signature=...", "error": null}
{"action": "rrule", "rrule": "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5", "occurrences": ["2026-11-02T09:00:00-05:00", "2026-11-04T09:00:00-05:00", "2026-11-09T09:00:00-05:00", "2026-11-11T09:00:00-05:00", "2026-11-16T09:00:00-05:00"], "count": 5, "error": null}
{"action": "free_slots", "from": "2026-11-03T08:00:00+00:00", "to": "2026-11-03T18:00:00+00:00", "busy_count": 2, "free_slots": [{"start": "2026-11-03T08:00:00+00:00", "end": "2026-11-03T09:00:00+00:00", "minutes": 60}, {"start": "2026-11-03T10:30:00+00:00", "end": "2026-11-03T13:00:00+00:00", "minutes": 150}, {"start": "2026-11-03T14:00:00+00:00", "end": "2026-11-03T18:00:00+00:00", "minutes": 240}], "count": 3, "error": null}
```

**Options**

- `create`: a .ics invite (time zone, attendees with RSVP, organizer, location, reminder, repeat rule) as text plus a download `ics_url`.
- `parse`: read a public `.ics` or `webcal://` feed; repeating events are expanded in your date window.
- `rrule`: list the next occurrences of a repeat rule (`FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5`).
- `free_slots`: merge busy times (given directly or from .ics feeds) and return free gaps of a minimum length, optionally within working hours.
- No API key needed. It does not connect to Google or Outlook accounts.

**Pricing:** pay per event, **$0.001 per calendar operation** (one create, parse, expand or free-slots action). Errors are not charged. No subscription.

### Limits & failure modes

- Created files live in the run's key-value store and expire with Apify retention; download them if you need them long-term.
- Only public calendar URLs or pasted text are accepted; private or local URLs are rejected. A missing `start` on create, or a feed that cannot be read, returns an uncharged error.
- Libraries: icalendar (BSD), recurring-ical-events (LGPL-3.0, used unmodified as a library), python-dateutil (BSD).

Last tested: 11 Nov 2026.

### Use from AI agents (MCP)

- **Apify MCP server:** add `https://mcp.apify.com/?tools=tudorlane/ics-calendar-tools` to Claude, Cursor, ChatGPT, VS Code or any MCP client.
- **REST:** `POST https://api.apify.com/v2/acts/tudorlane~ics-calendar-tools/run-sync-get-dataset-items?token=YOUR_TOKEN` with the input JSON.

# Actor input Schema

## `requests` (type: `array`):

Each item has an action: create {title, start, end|duration_minutes, timezone, attendees, rrule}; parse {ics_url|ics, from, to}; rrule {rrule, start}; free_slots {busy|ics_urls, from, to, duration_minutes, working_hours}. Max 1000. Errors are not charged.

## Actor input object example

```json
{
  "requests": [
    {
      "action": "create",
      "title": "Project kickoff",
      "start": "2026-11-03T10:00",
      "duration_minutes": 45,
      "timezone": "Europe/London",
      "location": "Zoom",
      "attendees": [
        "ana@example.com"
      ]
    },
    {
      "action": "rrule",
      "rrule": "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5",
      "start": "2026-11-02T09:00",
      "timezone": "America/New_York"
    },
    {
      "action": "free_slots",
      "busy": [
        {
          "start": "2026-11-03T09:00",
          "end": "2026-11-03T10:30"
        },
        {
          "start": "2026-11-03T13:00",
          "end": "2026-11-03T14:00"
        }
      ],
      "from": "2026-11-03T08:00",
      "to": "2026-11-03T18:00",
      "duration_minutes": 60,
      "timezone": "Europe/London"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

One item per request.

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "requests": [
        {
            "action": "create",
            "title": "Project kickoff",
            "start": "2026-11-03T10:00",
            "duration_minutes": 45,
            "timezone": "Europe/London",
            "location": "Zoom",
            "attendees": [
                "ana@example.com"
            ]
        },
        {
            "action": "rrule",
            "rrule": "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5",
            "start": "2026-11-02T09:00",
            "timezone": "America/New_York"
        },
        {
            "action": "free_slots",
            "busy": [
                {
                    "start": "2026-11-03T09:00",
                    "end": "2026-11-03T10:30"
                },
                {
                    "start": "2026-11-03T13:00",
                    "end": "2026-11-03T14:00"
                }
            ],
            "from": "2026-11-03T08:00",
            "to": "2026-11-03T18:00",
            "duration_minutes": 60,
            "timezone": "Europe/London"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tudorlane/ics-calendar-tools").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "requests": [
        {
            "action": "create",
            "title": "Project kickoff",
            "start": "2026-11-03T10:00",
            "duration_minutes": 45,
            "timezone": "Europe/London",
            "location": "Zoom",
            "attendees": ["ana@example.com"],
        },
        {
            "action": "rrule",
            "rrule": "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5",
            "start": "2026-11-02T09:00",
            "timezone": "America/New_York",
        },
        {
            "action": "free_slots",
            "busy": [
                {
                    "start": "2026-11-03T09:00",
                    "end": "2026-11-03T10:30",
                },
                {
                    "start": "2026-11-03T13:00",
                    "end": "2026-11-03T14:00",
                },
            ],
            "from": "2026-11-03T08:00",
            "to": "2026-11-03T18:00",
            "duration_minutes": 60,
            "timezone": "Europe/London",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tudorlane/ics-calendar-tools").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "requests": [
    {
      "action": "create",
      "title": "Project kickoff",
      "start": "2026-11-03T10:00",
      "duration_minutes": 45,
      "timezone": "Europe/London",
      "location": "Zoom",
      "attendees": [
        "ana@example.com"
      ]
    },
    {
      "action": "rrule",
      "rrule": "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=5",
      "start": "2026-11-02T09:00",
      "timezone": "America/New_York"
    },
    {
      "action": "free_slots",
      "busy": [
        {
          "start": "2026-11-03T09:00",
          "end": "2026-11-03T10:30"
        },
        {
          "start": "2026-11-03T13:00",
          "end": "2026-11-03T14:00"
        }
      ],
      "from": "2026-11-03T08:00",
      "to": "2026-11-03T18:00",
      "duration_minutes": 60,
      "timezone": "Europe/London"
    }
  ]
}' |
apify call tudorlane/ics-calendar-tools --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tudorlane/ics-calendar-tools"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ynh8o5Vs9j9lVxR9c/builds/5ARxDXDqrpoFCRVgU/openapi.json
