Microsoft Graph: Retrieve Calendar Data

Victoria Jul 07, 2026

Microsoft Graph, a RESTful API that enables you to access the data and functionality of Microsoft 365, Windows 10, and Enterprise Mobility + Security, offers a robust way to interact with and manage Microsoft 365 calendars. If you're looking to retrieve calendar data, you're in the right place. Let's delve into how you can use Microsoft Graph to get calendar information.

my excel weekly planner
my excel weekly planner

Before we dive in, ensure you have the necessary permissions. You'll need at least one of the following: Calendars.Read, Calendars.ReadWrite, or Calendars.ReadWrite.All, depending on your use case.

digital marketing
digital marketing

Understanding Microsoft Graph Calendar Endpoints

Microsoft Graph provides several endpoints to interact with calendars. Familiarizing yourself with these endpoints is crucial for effective calendar management.

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

Here are some key calendar endpoints:

  • /me/calendar - Represents the signed-in user's calendar.
  • /users/{id | userPrincipalName}/calendar - Represents a user's calendar.
  • /groups/{id}/calendar - Represents a group's calendar.
  • /events - Represents 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

Getting Started: Retrieving Your Calendar

To begin, let's retrieve your calendar. Use the following API call:

/me/calendar

This will return a list of events in your calendar. You can filter the results using query parameters like $top, $skip, $orderby, and $filter.

Announcing Microsoft Lists - Your smart information tracking app in Microsoft 365
Announcing Microsoft Lists - Your smart information tracking app in Microsoft 365

Retrieving Events from a Specific Calendar

If you want to retrieve events from a different calendar, you can use the following API call:

/users/{id | userPrincipalName}/calendar/events

Replace {id | userPrincipalName} with the ID or user principal name of the user whose calendar you want to access.

New Gantt Chart for Excel Online
New Gantt Chart for Excel Online

Advanced Calendar Operations with Microsoft Graph

Microsoft Graph offers more than just retrieval. You can create, update, and delete events, as well as manage calendar permissions.

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 overview - Microsoft Graph
Microsoft Graph overview - Microsoft Graph
Microsoft Removes Legacy Calendar in Teams, New Calendar Now Mandatory
Microsoft Removes Legacy Calendar in Teams, New Calendar Now Mandatory
How to Make a Gantt Chart in Microsoft Planner
How to Make a Gantt Chart in Microsoft Planner
How to create a shared calendar in Microsoft Teams
How to create a shared calendar in Microsoft Teams
three calendars with the word excel calendar on each one and an image of two different dates
three calendars with the word excel calendar on each one and an image of two different dates
an image of a dashboard showing daily traffic tracker
an image of a dashboard showing daily traffic tracker
a calendar with the date circled on it and an arrow pointing to the next page
a calendar with the date circled on it and an arrow pointing to the next page
Calendar 2025 Template in Google Sheets, Excel - Download | Template.net
Calendar 2025 Template in Google Sheets, Excel - Download | Template.net
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
How to Make a Calendar in Excel [Complete Guide + Free Templates] - GeeksforGeeks
Free Excel Spreadsheet Templates
Free Excel Spreadsheet Templates
a screenshot of a project plan with multiple sections labeled in yellow, green, and purple
a screenshot of a project plan with multiple sections labeled in yellow, green, and purple
Colorful project schedule template with flat design | Free Vector
Colorful project schedule template with flat design | Free Vector
Colorful Editable 2025 Yearly Calendar Template for Excel & Google Sheets
Colorful Editable 2025 Yearly Calendar Template for Excel & Google Sheets
a calendar with different times on it and numbers for each month, including the date
a calendar with different times on it and numbers for each month, including the date
Take Control Of Your Schedule With This Editable Planner Spreadsheet LB691njynzs
Take Control Of Your Schedule With This Editable Planner Spreadsheet LB691njynzs
a desktop computer sitting on top of a white desk
a desktop computer sitting on top of a white desk
Google Sheets Weekly & Monthly Schedule Templates
Google Sheets Weekly & Monthly Schedule Templates
an image of a calendar on the computer screen with notes and reminders attached to it
an image of a calendar on the computer screen with notes and reminders attached to it
Master Your Schedule with Microsoft 360’s Calendar
Master Your Schedule with Microsoft 360’s Calendar

Creating a New Event

To create a new event, use the following API call:

/me/events

Or, to create an event in a specific user's calendar:

/users/{id | userPrincipalName}/events

Include the event details in the request body. For example:

{
  "subject": "Meeting",
  "startDateTime": "2022-01-01T08:00:34",
  "endDateTime": "2022-01-01T09:00:34"
}

Updating and Deleting Events

To update an event, use the following API call:

/me/events/{id}

Or, to delete an event:

/me/events/{id}

Replace {id} with the ID of the event you want to update or delete.

Microsoft Graph's capabilities for managing calendars are extensive. From viewing and managing events to handling permissions and more, it's a powerful tool for any developer. Happy coding!