Safe Browsing API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
让客户端应用能够根据 Google 生成的不安全网络资源列表检查网络资源(最常见的是网址)。Safe Browsing API 仅供非商业用途。如果您需要出于商业目的(即“出于销售或创收目的”)使用 API 检测恶意网址,请参阅 Web Risk API。
服务:safebrowsing.googleapis.com
创建 RPC 客户端存根需要名为 safebrowsing.googleapis.com
的服务。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]