Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
使用用戶端程式庫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google 我的商家 API 用戶端程式庫提供更完善的語言整合功能,並簡化使用者驗證程序。
使用 Google My Business API 前,您必須先註冊應用程式並取得 OAuth 2.0 憑證。如要瞭解如何開始使用 Google My Business API,請參閱基本設定。
注意:這些操作說明假設您使用類似 Unix 的環境。
下載用戶端程式庫
前往「程式庫」頁面,取得最新版 Google My Business API 用戶端程式庫。
Google My Business API 用戶端程式庫會使用 Google API 用戶端程式庫處理錯誤、管理要求和回應、OAuth,以及其他常見功能。
如果無法下載所選程式設計語言的支援項目,您可以利用探索文件自動產生自己的用戶端程式庫。
用戶端程式庫使用範例
請前往 GitHub 查看及下載使用用戶端程式庫的完整範例。
除非另有註明,否則本頁面中的內容是採用創用 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 offer better language integration and easier user authentication.\u003c/p\u003e\n"],["\u003cp\u003eYou must register your application and get OAuth 2.0 credentials before using the Google My Business API, with setup details available in the Basic Setup guide.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries can be downloaded from the Libraries page, and a discovery document is provided to assist in generating custom libraries for unsupported languages.\u003c/p\u003e\n"],["\u003cp\u003eFor usage examples and complete samples, refer to the Google My Business samples on GitHub.\u003c/p\u003e\n"]]],["To use the Google My Business API, register your application and obtain OAuth 2.0 credentials. Client libraries, which offer improved language integration and user authentication, can be downloaded from the Libraries page. These libraries utilize Google API Client Libraries for core functionalities. If a specific language isn't supported, a Discovery document aids in generating custom libraries. Full usage examples are available on GitHub. The setup assumes a Unix-like environment.\n"],null,["# Work with client libraries\n\n\u003cbr /\u003e\n\nThe Google My Business API client libraries provide improved language integration and\nsimplified user authentication.\n\nBefore working with the Google My Business API you need to register your application and\nobtain OAuth 2.0 credentials. See [Basic Setup](/my-business/content/basic-setup) for details on\nhow to start working with the Google My Business API.\n\n**Note**: These instructions assume a Unix-like environment.\n\nClient library downloads\n------------------------\n\nVisit the [Libraries](/my-business/samples) page to get the latest\nGoogle My Business API client libraries.\n\nThe Google My Business API client library makes use of the [Google API Client\nLibraries](/api-client-library) for error handling, managing requests and\nresponses, OAuth, and other common functionality.\n\nA [Discovery document](/my-business/samples#discovery_document) is available to\naid in auto-generating your own client libraries if support for your programming\nlanguage of choice is not available for download.\n\nExample client library usage\n----------------------------\n\nVisit [GitHub](https://github.com/google/google-my-business-samples) to view and\ndownload full samples of working with client libraries."]]