retrieve all events for a given periode

Sirine 40 Reputation points
2026-01-15T10:41:03.93+00:00

Hello, im trying to use the api of graph explorer , my goal is to retrieve all events a user had given a certain periode ( 2025 year )
https://graph.microsoft.com/v1.0/me/calendarView?startDateTime=2025-01-12&endDateTime=2026-01-18

i tried to use this one , but some events show and others don't , and i feel like recurrent events only show up once ...
how can i get everything all at once ?

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Flora-T 9,920 Reputation points Microsoft External Staff Moderator
    2026-01-15T12:35:34.09+00:00

    Hi Sirine

    Thank you for reaching out to Microsoft Q&A Forum and sharing your experience.

    The calendarView endpoint is designed specifically to expand recurring meetings into individual instances within a specified time range. By default, Microsoft Graph limits the number of results returned per response (often defaulting to just 10 items). If your time range is a full year, you likely have hundreds of events.

    I tested this query on my end. To retrieve more data in a single call, you should add the $top query parameter. The maximum value is 1000. Please try this updated query:

    GET https://graph.microsoft.com/v1.0/me/calendarView?startDateTime=2025-01-01T00:00:00Z&endDateTime=2025-12-31T23:59:59Z&$top=1000
    

    I reproduced this on my end to verify the solution. First, I have populated the calendar with many recurring daily events for 1 month:

    User's image

    Then I ran the command provided above:

    User's image

    For further reading on how to handle these specific scenarios, you can check these resources:

    Note: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.

    Please let me know how you get on, as your feedback is valuable to the community. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Answer accepted by question author
  1. Q&A Assist
    2026-01-15T10:41:44.2233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To retrieve all events for a given period using the Microsoft Graph API, you can use the calendarView endpoint as you have done. However, it's important to note that the calendarView endpoint only returns events that occur within the specified time range, and it may not include all instances of recurring events. Recurring events are typically returned only as a single instance unless you specifically request all occurrences.

    To ensure that you retrieve all instances of recurring events, you might want to consider using the delta query functionality, which allows you to track changes to events over time, including new, updated, or deleted events. This can help you maintain a complete and up-to-date view of all events, including recurring ones.

    For your specific case, you can also check if there are any limitations or settings in the user's calendar that might affect the visibility of events. If certain events are not showing up, it could be due to permissions or the way the events are configured in the calendar.

    If you continue to experience issues, reviewing the API documentation for any updates or changes regarding how recurring events are handled might be beneficial.


    References:


1 additional answer

Sort by: Most helpful
  1. 1-3658-00000-58-7 0 Reputation points
    2026-01-17T06:32:04.5466667+00:00

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.