Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
必備條件
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如要順利建立第一個用戶端應用程式,請務必完成下列事前準備工作:
- 取得 Google 帳戶。
- 試用商家檔案。
- 在 Google Cloud 控制台中建立專案。
- 建立機構帳戶。
- 要求存取 API。
申請 Google 帳戶
您必須擁有 Google 帳戶,才能在 Google API 控制台中建立專案。如果已有帳戶,就可以開始使用了。
試用商家檔案
這份 API 說明文件假設您先前使用過商家檔案,也熟悉網路程式設計概念和網路資料格式。
如果您還沒用過商家檔案,請先試用使用者介面,再開始編寫程式碼。
在 Google API 控制台中建立專案
如要對商家檔案 API 發出要求,請先使用 Google API 控制台建立專案,然後為該專案要求商家檔案 API 的存取權。如要建立新專案,請前往 Google Cloud 控制台。
按一下「建立專案」,輸入名稱,然後按一下「建立」。
建立機構帳戶
如要建立機構帳戶,請前往 Google 商家檔案說明中心。
要求存取 API
如要取得 Google 商家檔案 API 的存取權,所有申請者都必須:
- 管理已通過驗證且啟用超過 60 天的 Google 商家檔案。這個 Google 商家檔案可以是申請人自己的辦公室或總部,也可以屬於他們管理的其中一位客戶。
- 擁有代表 Google 商家檔案中列出商家的網站。
為確保申請能順利及時通過審查,建議你完整填寫 Google 商家檔案,並隨時更新商家資訊,包括商家的官方網站。
符合上述條件後,請按照下列步驟要求 API 存取權:
- 前往 Google Cloud 控制台,然後選取要搭配商家檔案 API 使用的專案。
- 在專案資訊主頁的「專案資訊」資訊卡中,找出所需的專案編號。申請時必須提供此號碼。
- 準備就緒後,請使用 GBP API 聯絡表單提交要求。從下拉式選單中選取「Application for Basic API Access」(基本 API 存取權申請),並提供所有要求資訊。
- 請務必使用商家 Google 商家檔案中列為擁有者/管理員的電子郵件地址。
- 要求審查完畢後,我們會傳送後續追蹤電子郵件。
注意:如何查看核准狀態:您也可以在 Google Cloud 控制台中查看商家檔案 API 的配額,確認專案是否已獲准。
- 如果配額為 0 QPM (每分鐘查詢次數),表示專案尚未獲得核准。
- 如果配額設為 300 QPM,專案就會獲得核准。
如果應用程式獲得核准,請參閱基本設定,為專案啟用 Business Profile API。如果申請遭拒,請先確認是否符合上述規定,再重新申請。
除非另有註明,否則本頁面中的內容是採用創用 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 (世界標準時間)。"],[[["\u003cp\u003eYou need a Google Account and familiarity with Business Profile before starting.\u003c/p\u003e\n"],["\u003cp\u003eCreate a project in the Google API Console and an Organization account to access the API.\u003c/p\u003e\n"],["\u003cp\u003eRequest access to the Business Profile API via the GBP API contact form and await approval.\u003c/p\u003e\n"],["\u003cp\u003eEnable the Business Profile APIs for your project after receiving approval.\u003c/p\u003e\n"]]],[],null,[]]