瞭解詳情
一般設定
如果使用 Lookup API 或 Update API
必須擁有 Google 帳戶、Google Developer Console 專案及 API 金鑰。您也需要
啟用 Safe Browsing API,以便在專案中使用。
如需有關下列步驟的進一步協助,請參閱
Google API 控制台說明中心。
1. 建立帳戶
您需要有 Google 帳戶才能建立專案。如果您還沒有帳戶
前往建立 Google 帳戶頁面註冊。
2. 建立專案
您必須擁有 Google Developer Console 專案,才能建立 API 金鑰。如果您不
已有專案,請參閱
建立、關閉及還原專案。
3. 設定 API 金鑰
您需要 API 金鑰才能存取 Safe Browsing API。API 金鑰能驗證你的身分
API 使用者,且可讓您與 API 互動。您將這個鍵做為網址參數在
將 HTTP 要求傳送至安全瀏覽伺服器舉例來說,您可以將 API 金鑰換成
API_KEY
顯示在這裡:
https://safebrowsing.googleapis.com/v4/...?key=API_KEY
如要設定 API 金鑰,請參閱
設定 API 金鑰。
新的 API 金鑰會顯示在表格中,請視需要複製及貼上這組金鑰。
4. 啟用 API
最後,您需要啟用 Safe Browsing API,以便用於專案。學習
操作方法,請參閱
啟用及停用 API。啟用的 API 稱為「Safe Browsing API」。
資料庫設定
如果您使用 Update API,則也必須設定本機資料庫。
安全瀏覽功能會提供 Go 套件,讓你用來開始行程。
如需更多資訊,請參閱「資料庫設定」一節下方的
本機資料庫。
使用 API
開始前,請先詳閱我們的《服務條款》和
價格指南。此外,請詳閱並確定您瞭解
Safe Browsing API 的使用限制。
如要開始使用 Safe Browsing API,請參閱下列指南:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-11 (世界標準時間)。
[null,null,["上次更新時間:2024-10-11 (世界標準時間)。"],[[["To use the Safe Browsing Lookup or Update API, you need a Google Account, a Google Developer Console project, an API key, and activated Safe Browsing APIs."],["Setting up involves creating an account and project, obtaining an API key via the Google Developer Console, and activating the \"Safe Browsing APIs\" for your project."],["The Update API requires a local database setup using provided tools and guidance."],["Before using the APIs, review the Terms of Service, Pricing, and Usage Limits for compliance and understanding."],["Detailed guides are available for utilizing the Lookup API (v4) and Update API (v4)."]]],["To use the Safe Browsing APIs, you need a Google Account, a Developer Console project, and an API key. First, create a Google Account and a Developer Console project. Then, set up an API key for authentication and copy it for use in HTTP requests. Finally, activate the \"Safe Browsing APIs\" for your project. Update API users must also set up a local database, referencing the provided guide. Always review the Terms of Service, Pricing, and Usage Limits.\n"]]