PageSpeed Insights

Libraries and Samples

Featured samples for the PageSpeed Insights API

An easy way to learn how to use an API can be to look at sample code. This section highlights interesting samples for the PageSpeed Insights API.

Language Featured samples API version
Python

PageSpeed Regression Test for App Engine (coming soon)

Integrate with your App Engine push scripts to automatically catch performance regressions before they go live to users of your site.

1.0

Google APIs Client Libraries

The Google APIs client libraries, which are available in a number of popular programming languages, make it easy to use the PageSpeed Insights API.

In the tables below, the first column shows each library's stage of development; note that some are still in early stages. The second column links to the main page for each library.

The set of mature libraries includes:

Client library Documentation All client library samples
Google APIs Client Library for .NET Google APIs Client Library for .NET .NET samples
Google APIs Client Library for Java (rc) google-api-java-client/ Java samples
Google APIs Client Library for JavaScript (beta) Google APIs Client Library for JavaScript JavaScript samples
Google APIs Client Library for Objective-C google-api-objectivec-client/ Objective-C samples
Google APIs Client Library for PHP (beta) google-api-php-client PHP samples
Google APIs Client Library for Python Google APIs Client Library for Python Python samples

These early-stage libraries are also available:

Client library Documentation All client library samples
Google APIs Client Library for Go (alpha) google-api-go-client/ Go samples
Google API Libraries for Google Web Toolkit (alpha) gwt-google-apis/ GWT samples
Google APIs Client Library for Node.js (alpha) google-api-nodejs-client/ Node.js samples
Google APIs Client Library for Ruby (alpha) Google APIs Client Library for Ruby Ruby samples

In addition to the Google-supported client libraries listed in the table above, a set of third-party Dart libraries (with samples) is available for the Dart language.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.