Google PageSpeed Insights API authentication without apikey in Python

Viewed 23

I'm trying to authenticate with Google PageSpeed Insights without using the key=yourAPIKey. Most of the descriptions and documentation suggest the APIkey, e.g. https://developers.google.com/speed/docs/insights/v5/get-started

Ideally I'd like to find a sample as promised here in the documentation (sadly it's not there) for Python https://developers.google.com/speed/docs/insights/libraries

For other authentications with google we use oauth2 with Python as per samples https://github.com/googleapis/google-api-python-client/tree/main/samples

From here it looks like Pagespeed uses OpenId but again there is no Python sample, https://developers.google.com/identity/protocols/oauth2/scopes#pagespeedonline

Has anyone authenticated Pagespeed with OpenId and could talk me through it in Python? From their github I can see there was some work done but I never integrated openid in Python. https://github.com/google/site-kit-wp/issues/511

Many thanks

0 Answers
Related