Libraries and Samples

  • Google APIs Client Libraries simplify the usage of the PageSpeed Insights API and are available in various programming languages.

  • Libraries for Java, JavaScript, .NET, Objective-C, PHP, and Python are provided with links to their documentation and code samples.

  • Early-stage libraries for Dart, Go, Node.js, and Ruby are also available with links to their respective resources.

  • For support or feedback, users can utilize Stack Overflow for specific questions or the PageSpeed Insights mailing list for general inquiries.

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 following tables, 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 Java samples
Google API Client Library for JavaScript JavaScript samples
Google API Client Library for .NET .NET samples
Google API Client Library for Objective-C for REST Objective-C samples
Google API Client Library for PHP () PHP samples
Google API Client Library for Python (v1/v2) Python samples

These early-stage libraries are also available:

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

Feedback

Was this page helpful?