Thursday, 9 October 2014

Get Google Calendar Event ID from the Page

If you need to find out the event ID from a Google calendar event, then luckily Google puts the ID for us on the page! I found this posting on stackoverflow which enlightened me to this fact.

The ID is stored in base64 so needs converting. Follow these steps to get it:

  1. Go to/edit the event in your Google calendar
  2. Use the browser debugger (I'm in Chrome) or view the source (I'm using the debugger)
  3. Click the elements tab and press Ctrl+F to search the markup
  4. Search for data-eid
  5. Copy the value for data-eid

And there ya go! If you don't have means to decode the base64 value use this site to do it.

When it is decoded you will see a sequence of alphanumerics a space and the email address associated to the account. Obviously it is the first sequence you need!