Search code examples
google-apps-scriptgoogle-calendar-api

How can I find the Event Id of my Google Calendar event?


I created some Google Calendar events and now I would like to do some operations on them programmatically.

Trouble is I don't have their IDs.

When I go into the calendar and click on the event, there is nowhere where I can see the ID.

Does anyone know where I can find it?


Solution

  • On The Google Calendar Website

    Since he originally asked how to click into the calendar and find the ID of a particular event, and since that's what I needed to know how to do too:

    1. Click the event in your Google Calendar.

    2. It will take you to a page with a URL such as https://calendar.google.com/calendar/render?pli=1#eventpage_6%7Ceid-NGh0Z3BtbTFobWFrNzQ0cjBrYmtkY29kYXIgZXVndTlrYW4xZGRpMXBtaTZzazNpYjWoNmdAZw-1-0-

    3. Look for "eid" in the URL.

    4. Select and copy the string between eid- and the next -. (In my example here, it is NGh0Z3BtbTFobWFrNzQ0cjBrYmtkY29kYXIgZXVndTlrYW4xZGRpMXBtaTZzazNpYjWoNmdAZw.)

    5. Now you need to decode from Base64 format. You could paste that string into a tool such as https://www.base64decode.org/.

    6. The result will be two strings separated by a space. The first string is your Event ID.