Title: Sudden Google API Key Referrer Error
Last modified: June 20, 2018

---

# Sudden Google API Key Referrer Error

 *  [wigglepit](https://wordpress.org/support/users/wigglepit/)
 * (@wigglepit)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/sudden-google-api-key-referrer-error/)
 * Getting this error to my public calendar. Have added proper referrers, double-
   checked that the calendar is public, confirmed the API key, and tried creating
   another API key while troubleshooting, but the error remains.
 * (I was forced to embed an Iframe calendar until it can get fixed, so the error
   is below the iFrame).
 * It was working fine a few days ago, no idea why it just broke. I am completely
   stumped and welcome any assistance you can offer!!!
 * ERROR:
 * While trying to retrieve events, Google returned an error:
 * Error calling GET [https://www.googleapis.com/calendar/v3/calendars/XXXXXXXXXXXXXXXXXXXXX/events?singleEvents=true&maxResults=2500&timeMin=2018-05-21T00%3A00%3A00%2B00%3A00&timeMax=2020-06-19T23%3A59%3A59%2B00%3A00&orderBy=startTime&key=AIzaSyB5BrqLKm-k2cMQT69R41UIJIfPFosODyg](https://www.googleapis.com/calendar/v3/calendars/XXXXXXXXXXXXXXXXXXXXX/events?singleEvents=true&maxResults=2500&timeMin=2018-05-21T00%3A00%3A00%2B00%3A00&timeMax=2020-06-19T23%3A59%3A59%2B00%3A00&orderBy=startTime&key=AIzaSyB5BrqLKm-k2cMQT69R41UIJIfPFosODyg):(
   403) The request did not specify any referer. Please ensure that the client is
   sending referer or use the API Console to remove the referer restrictions.
 * Please ensure that both your Google Calendar ID and API Key are valid and that
   the Google Calendar you want to display is public.
 * Only you can see this notice.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsudden-google-api-key-referrer-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Jay](https://wordpress.org/support/users/fectio1/)
 * (@fectio1)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/sudden-google-api-key-referrer-error/#post-10505968)
 * Same problem here and related [topic](https://wordpress.org/support/topic/google-calendar-id-not-working/)
 *  Thread Starter [wigglepit](https://wordpress.org/support/users/wigglepit/)
 * (@wigglepit)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/sudden-google-api-key-referrer-error/#post-10506058)
 * I had a friend help me with this and here is what he did:
 * “The API client itself, for whatever reason, isn’t passing the HTTP referrer,
   so google can’t validate it using the domain. I tried putting the new version
   in and it died, so instead I’ve gone the workaround route. What I’ve done is 
   make a new API key, and set that to be IP restricted instead for the calendar.
   Meanwhile, you Google Map key remains referrer restricted.”
 *  [Jay](https://wordpress.org/support/users/fectio1/)
 * (@fectio1)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/sudden-google-api-key-referrer-error/#post-10506063)
 * To fix this error. Log in to your Google Cloud Platform API & Services and for
   the key, edit it and remove the http from the url or just remove the restrictions
   all together.
 * So instead of [http://yourwebsite.com/*](http://yourwebsite.com/*)
    yourwebsite.
   com/*
 *  Thread Starter [wigglepit](https://wordpress.org/support/users/wigglepit/)
 * (@wigglepit)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/sudden-google-api-key-referrer-error/#post-10506085)
 * Thanks, dude!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Sudden Google API Key Referrer Error’ is closed to new replies.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

## Tags

 * [api key](https://wordpress.org/support/topic-tag/api-key/)
 * [google error](https://wordpress.org/support/topic-tag/google-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [wigglepit](https://wordpress.org/support/users/wigglepit/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/sudden-google-api-key-referrer-error/#post-10506085)
 * Status: not resolved