Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Own-account API: reads the calendars of the Google user who granted the refresh token. ‘primary’ names that user’s main calendar.
  • Times are RFC3339 with an offset (2026-11-09T09:00:00-05:00 or …Z). All-day events use start.date/end.date instead of dateTime, and end is exclusive.
  • Lists page with pageToken/nextPageToken; a nextSyncToken on the last page lets a later call fetch only changes.

Endpoints

List the user’s calendars

List events

  • Pages can hold fewer than maxResults events; keep following nextPageToken until it is absent.
  • Without singleEvents=true a recurring event comes back once, as its rule, not as each occurrence.

Get an event

Query free/busy

  • A read over POST.