Check up to 500 URLs against Safe Browsing threat lists.
POST/threatMatches:find
- Takes: URL
- Takes: Domain
- Passive: the target is not contacted
Returns a match for each URL and list it appears on. Use the url field in threatEntries, not hash. Metadata is currently available only for the MALWARE / WINDOWS / URL list.
Request body (JSON) · 6ShowHide
clientId
Identifies the client implementation, not a user
clientVersion
Version of the client
threatTypes[]
Threat lists to check, for example MALWARE or SOCIAL_ENGINEERING
platformTypes[]
Platforms to check, for example WINDOWS
threatEntryTypes[]
Entry types, for example URL
url
URL to check (up to 500)
Response fields · 6ShowHide
threatType
The list that matched
platformType
Platform of the list
threatEntryType
Entry type of the list
url
The URL that matched
threatEntryMetadata
Optional metadata for the match
cacheDuration
How long the URL must be treated as unsafe
curl -X POST 'https://safebrowsing.googleapis.com/v4/threatMatches:find?key=YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"client":{"clientId":"example-client","clientVersion":"1.0"},"threatInfo":{"threatTypes":["MALWARE","SOCIAL_ENGINEERING"],"platformTypes":["WINDOWS"],"threatEntryTypes":["URL"],"threatEntries":[{"url":"http://example.com/"}]}}'{
"matches": [
{
"threatType": "MALWARE",
"platformType": "WINDOWS",
"threatEntryType": "URL",
"threat": {
"url": "http://example.com/"
},
"cacheDuration": "300.000s"
}
]
}