I am using google page speed api, I am getting response from ['lighthouseResult']['categories']['performance']['score'] and i was gettings 0.92, but this was not right, it shows really good, but if i go to google page speed tool then it shows approx 62. So, I getting wrong response or is there any another way to calculate response score.
Asked
Active
Viewed 126 times
0
-
Please provide enough code so others can better understand or reproduce the problem. – Community Nov 01 '21 at 10:08
1 Answers
0
You are viewing results for desktop (default), you may want to check mobile metrics.
You can switch from desktop to mobile with the strategy
param: https://developers.google.com/speed/docs/insights/v4/reference/pagespeedapi/runpagespeed#strategy

AFRC
- 902
- 3
- 9
- 27