This is an old blog post for using the PSI API. If you want to use the CrUX API, I'd recommend taking a look at this Apps Script file instead: github.com/GoogleChrome/CrUX/blob/...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Rick, Thanks for the useful presentation on Core Web Vitals, etc. at GDGNYC yesterday.
I copied the Apps Script sheet that you referred to above and also in the presentation.
I needed to change one line:
var pageSpeedUrl = 'googleapis.com/pagespeedonline/v5/...' + url + '&fields=loadingExperience&key=' + pageSpeedApiKey + '&strategy=' + strategy;
I changed from v4 to v5
I'm not sure if others also would be affected so I post this in case it will help others.
Ralph
Hi Ralph, glad you found it useful!
This is an old blog post for using the PSI API. If you want to use the CrUX API, I'd recommend taking a look at this Apps Script file instead: github.com/GoogleChrome/CrUX/blob/...