How can identify National Holiday?

공민혁 60 Reputation points


I'm using API to get calendar list,

GET /users/{id | userPrincipalName}/calendars

I want to know is there anyway to identify National Holiday.

There is "Korean Holiday" in my calendar that seems outlook made

Want to specify that calendar with programming.

Thank you for your assistance.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,319 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 2,185 Reputation points Microsoft Vendor

    Hi @공민혁

    Yes, you can get national holidays through the calendar "Korean Holidays".

    First you can list all the calendars by requesting below and then find the ID of the Korean holiday calendar.

    GET /users/{id | userPrincipalName}/calendars

    The calendar can be obtained by sending the following request with the ID.

    GET /users/{id | userPrincipalName}/calendars/{id}

    All events in the calendar can also be obtained by requesting the following:

    GET /users/{id | userPrincipalName}/calendars/{id}/events

    See the link below for more details:

    Hope this helps.

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

    0 comments No comments