Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
舊版本
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google My Business API 用戶端程式庫會包裝 Google My Business API 的功能,並提供所有 Google API 的共同功能,例如 HTTP 傳輸、錯誤處理、驗證、JSON 剖析,以及支援通訊協定緩衝區。以下是過去的用戶端程式庫和應用程式範例:
v4.9
您可以下載下列 Java 和 PHP 用戶端程式庫:
下載 Java 用戶端程式庫 (含原始碼)
下載 C# 用戶端程式庫
下載 PHP 用戶端程式庫
如要瞭解如何將 Java 用戶端程式庫整合至應用程式,請參閱「如何使用用戶端程式庫」。
您可以使用 Gradle 準備 Java 範例應用程式,以便在 Eclipse IDE 中使用。詳情請參閱「Eclipse 外掛程式」。
探索文件
Google My Business API 探索文件是 JSON 文件,用於說明特定 API 版本的介面。您可以將探索文件與 Google API 探索服務搭配使用。
下載探索文件
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[[["\u003cp\u003eThe Google My Business API client libraries simplify interactions with the API by handling common tasks like HTTP transport, error handling, and authentication.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are available for download in Java, C#, and PHP, along with sample applications and instructions for integration.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the Google My Business API discovery document, a JSON file describing the API's surface, in conjunction with the Google API Discovery Service.\u003c/p\u003e\n"]]],["The Google My Business API offers client libraries with core functionalities like HTTP transport, error handling, authentication, and JSON parsing. Client libraries for Java, C#, and PHP (version v4.9) are available for download, with source code included for Java. A discovery document for the API, used with the Google API Discovery Service, can also be downloaded. Guidance is provided on integrating the Java client library and using Gradle to prepare the Java sample application.\n"],null,["# Previous versions\n\n\u003cbr /\u003e\n\nThe Google My Business API client libraries wrap the functionality of the\nGoogle My Business API, and provide functionality common to all Google APIs, for\nexample HTTP transport, error handling, authentication, JSON parsing, and\nsupport for [protocol buffers](/protocol-buffers). The following past client\nlibraries and sample applications are available:\n\nv4.9\n----\n\nThe following client libraries for Java and PHP are available for you to\ndownload:\n\n[Download Java client library (with source)](/static/my-business/samples/google-api-services-mybusiness-v4p9-java-rev-20210224-1.zip)\n\n[Download C# client library](/static/my-business/samples/google-api-services-mybusiness-v4p9-csharp-rev-20210224-1.zip)\n\n[Download PHP client library](/static/my-business/samples/google-api-services-mybusiness-v4p9-php-rev-20210224-1.zip)\n\nTo learn how to integrate the Java client library in to your application, see\n[How to work with client libraries](/my-business/content/set-up-java-client).\n\nYou can use Gradle to prepare the Java sample application for use in the Eclipse\nIDE. See\n[Eclipse Plugins](https://docs.gradle.org/current/userguide/eclipse_plugin.html)\nto learn more.\n\n### Discovery document\n\nThe Google My Business API discovery document is a JSON document that describes the\nsurface for a particular version of the API. You use the discovery document in\nconjunction with the\n[Google API Discovery Service](/discovery).\n\n[Download discovery document](/static/my-business/samples/mybusiness_google_rest_v4p9.json)"]]