Google page speed API is taking too much time in returning results

22 views
Skip to first unread message

Kalam Khan

unread,
Jun 13, 2022, 6:56:39 AM6/13/22
to Google Cloud Developers
I am using Google pagespeed api for getting the lighthouse reports for the websites. Earlier it use to give me around 50 results(website reports) in 5 minutes, but now it takes more than 20 minutes for 20 web url's to give the results. I am trying to fetch the results by sending the URL's in for() loop

My API is something like this https://www.googleapis.com/pagespeedonline/v5/runPagespeed?category=ACCESSIBILITY&url=http%3A%2F%2F".$parsedLink."&utm_source=lh-chrome-ext&key=".$key

or

CURLOPT_URL => https://pagespeedonline.googleapis.com/pagespeedonline/v5/runPagespeed?category=ACCESSIBILITY&category=BEST_PRACTICES&category=SEO&category=PERFORMANCE&strategy=MOBILE&url=http%3A%2F%2F".$parsedLink."&utm_source=lh-chrome-ext&key=".$key

Please help me in fetching the results quickly

Any help would be appreciated.

Rogelio Monter

unread,
Jun 14, 2022, 6:28:04 PM6/14/22
to Google Cloud Developers

There are some post about using PageSpeed API using different languages:

And the official Google APIs Client Libraries.

Also take into account that Google imposes a quota limit on PageSpeed Insights API usage.

It would be useful to share in which programming language you are writing your code if you are not throttling the API’s quota.

Reply all
Reply to author
Forward
0 new messages