Click here to see your recently viewed pages and most viewed pages.
Hide

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 in early stages), and links to documentation for the library. The second column links to available samples for each library.

Documentation Samples
Google API Client Library for Java (rc) Java samples
Google APIs Client Library for JavaScript (beta) JavaScript samples
Google APIs Client Library for .NET .NET samples
Google APIs Client Library for Objective-C Objective-C samples
Google APIs Client Library for PHP (beta) PHP samples
Google APIs Client Library for Python Python samples

These early-stage libraries are also available:

Documentation Samples
Google APIs Client Libraries for Dart (beta) Dart samples
Google APIs Client Library for Go (alpha) Go samples
Google APIs Client Library for Node.js (alpha) Node.js samples
Google APIs Client Library for Ruby (alpha) Ruby samples