Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Biblioteki klienta interfejsów API Google
Biblioteki klienta interfejsów API Google, które są dostępne w wielu popularnych językach programowania, ułatwiają korzystanie z interfejsu PageSpeed Insights API.
W następujących tabelach pierwsza kolumna wskazuje etap rozwoju każdej biblioteki (zauważ, że niektóre z nich są na wczesnym etapie) oraz zawiera linki do dokumentacji biblioteki. Druga kolumna zawiera linki do dostępnych próbek dla każdej biblioteki.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eGoogle APIs Client Libraries simplify the usage of the PageSpeed Insights API and are available in various programming languages.\u003c/p\u003e\n"],["\u003cp\u003eLibraries for Java, JavaScript, .NET, Objective-C, PHP, and Python are provided with links to their documentation and code samples.\u003c/p\u003e\n"],["\u003cp\u003eEarly-stage libraries for Dart, Go, Node.js, and Ruby are also available with links to their respective resources.\u003c/p\u003e\n"],["\u003cp\u003eFor support or feedback, users can utilize Stack Overflow for specific questions or the PageSpeed Insights mailing list for general inquiries.\u003c/p\u003e\n"]]],["Google offers client libraries to facilitate the use of the PageSpeed Insights API across various programming languages. Libraries are available for Java, JavaScript, .NET, Objective-C, PHP, and Python, along with early-stage libraries for Dart, Go, Node.js, and Ruby. Each library's documentation and available code samples are linked. For specific questions, users are directed to Stack Overflow, while general discussions are encouraged via a mailing list.\n"],null,["# Libraries and Samples\n\nGoogle APIs Client Libraries\n----------------------------\n\nThe Google APIs client libraries, which are available in a number of popular programming languages, make it easy to use the PageSpeed Insights API.\n\nIn the following tables, the first column shows each library's stage of development (note that\nsome are in early stages), and links to documentation for the library. The second column links to\navailable samples for each library.\n\n| Documentation | Samples |\n| [Google API Client Library for Java](https://developers.google.com/api-client-library/java/) | [Java samples](/api-client-library/java/apis/pagespeedonline/v5) |\n| [Google API Client Library for JavaScript](/api-client-library/javascript/start/start-js) | [JavaScript samples](/api-client-library/javascript/samples/samples) |\n| [Google API Client Library for .NET](/api-client-library/dotnet/get_started) | [.NET samples](/api-client-library/dotnet/apis/pagespeedonline/v5) |\n| [Google API Client Library for Objective-C for REST](https://github.com/google/google-api-objectivec-client-for-rest) | [Objective-C samples](https://github.com/google/google-api-objectivec-client-for-rest/tree/master/Examples) |\n| [Google API Client Library for PHP ()](/api-client-library/php) | [PHP samples](https://github.com/google/google-api-php-client/tree/master/examples) |\n| [Google API Client Library for Python (v1/v2)](/api-client-library/python) | [Python samples](https://github.com/google/google-api-python-client/tree/master/samples) |\n|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n\nThese early-stage libraries are also available:\n\n| Documentation | Samples |\n| [Google APIs Client Libraries for Dart (beta)](https://pub.dartlang.org/packages/googleapis) | [Dart samples](https://github.com/dart-lang/googleapis_examples) |\n| [Google API Client Library for Go ()](https://github.com/google/google-api-go-client) | [Go samples](https://github.com/google/google-api-go-client/tree/master/examples) |\n| [Google API Client Library for Node.js (alpha)](https://github.com/google/google-api-nodejs-client/) | [Node.js samples](https://github.com/google/google-api-nodejs-client/tree/master/samples) |\n| [Google API Client Library for Ruby (alpha)](/api-client-library/ruby/start/get_started) | [Ruby samples](https://github.com/google/google-api-ruby-client-samples) |\n|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n\nFeedback\n--------\n\nWas this page helpful? \nYes Great! Thank you for the feedback. If you have a specific, answerable question about using PageSpeed Insights, ask the question in English on [Stack\n| Overflow](https://stackoverflow.com/questions/tagged/pagespeed-insights). For general questions, feedback, and discussion, start a thread in the [mailing list](https://groups.google.com/forum/#!forum/pagespeed-insights-discuss).\nNo Sorry to hear that. If you have a specific, answerable question about using PageSpeed Insights, ask the question in English on [Stack\n| Overflow](https://stackoverflow.com/questions/tagged/pagespeed-insights). For general questions, feedback, and discussion, start a thread in the [mailing list](https://groups.google.com/forum/#!forum/pagespeed-insights-discuss)."]]