If I have the embed HTML for a Google Calendar, can I extract the URL I would use to subscribe to the calendar?

For example:

Embed code (linebreaks added for clarity):

<iframe src="https://www.google.com/calendar/hosted/example.com/embed?
        style=" border-width:0 " width="800" 
        height="600" frameborder="0" scrolling="no">

the juicy bit is src=example.com_ecafa7el7kc4du1ervkdff4x6a%40group.calendar.google.com but I can't seem to get it into a format I can use in Add -> Add by URL in my Google Calendar.

1 Answer 1


Given the following URL:


You want to place the bold part in one of these templates:

XML: http://www.google.com/calendar/feeds/HERE/public/basic
ICAL: http://www.google.com/calendar/ical/HERE/public/basic.ics
HTML: http://www.google.com/calendar/hosted/HERE/embed?src=HERE

instead of the word HERE.

For example, if you wanted to use XML, use:


This requires the calendar to be public, which I assume it is, since there is an embeded version of it available.

  • perfect! thanks. can you edit your answer to make it a little clearer that the "juicy bit" minus the src= from my example is the address to use "HERE"?
    – adambox
    Aug 4, 2010 at 20:27
  • Confirming that this still works in 2014 and thanking you for an answer that's been useful to me more than once. :) Mar 22, 2014 at 0:30
  • You can also just take the part in bold and paste it into Settings >> Add Calendar >> Subscribe to Calendar >> Add Calendar (text box). Then it will subscribe you.
    – Pro Q
    Sep 10, 2020 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.