I\'m trying the Google v5 API page speed insight but i don\'t find the SCORE inside the JSON result.
This is the api https://www.googleapis.com/pagespeedonline/v5/runPage
It is json.lighthouseResult.categories.performance.score as described by Jeroen.
You can return all possible audit categories using the following example:
https://www.google.com/
lighthouseResult/categories/*/score
*
is a wildcardno
Desktop
Performance
Progressive Web App (PWA)
Best practices
Accessibility
SEO
{YOUR_API_KEY}
https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=https%3A%2F%2Fstackoverflow.com%2F&fields=lighthouseResult%2Fcategories%2F*%2Fscore&prettyPrint=false&strategy=desktop&category=performance&category=pwa&category=best-practices&category=accessibility&category=seo&key={YOUR_API_KEY}
{
"lighthouseResult": {
"categories": {
"performance": {
"score":0.99
},
"accessibility": {
"score":0.7
},
"best-practices": {
"score":0.77
},
"seo": {
"score":0.9
},
"pwa": {
"score":0.56
}
}
}
}