Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
My Business Account Management API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
My Business Account Management API 提供管理 Google 地點存取權的介面。
注意:如果您在啟用 API 後獲得 0 的配額,請申請 GBP API 存取權。
服務:mybusinessaccountmanagement.googleapis.com
如要呼叫這項服務,建議您使用 Google 提供的用戶端程式庫。如果應用程式需要使用您自己的程式庫來呼叫這項服務,請在提出 API 要求時使用下列資訊。
探索文件
探索文件是一種機器可解讀的規格,用於說明和使用 REST API。此文件用於建構用戶端程式庫、IDE 外掛程式,以及與 Google API 互動的其他工具。一項服務可能會提供多個探索文件。這項服務提供下列探索文件:
服務端點
服務端點是指定 API 服務網路位址的基準網址。一項服務可能有多個服務端點。這項服務有以下服務端點,且下方的 URI 皆以此服務端點為基準:
https://mybusinessaccountmanagement.googleapis.com
方法 |
create |
POST /v1/accounts
在指定父項底下以指定名稱和類型建立帳戶。 |
get |
GET /v1/{name=accounts/*}
取得指定帳戶。 |
list |
GET /v1/accounts
列出已驗證使用者的所有帳戶。 |
patch |
PATCH /v1/{account.name=accounts/*}
更新指定的商家帳戶。 |
方法 |
create |
POST /v1/{parent=accounts/*}/admins
邀請指定使用者成為指定帳戶的管理員。 |
delete |
DELETE /v1/{name=accounts/*/admins/*}
從指定帳戶中移除指定管理員。 |
list |
GET /v1/{parent=accounts/*}/admins
列出指定帳戶的管理員。 |
patch |
PATCH /v1/{accountAdmin.name=accounts/*/admins/*}
更新指定帳戶管理員。 |
方法 |
accept |
POST /v1/{name=accounts/*/invitations/*}:accept
接受指定的邀請。 |
decline |
POST /v1/{name=accounts/*/invitations/*}:decline
拒絕指定的邀請。 |
list |
GET /v1/{parent=accounts/*}/invitations
列出指定帳戶的待處理邀請。 |
方法 |
transfer |
POST /v1/{name=locations/*}:transfer
將營業地點從使用者擁有的帳戶移至同一個使用者管理的其他帳戶。 |
方法 |
create |
POST /v1/{parent=locations/*}/admins
邀請指定的使用者成為指定位置的管理員。 |
delete |
DELETE /v1/{name=locations/*/admins/*}
移除指定營業地點管理員的管理員身分。 |
list |
GET /v1/{parent=locations/*}/admins
列出指定位置的所有管理員。 |
patch |
PATCH /v1/{locationAdmin.name=locations/*/admins/*} 更新指定位置的管理員。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe My Business Account Management API allows you to manage access to Google Business Profile locations.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manage Google Business Profile accounts, including inviting and removing administrators.\u003c/p\u003e\n"],["\u003cp\u003eThe API enables managing location access, including transferring locations between accounts and managing location administrators.\u003c/p\u003e\n"],["\u003cp\u003eUsers with a quota of 0 after enabling the API should request GBP API access for full functionality.\u003c/p\u003e\n"]]],[],null,["# My Business Account Management API\n\nThe My Business Account Management API provides an interface for managing access to a location on Google. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.accounts](#v1.accounts)\n- [REST Resource: v1.accounts.admins](#v1.accounts.admins)\n- [REST Resource: v1.accounts.invitations](#v1.accounts.invitations)\n- [REST Resource: v1.locations](#v1.locations)\n- [REST Resource: v1.locations.admins](#v1.locations.admins)\n\nService: mybusinessaccountmanagement.googleapis.com\n---------------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://mybusinessaccountmanagement.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://mybusinessaccountmanagement.googleapis.com`\n\nREST Resource: [v1.accounts](/my-business/reference/accountmanagement/rest/v1/accounts)\n---------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/accounts/create) | `POST /v1/accounts` Creates an account with the specified name and type under the given parent. |\n| [get](/my-business/reference/accountmanagement/rest/v1/accounts/get) | `GET /v1/{name=accounts/*}` Gets the specified account. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts/list) | `GET /v1/accounts` Lists all of the accounts for the authenticated user. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/accounts/patch) | `PATCH /v1/{account.name=accounts/*}` Updates the specified business account. |\n\nREST Resource: [v1.accounts.admins](/my-business/reference/accountmanagement/rest/v1/accounts.admins)\n-----------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/accounts.admins/create) | `POST /v1/{parent=accounts/*}/admins` Invites the specified user to become an administrator for the specified account. |\n| [delete](/my-business/reference/accountmanagement/rest/v1/accounts.admins/delete) | `DELETE /v1/{name=accounts/*/admins/*}` Removes the specified admin from the specified account. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts.admins/list) | `GET /v1/{parent=accounts/*}/admins` Lists the admins for the specified account. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/accounts.admins/patch) | `PATCH /v1/{accountAdmin.name=accounts/*/admins/*}` Updates the Admin for the specified Account Admin. |\n\nREST Resource: [v1.accounts.invitations](/my-business/reference/accountmanagement/rest/v1/accounts.invitations)\n---------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [accept](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/accept) | `POST /v1/{name=accounts/*/invitations/*}:accept` Accepts the specified invitation. |\n| [decline](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/decline) | `POST /v1/{name=accounts/*/invitations/*}:decline` Declines the specified invitation. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/list) | `GET /v1/{parent=accounts/*}/invitations` Lists pending invitations for the specified account. |\n\nREST Resource: [v1.locations](/my-business/reference/accountmanagement/rest/v1/locations)\n-----------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [transfer](/my-business/reference/accountmanagement/rest/v1/locations/transfer) | `POST /v1/{name=locations/*}:transfer` Moves a location from an account that the user owns to another account that the same user administers. |\n\nREST Resource: [v1.locations.admins](/my-business/reference/accountmanagement/rest/v1/locations.admins)\n-------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/locations.admins/create) | `POST /v1/{parent=locations/*}/admins` Invites the specified user to become an administrator for the specified location. |\n| [delete](/my-business/reference/accountmanagement/rest/v1/locations.admins/delete) | `DELETE /v1/{name=locations/*/admins/*}` Removes the specified admin as a manager of the specified location. |\n| [list](/my-business/reference/accountmanagement/rest/v1/locations.admins/list) | `GET /v1/{parent=locations/*}/admins` Lists all of the admins for the specified location. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/locations.admins/patch) | `PATCH /v1/{locationAdmin.name=locations/*/admins/*}` Updates the Admin for the specified location. |"]]