AngularJS 1.x service for Google Pagespeed Insights API
- https://developers.google.com/speed/docs/insights/v1/getting_started
- https://developers.google.com/speed/pagespeed/insights/
Just add the service as dependency to your controller and make a call. You need to obtain an API-key before.
NGPagespeedInsights.getSiteInsights('http://example.com', '')
.then(
function( result ) {
$scope.result = result;
}
);