17

I am current using npm psi to do psi tests against a site which is publicly accessible (except with basic authentication).

All of my attempts to use the username:password@ convention have failed me thus far for psi and psi only.

I was wondering if I was missing anything?

{ [Error: PageSpeed is currently unable to fetch this URL. Please try again later.] code: 400, noStack: true }
jshthornton
  • 1,284
  • 11
  • 29
  • 2
    You get the same response from https://developers.google.com/speed/pagespeed/insights/ - I guess it's not the psi module that has a problem – s3v1 Feb 19 '16 at 09:36

1 Answers1

-2

You need to create an api key, and then use the key in your request

curl 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=YOUR_URL_HERE&key=XXX_YOUR_API_KEY_HERE';

Follow these instructions https://developers.google.com/speed/docs/insights/v2/first-app#before_starting