Microsoft Graph: Fetch Calendar Events

Victoria Jul 07, 2026

Microsoft Graph, a RESTful web API that enables you to access Microsoft Cloud service resources, provides a comprehensive way to interact with Microsoft 365, Windows 10, and Enterprise Mobility + Security. One of the key functionalities it offers is the ability to manage and retrieve calendar events, which is crucial for integrating calendar functionality into your applications. Let's delve into how you can use Microsoft Graph to get calendar events.

digital marketing
digital marketing

Before we proceed, ensure you have the necessary permissions. To read calendar events, your application needs the appropriate permissions, such as Calendars.Read or Calendars.ReadWrite, depending on your requirements.

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

Understanding Calendar Events in Microsoft Graph

In Microsoft Graph, calendar events are represented as the 'event' resource. Each event has properties like subject, start/end times, location, attendees, and more. Understanding these properties is key to working with calendar events.

a desktop computer with a calendar on the screen and a plant in front of it
a desktop computer with a calendar on the screen and a plant in front of it

Events can be part of a user's calendar or a shared calendar. Microsoft Graph allows you to work with both, providing a unified API for managing and retrieving events.

Retrieving User Calendar Events

an image of a calendar in excel
an image of a calendar in excel

To get events from a user's calendar, you can use the following API endpoint: https://graph.microsoft.com/v1.0/me/events. The 'me' keyword refers to the signed-in user. You can also specify a start and end date to filter events within a specific time range.

Here's an example of how you might use this endpoint in a GET request:

GET https://graph.microsoft.com/v1.0/me/events?startDateTime=2022-01-01T00:00:00&endDateTime=2022-12-31T23:59:59

Retrieving Shared Calendar Events

Best Digital Calendar Apps for Productivity in 2025
Best Digital Calendar Apps for Productivity in 2025

To get events from a shared calendar, you'll need to know the calendar's ID. You can find the ID in the calendar's properties or in the calendar's view in Outlook. Once you have the ID, you can use it in the API endpoint like this: https://graph.microsoft.com/v1.0 calendars/{id}/events.

Here's an example of how you might use this endpoint in a GET request, replacing '{id}' with the actual calendar ID:

GET https://graph.microsoft.com/v1.0/calendars/{id}/events

Filtering and Sorting Calendar Events

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 provides several query parameters to filter and sort your event results. You can filter events by subject, start date, end date, and more. You can also sort events by start date, end date, or subject.

Here's an example of how you might use these query parameters in a GET request:

Free Content Calendar Template | ConversionMinded
Free Content Calendar Template | ConversionMinded
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
how to create a shared calendar in microsoft teams
how to create a shared calendar in microsoft teams
an image of a calendar with the date circled in blue and arrows pointing to it
an image of a calendar with the date circled in blue and arrows pointing to it
an event calendar with a magnifying glass next to it
an event calendar with a magnifying glass next to it
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
a poster with the dates and times for an event in black and white, on a light blue background
a poster with the dates and times for an event in black and white, on a light blue background
How to Make a Gantt Chart in Microsoft Planner
How to Make a Gantt Chart in Microsoft Planner
Calendar of events
Calendar of events
MS Excel 2016: How to Create a Line Chart
MS Excel 2016: How to Create a Line Chart
Interactive calendar with visualization data periods in Excel
Interactive calendar with visualization data periods in Excel
Google Sheets Weekly Schedule Template (Free Download)
Google Sheets Weekly Schedule Template (Free Download)
Assign a color category to a calendar event in Outlook
Assign a color category to a calendar event in Outlook
a calendar is shown with different colors and numbers
a calendar is shown with different colors and numbers
a screenshot of a project schedule with multiple tasks in the workflow diagram below
a screenshot of a project schedule with multiple tasks in the workflow diagram below
Benefits of Using Outlook Calendar Invite Templates
Benefits of Using Outlook Calendar Invite Templates
Free Excel Spreadsheet Templates
Free Excel Spreadsheet Templates
Master Your Schedule with Microsoft 360’s Calendar
Master Your Schedule with Microsoft 360’s Calendar
Interactive Excel Calendar with Heatmap – Free Download
Interactive Excel Calendar with Heatmap – Free Download
The only customizable calendar for business - Teamup Home
The only customizable calendar for business - Teamup Home

GET https://graph.microsoft.com/v1.0/me/events?$filter=start/dateTime ge 2022-01-01 and end/dateTime le 2022-12-31 and subject eq 'Meeting'&$orderby=start/dateTime asc

By mastering these Microsoft Graph API calls, you can efficiently retrieve and manage calendar events, integrating calendar functionality seamlessly into your applications. Happy coding!