82trust / 100

Ics Parse

by iCalendar parse (.ics) in Productivity & SaaS

x402 APIPassing, checked 2 h ago

Parse iCalendar (.ics) text into structured JSON events: summary, start/end, location, organizer, attendees, status, and RRULE. Optional bounded recurrence expansion (expand:true, capped occurrences). Deterministic, pure CPU - send the ICS text, not a URL.

POST https://agent402.tools/api/ics-parse

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
187 ms typical, 277 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/ics-parse" \
  -H "content-type: application/json" \
  -d '{"expand":true,"ics":"BEGIN:VCALENDAR\nPRODID:-//Agent402//EN\nVERSION:2.0\nBEGIN:VEVENT\nUID:demo-1\nSUMMARY:Team sync\nDTSTART:20260720T150000Z\nDTEND:20260720T153000Z\nLOCATION:Zoom\nRRULE:FREQ=WEEKLY;COUNT=3\nEND:VEVENT\nEND:VCALENDAR"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fics-parse
const res = await pay("https://agent402.tools/api/ics-parse", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"expand":true,"ics":"BEGIN:VCALENDAR\nPRODID:-//Agent402//EN\nVERSION:2.0\nBEGIN:VEVENT\nUID:demo-1\nSUMMARY:Team sync\nDTSTART:20260720T150000Z\nDTEND:20260720T153000Z\nLOCATION:Zoom\nRRULE:FREQ=WEEKLY;COUNT=3\nEND:VEVENT\nEND:VCALENDAR"}),
});
console.log(await res.json());

Example input

{
  "expand": true,
  "ics": "BEGIN:VCALENDAR\nPRODID:-//Agent402//EN\nVERSION:2.0\nBEGIN:VEVENT\nUID:demo-1\nSUMMARY:Team sync\nDTSTART:20260720T150000Z\nDTEND:20260720T153000Z\nLOCATION:Zoom\nRRULE:FREQ=WEEKLY;COUNT=3\nEND:VEVENT\nEND:VCALENDAR"
}

Example output

{
  "calendar": {
    "name": null,
    "prodId": "-//Agent402//EN",
    "timezone": null,
    "version": "2.0"
  },
  "count": 1,
  "events": [
    {
      "end": {
        "allDay": false,
        "iso": "2026-07-20T15:30:00Z",
        "tzid": null
      },
      "location": "Zoom",
      "occurrences": {
        "capped": false,
        "count": 3,
        "dates": [
          "2026-07-20T15:00:00Z",
          "2026-07-27T15:00:00Z",
          "2026-08-03T15:00:00Z"
        ]
      },
      "rrule": {
        "count": 3,
        "freq": "WEEKLY",
        "interval": 1,
        "raw": "FREQ=WEEKLY;COUNT=3"
      },
      "start": {
        "allDay": false,
        "iso": "2026-07-20T15:00:00Z",
        "tzid": null
      },
      "status": null,
      "summary": "Team sync",
      "uid": "demo-1"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402186 ms$0.001
5 h agoPassed402201 ms$0.001
10 h agoPassed402187 ms$0.001
13 h agoPassed402181 ms$0.001
16 h agoPassed402277 ms$0.001
21 h agoPassed402313 ms$0.001