class Pagespeedapi extends Resource (View source)

The "pagespeedapi" collection of methods.

Typical usage is:

 $pagespeedonlineService = new Google\Service\PagespeedInsights(...);
 $pagespeedapi = $pagespeedonlineService->pagespeedapi;

Methods

runpagespeed(string $url, array $optParams = [])

Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information. (pagespeedapi.runpagespeed)

Details

PagespeedApiPagespeedResponseV5 runpagespeed(string $url, array $optParams = [])

Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information. (pagespeedapi.runpagespeed)

Parameters

string $url

Required. The URL to fetch and analyze

array $optParams

Optional parameters.

Return Value

PagespeedApiPagespeedResponseV5

Exceptions

Exception