10

You can add a calendar hosted on Google to your Google Calendar account by a direct link (for example as on Holidays in Australia - the button in the bottom left corner - if you click on it, the calendar will be added to your account).
I have a webcal calendar on my site and I want to add a button like in the example which points to my calendar.
How can I do that?

1 Answer 1

17

You can do this with this link:

https://www.google.com/calendar/render?cid=

With after the = symbol the link to your ICS file. For example:

https://www.google.com/calendar/render?cid=http://www.example.com/calendar.ics
4
  • Thanks, also I think the calendar link should be escaped (i.e. with urlencode in php).
    – UpVs
    Feb 12, 2015 at 7:47
  • Do you know if it's possible to subscribe to a calendar, not just events (as in, .ics files)? Google Calendar does a GET request against my non-ics resource, instead of PROPFIND.
    – The Onin
    May 8, 2017 at 0:09
  • I tried, it failed mysteriously. And the solution apparently was this: stackoverflow.com/questions/23473919/… I just spent an hour on this, but I'm somehow glad it's working now.
    – YoungFrog
    Sep 11, 2020 at 7:02
  • Doesn't seem to work any more - i get the error "This email address isn't associated with an active Google Calendar account: shorturl.at/dwD09. Please check the email address and try again."
    – Collins
    Jan 13, 2021 at 11:34

Your Answer

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

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