推出全新商家檔案 API 功能
現在您可以在
Reviews API 中,查看遭拒評論回覆的具體違規事項。如要查看所有最新的 Google 商家檔案 API 更新,請前往「
最新消息」頁面。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Business Information API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
變更記錄檔
v1
API 存取
您必須透過 GCP 主控台啟用 Business Information API。OAuth 範圍保持不變。
端點網址
所有商家資訊、屬性、類別、連鎖店和地點搜尋的端點可透過 https://mybusinessbusinessinformation.googleapis.com/v1/ 存取,而非 https://mybusiness.googleapis.com/v4/
位置端點的路徑名稱已從 accounts/accountId/locations/locationId 變更為 locations/locationId
位置更新
locationName 已重新命名為 title。
websiteUrl 已重新命名為 websiteUri。
accounts.locations.list 和 locations.get 現在需要 readMask。
primaryPhone 和 additionalPhones 現已是 PhoneNumbers 的一部分。
primaryCategory 和 additionalCategories 現已納入類別。
address 已重新命名為 storefrontAddress。
accounts.locations.clearAssociation 已更新為 locations.clearLocationAssociation。
serviceItems 現在會直接從 Location 物件讀取及更新。
屬性
區域服務商家
CUSTOMER_LOCATION_ONLY 類型商家不再需要填寫地址。
- 在 ServiceAreaBusiness 中新增
regionCode。必須為 CUSTOMER_LOCATION_ONLY 類型的商家設定。
已淘汰的端點和物件
- 移除
LocationKey 物件。現有的欄位已移至「中繼資料」。
- 移除
PriceLists 物件。已由 FoodMenus 和 ServiceLists 取代。
- 移除
LocationState 物件。大多數現有欄位已移至「中繼資料」。雖然「Metadata」包含布林值,可用來查看商家是否擁有商家 (商家聲音) 的完整控制權,但與停權和驗證相關的詳細欄位已移至 Verifications API。如要取得商家語音,請在後續步驟中使用 locations.getVoiceOfMerchantState 方法。
- 端點
googleLocations.report 和 accounts.locations.findMatchingLocations 已淘汰。
TransferLocation 端點已移至 Account Management API 下的 locations.transfer。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-29 (世界標準時間)。"],[],["The Business Information API requires enabling in the GCP Console, with a new endpoint URL: `https://mybusinessbusinessinformation.googleapis.com/v1/`. Location endpoints' path changed to `locations/locationId`. Updates include renaming fields like `locationName` to `title` and incorporating `PhoneNumbers` and `Categories`. `Attributes` now includes a `getGoogleUpdated` endpoint, with `show_all` parameter. Service area businesses (type `CUSTOMER_LOCATION_ONLY`) now require `regionCode`. Deprecated objects include `LocationKey`, `PriceLists`, `LocationState`, and removed endpoints `googleLocations.report`, `accounts.locations.findMatchingLocations`, and `TransferLocation` moved.\n"]]