Hello Alex,
I’ve looked for a china specific version of this API and have not been able to find one.
To verify if that is the issue here, can you try loading the following URL in your browser and tell me if you are able to load it and get a response?
https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=https://developers.google.com/speed/pagespeed/insights/&strategy=mobile&key=YOUR_API_KEY
(Don’t forget to add your API key to the URL)
If it is not blocked it should return some JSON pagespeed reports.
Let me know how that goes!
Hello,
I tried the following URL
https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=https://developers.google.com/speed/pagespeed/insights/&strategy=mobile&key=AIzaSyAeus-2ESMhmEsVBhr9zZkDJBCUUdNXAGo
but I can not access it, and show message as screenshot: http://prntscr.com/i3pkqv
And if I use VPN to access it, it show some other messages: http://prntscr.com/i3pm6r
would you please try that url and verify whether that url work properly for you.
Alexlee
-
This reply was modified 8 years, 5 months ago by
alexlii.
I get the second results that you got when you used a VPN to view the URL. That error can be resolved by removing any IP or domain restrictions on your API key through the Google Developer Console.
However, as access to that service is blocked I don’t see how you would be able to use the service even after fixing the key restrictions.
Unfortunately there isn’t anything I can do here to help as Google does not provide alternative API urls for pagespeed service in China. You could potentially contact Google and inquire to see if this is something they want to support.
I wish I could do more!
Matt Keys
Oh, since there is no their subsidiary or representative office in China, I have no idea on how to get touch with them, do you have any contact with them?
Alex
I do not have any contact, there is a public forum here though if you are able to access it: https://groups.google.com/forum/#!forum/pagespeed-insights-discuss
I get the same redirect and error. Perhaps the forum I linked to earlier would be a good place to start with contacting google about this error.
Thanks so much.
I post a topic at https://groups.google.com/forum/#!topic/mod-pagespeed-discuss/PeJUqJuWKP8
are there some google official guys there?
Alex
-
This reply was modified 8 years, 5 months ago by
alexlii.
is this the reason why it does not work:
Announcing the Turn Down of PageSpeed Service
https://groups.google.com/forum/#!topic/page-speed-service-discuss/h4jyUpv6Bc8
Alex
No the pagespeed service is a different product than pagespeed insights. Just confusing names.