$ man csv-to-ics
/csv-to-ics(1)
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
utilities
STATUS
● live
NAME
csv-to-ics — csv calendar to ics / ical file generator
SYNOPSIS
POST https://x402.org/v1/csv-to-ics
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
CSV calendar to ICS / iCal file generator. RFC 5545 compliant. Auto-detects column mapping (summary/date/time/location). All-day + timed events. Up to 1000 rows.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| csv | string | CSV content as a string. First row must be a header. Max 200,000 chars / 1000 events. | required |
| columns | object | Optional explicit column-name mapping with keys: summary, start_date, end_date, start_time, end_time, location, description, url. Each value is the matching CSV header. | optional |
| calendar_name | string | X-WR-CALNAME for the .ics output. Default 'Imported Events'. | optional |
| default_duration_minutes | number | Used when only start_time is given. Default 60. | optional |
| delimiter | string | Single-character delimiter. Default ','. Use ';' for European CSVs or '\t' for TSV. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| ics | string | Full .ics file as a string. |
| mime_type | string | MIME type of the generated file, typically text/calendar for ICS output. |
| event_count | number | Number of VEVENT entries successfully written to the ICS file. |
| skipped_rows | number | Count of CSV rows skipped due to missing required fields or unparseable dates. |
| errors | array | Array of per-row error messages describing why specific rows failed to convert. |
| calendar_name | string | X-WR-CALNAME value set on the calendar, derived from CSV header or filename. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/csv-to-ics \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the csv-to-ics tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- csvicscalendaricalconvertevents
- methods
- POST
- cluster
- mediakit
- price
- $0.01 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| audio-transcribe | Audio transcribe / speech-to-text / Whisper-large / multi-language ASR / OpenAI Whisper API compat. | $0.01 |
| image-convert | Universal image format converter (PNG, JPG, WEBP, AVIF, GIF, BMP, TIFF, ICO, HEIC, HEIF, PSD, SVG). | $0.01 |
| image-format-convert | Image converter. | $0.01 |
| merge-pdf | PDF merger / combine PDFs / concatenate PDF files / join multiple PDFs into one. | $0.01 |
| pdf-merge | PDF merger / PDF combiner / PDF concatenator. | $0.01 |
| receipt-ocr | Receipt OCR. | $0.01 |
| receipt-parser | Receipt → structured JSON (vendor, address, date, line items with qty/unit_price/total, subtotal, tax, tip, total, payment method). | $0.01 |
| youtube-transcript | YouTube transcript / closed-caption fetcher / video subtitles puller / auto-generated CC reader. | $0.01 |
SEE ALSO