Microsoft Graph API: Fetch Calendar Events

Victoria Jul 07, 2026

Microsoft Graph API is a powerful tool that allows developers to access the data and functionality of Microsoft 365, Windows 10, and Enterprise Mobility + Security. One of the key features of Microsoft Graph API is its ability to manage and retrieve calendar events. In this article, we will guide you through the process of getting calendar events using Microsoft Graph API.

Using Microsoft Graph API inside Microsoft Flow in O365
Using Microsoft Graph API inside Microsoft Flow in O365

Before we dive into the details, ensure you have the necessary permissions to access calendar events. You can grant permissions at the application level or the user level. For more information on how to grant permissions, refer to the official Microsoft documentation.

How to create a shared calendar in Microsoft Teams
How to create a shared calendar in Microsoft Teams

Understanding Calendar Events in Microsoft Graph API

Calendar events in Microsoft Graph API are represented as JSON objects. Each event contains properties such as subject, start/end date and time, location, and attendees. Understanding these properties is crucial when retrieving and manipulating calendar events.

a purple and white calendar on a tablet screen
a purple and white calendar on a tablet screen

Microsoft Graph API supports various types of calendar events, including single instance, recurring, and exceptions. It also allows you to manage event responses, attachments, and more. Let's explore how to retrieve these events using Microsoft Graph API.

Retrieving Single Calendar Events

Querying calendar events via the Google Calendar API
Querying calendar events via the Google Calendar API

To retrieve a single calendar event, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/me/events/{id}. Replace {id} with the unique identifier of the event you want to retrieve. This will return a JSON object containing the event's details.

Here's an example of how to retrieve a single calendar event using cURL:

curl -X GET "https://graph.microsoft.com/v1.0/me/events/{id}" -H "Authorization: Bearer {token}"

Retrieving Multiple Calendar Events

How to Create Year and School Calendar with Dynamic Date Markers » The Spreadsheet Page
How to Create Year and School Calendar with Dynamic Date Markers » The Spreadsheet Page

To retrieve multiple calendar events, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/me/events. This will return a collection of JSON objects, each representing a calendar event. You can filter the results using query parameters like startDateTime and endDateTime.

Here's an example of how to retrieve multiple calendar events using cURL, filtered by a specific date range:

curl -X GET "https://graph.microsoft.com/v1.0/me/events?startDateTime=2022-01-01T00:00:00&endDateTime=2022-12-31T23:59:59" -H "Authorization: Bearer {token}"

Working with Recurring Events and Exceptions

an image of a calendar with different times and dates for each month, including the date
an image of a calendar with different times and dates for each month, including the date

Microsoft Graph API supports recurring events and exceptions. Recurring events allow you to create events that repeat on a regular schedule, while exceptions allow you to modify or delete a single instance of a recurring event.

To retrieve recurring events and their exceptions, you can use the same API endpoints as single events. The JSON objects returned will contain properties that indicate if the event is recurring and any exceptions that apply.

Best Digital Calendar Apps for Productivity in 2025
Best Digital Calendar Apps for Productivity in 2025
Interactive Excel Calendar with Heatmap – Free Download
Interactive Excel Calendar with Heatmap – Free Download
Free Content Calendar Template | ConversionMinded
Free Content Calendar Template | ConversionMinded
an event calendar with a magnifying glass next to it
an event calendar with a magnifying glass next to it
how to create a shared calendar in microsoft teams
how to create a shared calendar in microsoft teams
Announcing Microsoft Lists - Your smart information tracking app in Microsoft 365
Announcing Microsoft Lists - Your smart information tracking app in Microsoft 365
Using Curtains in Microsoft Project to Show What Work is Being Done Within a Sprint
Using Curtains in Microsoft Project to Show What Work is Being Done Within a Sprint
Interactive calendar with visualization data periods in Excel
Interactive calendar with visualization data periods in Excel
Master Your Schedule with Microsoft 360’s Calendar
Master Your Schedule with Microsoft 360’s Calendar
Free Calendrier mensuel des événements Modèle en Google Sheets and Microsoft Excel | thegoodocs.com
Free Calendrier mensuel des événements Modèle en Google Sheets and Microsoft Excel | thegoodocs.com
5 Best Microsoft Teams Shared Calendar App
5 Best Microsoft Teams Shared Calendar App
an image of a dashboard with various data on the monitor and in the background is a bar chart
an image of a dashboard with various data on the monitor and in the background is a bar chart
Event Planner Spreadsheet | Auto Calendar, Heatmap Dashboard | Excel Google Sheets Digital Download
Event Planner Spreadsheet | Auto Calendar, Heatmap Dashboard | Excel Google Sheets Digital Download
Online Design & Workflow Templates
Online Design & Workflow Templates
the dashboard screen shows data, graphs and other things to see in this screenshot
the dashboard screen shows data, graphs and other things to see in this screenshot
The only customizable calendar for business - Teamup Home
The only customizable calendar for business - Teamup Home
I made the switch from Outlook to Proton Mail and Calendar
I made the switch from Outlook to Proton Mail and Calendar
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
a calendar is shown with different colors and numbers
a calendar is shown with different colors and numbers
Side by Side Calendar with events
Side by Side Calendar with events

Retrieving Recurring Event Patterns

To retrieve the pattern of a recurring event, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/me/events/{id}/recurrence. This will return a JSON object containing the recurrence pattern details, such as the recurrence rule and any exceptions.

Here's an example of how to retrieve the recurrence pattern of a calendar event using cURL:

curl -X GET "https://graph.microsoft.com/v1.0/me/events/{id}/recurrence" -H "Authorization: Bearer {token}"

Retrieving Recurring Event Instances

To retrieve all instances of a recurring event, including exceptions, you can use the following API endpoint: GET https://graph.microsoft.com/v1.0/me/events/{id}/instances. This will return a collection of JSON objects, each representing an instance of the recurring event.

Here's an example of how to retrieve all instances of a recurring calendar event using cURL:

curl -X GET "https://graph.microsoft.com/v1.0/me/events/{id}/instances" -H "Authorization: Bearer {token}"

Microsoft Graph API provides a powerful set of tools for managing and retrieving calendar events. By understanding how to retrieve single and multiple events, as well as recurring events and exceptions, you can build robust and efficient applications that integrate with Microsoft 365 calendar functionality.

Now that you've learned how to get calendar events using Microsoft Graph API, why not explore other features of the API, such as creating, updating, and deleting events? The possibilities are endless! Happy coding!