Safe Browsing API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
讓用戶端應用程式可將網頁資源 (通常是網址) 與 Google 產生的不安全網頁資源清單進行比對。Safe Browsing API 僅供非商業用途使用。如果您需要使用 API 偵測惡意網址,以便用於商業用途 (也就是「用於銷售或創造收益」),請參閱 Web Risk API。
服務:safebrowsing.googleapis.com
需要服務名稱 safebrowsing.googleapis.com
才能建立遠端程序呼叫 (RPC) 用戶端虛設常式。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe Safe Browsing APIs enable client applications to cross-reference web resources, primarily URLs, against Google's lists of unsafe web resources for non-commercial use only.\u003c/p\u003e\n"],["\u003cp\u003eFor commercial purposes, including "for sale or revenue-generating purposes," the Web Risk API should be used instead of the Safe Browsing APIs.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need the service name \u003ccode\u003esafebrowsing.googleapis.com\u003c/code\u003e for creating RPC client stubs when interacting with the API.\u003c/p\u003e\n"],["\u003cp\u003eThe Safe Browsing APIs offer various functionalities such as fetching threat list updates, finding full hashes and threat matches, listing available threat lists, searching for specific hashes, and managing hash lists.\u003c/p\u003e\n"]]],["The Safe Browsing APIs enable checking web resources against Google's unsafe web resource lists for non-commercial use. The service `safebrowsing.googleapis.com` facilitates this. Core actions include fetching threat list updates, finding full hash matches, and identifying threat entries. Users can also list available threat lists. The service offers multiple methods for searching hashes. For commercial use, the Web Risk API should be used instead. Three versions of the service are documented with specific actions for each.\n"],null,["# Safe Browsing API\n\nEnables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes -- meaning \"for sale or revenue-generating purposes\" -- please refer to the Web Risk API.\n\nService: safebrowsing.googleapis.com\n------------------------------------\n\nThe Service name `safebrowsing.googleapis.com` is needed to create RPC client stubs.\n\n[google.security.safebrowsing.v4.SafeBrowsing](/safe-browsing/reference/rpc/google.security.safebrowsing.v4#google.security.safebrowsing.v4.SafeBrowsing)\n---------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| [FetchThreatListUpdates](/safe-browsing/reference/rpc/google.security.safebrowsing.v4#google.security.safebrowsing.v4.SafeBrowsing.FetchThreatListUpdates) | Fetches the most recent threat list updates. |\n| [FindFullHashes](/safe-browsing/reference/rpc/google.security.safebrowsing.v4#google.security.safebrowsing.v4.SafeBrowsing.FindFullHashes) | Finds the full hashes that match the requested hash prefixes. |\n| [FindThreatMatches](/safe-browsing/reference/rpc/google.security.safebrowsing.v4#google.security.safebrowsing.v4.SafeBrowsing.FindThreatMatches) | Finds the threat entries that match the Safe Browsing lists. |\n| [ListThreatLists](/safe-browsing/reference/rpc/google.security.safebrowsing.v4#google.security.safebrowsing.v4.SafeBrowsing.ListThreatLists) | Lists the Safe Browsing threat lists available for download. |\n\n[google.security.safebrowsing.v5.SafeBrowsing](/safe-browsing/reference/rpc/google.security.safebrowsing.v5#google.security.safebrowsing.v5.SafeBrowsing)\n---------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| [BatchGetHashLists](/safe-browsing/reference/rpc/google.security.safebrowsing.v5#google.security.safebrowsing.v5.SafeBrowsing.BatchGetHashLists) | Get multiple hash lists at once. |\n| [GetHashList](/safe-browsing/reference/rpc/google.security.safebrowsing.v5#google.security.safebrowsing.v5.SafeBrowsing.GetHashList) | Get the latest contents of a hash list. |\n| [ListHashLists](/safe-browsing/reference/rpc/google.security.safebrowsing.v5#google.security.safebrowsing.v5.SafeBrowsing.ListHashLists) | List hash lists. |\n| [SearchHashes](/safe-browsing/reference/rpc/google.security.safebrowsing.v5#google.security.safebrowsing.v5.SafeBrowsing.SearchHashes) | Search for full hashes matching the specified prefixes. |\n\n[google.security.safebrowsing.v5alpha1.SafeBrowsing](/safe-browsing/reference/rpc/google.security.safebrowsing.v5alpha1#google.security.safebrowsing.v5alpha1.SafeBrowsing)\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| [BatchGetHashLists](/safe-browsing/reference/rpc/google.security.safebrowsing.v5alpha1#google.security.safebrowsing.v5alpha1.SafeBrowsing.BatchGetHashLists) | Get multiple hash lists at once. |\n| [GetHashList](/safe-browsing/reference/rpc/google.security.safebrowsing.v5alpha1#google.security.safebrowsing.v5alpha1.SafeBrowsing.GetHashList) | Get the latest contents of a hash list. |\n| [ListHashLists](/safe-browsing/reference/rpc/google.security.safebrowsing.v5alpha1#google.security.safebrowsing.v5alpha1.SafeBrowsing.ListHashLists) | List hash lists. |\n| [SearchHashes](/safe-browsing/reference/rpc/google.security.safebrowsing.v5alpha1#google.security.safebrowsing.v5alpha1.SafeBrowsing.SearchHashes) | Search for full hashes matching the specified prefixes. |"]]