My Business Business Information API

My Business Business Information API 提供介面,可用於管理 Google 上的商家資訊。注意:如果啟用 API 後配額為 0,請前往 https://developers.google.com/my-business/content/prereqs#request-access 申請 GBP API 存取權。

服務:mybusinessbusinessinformation.googleapis.com

如要呼叫這項服務,建議您使用 Google 提供的用戶端程式庫。如果您的應用程式需要使用自己的程式庫呼叫這項服務,請在發出 API 要求時使用下列資訊。

導覽文件

導覽文件是一種機器可讀的規格,用於說明和使用 REST API。此文件用於建構用戶端程式庫、IDE 外掛程式,以及與 Google API 互動的其他工具。一項服務可能會提供多個導覽文件。此服務提供下列導覽文件:

服務端點

服務端點是指定 API 服務網路位址的基準網址。一項服務可能有多個服務端點。這項服務有以下服務端點,且下方的 URI 皆以此服務端點為基準:

  • https://mybusinessbusinessinformation.googleapis.com

REST 資源:v1.accounts.locations

方法
create POST /v1/{parent=accounts/*}/locations
建立新的位置,由登入的使用者擁有。
list GET /v1/{parent=accounts/*}/locations
列出指定帳戶的地點。

REST 資源:v1.attributes

方法
list GET /v1/attributes
傳回指定主要類別和國家/地區的地點可用屬性清單。

REST 資源:v1.categories

方法
batchGet GET /v1/categories:batchGet
傳回指定語言和 GConcept ID 的業務類別清單。
list GET /v1/categories
傳回業務類別清單。

REST 資源:v1.chains

方法
get GET /v1/{name=chains/*}
取得指定鏈結。
search GET /v1/chains:search
根據連鎖店名稱搜尋連鎖店。

REST 資源:v1.googleLocations

方法
search POST /v1/googleLocations:search
搜尋所有可能符合指定要求的位置。

REST 資源:v1.locations

方法
delete DELETE /v1/{name=locations/*}
刪除位置。
get GET /v1/{name=locations/*}
傳回商家最後設定的指定位置。
getAttributes GET /v1/{name=locations/*/attributes}
擷取商家上次設定的地點屬性。
getGoogleUpdated GET /v1/{name=locations/*}:getGoogleUpdated
傳回 Google 地圖和 Google 搜尋上顯示的指定地點。
patch PATCH /v1/{location.name=locations/*}
更新指定位置。
updateAttributes PATCH /v1/{attributes.name=locations/*/attributes}
更新指定地點的屬性。

REST 資源:v1.locations.attributes

方法
getGoogleUpdated GET /v1/{name=locations/*/attributes}:getGoogleUpdated
擷取 Google 地圖和 Google 搜尋上顯示的地點屬性。

REST 資源:v1alpha.accounts.locations

方法
create POST /v1alpha/{parent=accounts/*}/locations
建立新的位置,由登入的使用者擁有。
list GET /v1alpha/{parent=accounts/*}/locations
列出指定帳戶的地點。

REST 資源:v1alpha.attributes

方法
list GET /v1alpha/attributes
傳回指定主要類別和國家/地區的地點可用屬性清單。

REST 資源:v1alpha.categories

方法
batchGet GET /v1alpha/categories:batchGet
傳回指定語言和 GConcept ID 的業務類別清單。
list GET /v1alpha/categories
傳回業務類別清單。

REST 資源:v1alpha.chains

方法
get GET /v1alpha/{name=chains/*}
取得指定鏈結。
search GET /v1alpha/chains:search
根據連鎖店名稱搜尋連鎖店。

REST 資源:v1alpha.googleLocations

方法
search POST /v1alpha/googleLocations:search
搜尋所有可能符合指定要求的位置。

REST 資源:v1alpha.locations

方法
delete DELETE /v1alpha/{name=locations/*}
刪除位置。
get GET /v1alpha/{name=locations/*}
傳回商家最後設定的指定位置。
getAttributes GET /v1alpha/{name=locations/*/attributes}
擷取商家上次設定的地點屬性。
getExtended GET /v1alpha/{name=locations/*}:getExtended
傳回指定位置和擴充中繼資料。
getGoogleUpdated GET /v1alpha/{name=locations/*}:getGoogleUpdated
傳回 Google 地圖和 Google 搜尋上顯示的指定地點。
patch PATCH /v1alpha/{location.name=locations/*}
更新指定位置。
updateAttributes PATCH /v1alpha/{attributes.name=locations/*/attributes}
更新指定地點的屬性。

REST 資源:v1alpha.locations.attributes

方法
getExtended GET /v1alpha/{name=locations/*/attributes}:getExtended
傳回指定屬性,並附上擴充中繼資料。
getGoogleUpdated GET /v1alpha/{name=locations/*/attributes}:getGoogleUpdated
擷取 Google 地圖和 Google 搜尋上顯示的地點屬性。