iCalendar Event File Scraper avatar

iCalendar Event File Scraper

Pricing

from $0.50 / 1,000 calendar events

Go to Apify Store
iCalendar Event File Scraper

iCalendar Event File Scraper

Extract VEVENT records from public ICS files while preserving time zones and recurrence rules.

Pricing

from $0.50 / 1,000 calendar events

Rating

0.0

(0)

Developer

Danial Maqbool

Danial Maqbool

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Categories

Share

Extract VEVENT records from public ICS files while preserving time zones and recurrence rules.

Example.com inputs are placeholders, not verified compatible content. Replace them with your permitted source. Run npm run smoke for an account-free deterministic example. JSON Feed, RSS and table examples use the separately recorded small live-test sources; they do not imply compatibility with every site.

What it does

Produces calendar-event records for calendar ingestion developers. Values are extracted deterministically from public pages; unavailable fields remain null.

Common use cases

Extract VEVENT records from public ICS files while preserving time zones and recurrence rules. Use the resulting dataset in scheduled tasks, API pipelines, spreadsheets, or agent workflows.

Input

FieldTypeDescription
startUrlsarrayPublic HTTP(S) URLs. No credentials or local-network targets.
maxPagesintegerMaximum pages scheduled in this bounded run.
maxResultsintegerMaximum visible calendar-event records returned.
respectRobotsTxtbooleanHonor robots rules and supported crawl delays. Unavailable rules fail closed.
keywordsarrayKeywords. See README for extraction behavior.
excludeKeywordsarrayExclude Keywords. See README for extraction behavior.
concurrencyintegerMaximum concurrent page handlers. Per-origin delays still apply.
requestDelayMsintegerMinimum spacing between request starts to the same origin.
timeoutSecsintegerMaximum individual request duration in seconds.
retriesintegerRetries for page handlers. Access blocks are not retried.
proxyConfigurationobjectOptional Apify or public custom proxy. Direct connections are the default.

Output

FieldType
recordIdstring or null
sourceUrlstring or null
extractedAtstring or null
uidstring or null
summarystring or null
descriptionstring or null
locationstring or null
startRawstring or null
endRawstring or null
timezonestring or null
allDayboolean or null
recurrenceRulestring or null
recurrenceIdstring or null
statusstring or null
eventUrlstring or null

Results are in the default Dataset. RUN_SUMMARY, FAILURES and DIAGNOSTICS are available in the default key-value store. Diagnostics are not billed entity events. JSON, CSV and spreadsheet exports use Apify Dataset.

Example

Replace example.com with a public source relevant to this Actor. Plain example.com has no products, jobs or opportunities; an empty feed there is expected. Run the included local smoke test for a deterministic working example.

{
"startUrls": [
"https://example.com/calendar.ics"
],
"maxPages": 1,
"maxResults": 10
}

Example output

The following records come from synthetic local fixtures, not a live website or claimed customer data.

[
{
"recordId": "d2c11c02ef0f5325d1e2a1694a8c03dc5a6ec060ed1b0f31c49227739fcc135a",
"sourceUrl": "https://fixture.example/index",
"extractedAt": "2026-09-29T23:34:26.241Z",
"uid": "alpha",
"summary": "Fixture Alpha",
"description": "One, two",
"location": null,
"startRaw": "20261001T100000",
"endRaw": "20261001T110000",
"timezone": "Asia/Karachi",
"allDay": false,
"recurrenceRule": "FREQ=WEEKLY;COUNT=2",
"recurrenceId": null,
"status": null,
"eventUrl": "https://fixture.example/alpha"
}
]

Pricing model

One calendar-event event per visible result record. Event prices are configured in Apify Console, never in extraction code. The SDK enforces the run's maxTotalChargeUsd. Failed pages and diagnostic-only messages are not billed. Do not configure an additional automatic default-dataset-item event.

How it works

Crawlee BasicCrawler fetches explicitly supplied public URLs through a DNS-pinned, bounded HTTP transport. The dedicated text parser reads the response without a browser. No linked resources, external references or media are downloaded. No external paid API is required.

Limits

  • Recurrences are preserved, not expanded. Floating/local times remain raw rather than being converted to an assumed time zone.
  • Public GET/HEAD content only; no login, form submission, CAPTCHA solving or browser stealth.
  • Responses are capped at 2 MiB decoded. Browser mode caps requests per page and blocks media, fonts, downloads, service workers and WebSockets.
  • Missing/blocked robots rules fail closed. Robots crawl delays above 60 seconds are not supported.
  • Native-format Actor: no browser mode, no browser installation in its Dockerfile. Begin at 512 MB and measure representative input sizes.

Responsible use

Use only public content you are authorized to access. Respect source terms, licenses and applicable law. No private-account extraction, personal-data enrichment, credential input or access-control bypass is provided. Cookie values are never returned.

Local development

Requires Node.js 24 LTS. All commands below run from this Actor directory.

npm ci --ignore-scripts
npm run input:example
# Edit storage/key_value_stores/default/INPUT.json with your public URLs.
npm run start:dev
npm test
npm run typecheck
npm run lint
npm run validate
npm run build
npm start
npm run smoke
npx apify run
docker build -t icalendar-event-file-scraper .

Browser testing: set PLAYWRIGHT_BROWSERS_PATH to an Actor-local .cache/browsers directory, then run npx playwright install chromium. Docker installs its own matching browser.

Deployment

Deploy only after validating the Docker build and a representative target. Deployment is not performed by installation or tests.

npx apify login
npx apify push

Then configure the exact event in Console, set pricing and spending limits, test a private run, complete PUBLICATION_CHECKLIST.md, and deliberately enable Store visibility.

API usage

Replace YOUR_USERNAME with your Apify account name. Keep the token in an environment variable rather than input JSON.

$curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~icalendar-event-file-scraper/runs?maxTotalChargeUsd=1" -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" --data-binary @examples/basic-input.json

Monitor the returned run ID and read its default Dataset. Store/API names and price configuration are account-side settings.

Verified platform example

The saved Console input performs a bounded HTTP run with one page and at most two result records. It fetches an explicitly synthetic demonstration fixture from a public Apify key-value store maintained for these examples. These records demonstrate extraction and billing, and are not live commercial data or evidence of compatibility with blocked sites.

Use the saved default input in Apify Console, or the repository examples/basic-input.json. Replace its source with your own permitted URL and keep limits small for the first run.

The following unmodified record was returned by a successful Apify platform run on 2026-09-30:

[
{
"recordId": "5031491f102e45c70ad5796f79dd0198ea0be57e11c2fee0a38742bbc39de4b7",
"sourceUrl": "https://api.apify.com/v2/key-value-stores/oa2wsF7nVnW6shckK/records/demo-4d0679e7f81185eec2f5",
"extractedAt": "2026-09-30T14:19:48.908Z",
"uid": "alpha",
"summary": "Fixture Alpha",
"description": "One, two",
"location": null,
"startRaw": "20261001T100000",
"endRaw": "20261001T110000",
"timezone": "Asia/Karachi",
"allDay": false,
"recurrenceRule": "FREQ=WEEKLY;COUNT=2",
"recurrenceId": null,
"status": null,
"eventUrl": "https://api.apify.com/alpha"
}
]

Introductory pricing: $0.50 per 1,000 calendar-event results, plus Apify platform usage. The standard Actor start event costs $0.00005 per GB (minimum one event). Empty output and duplicate records incur no primary result event; the start fee and any platform usage still apply. The SDK enforces the event spending limit; platform usage is billed separately.