This method is used to check whether a URI is on a given threatList. Multiple threatLists may be searched in a single query. The response will list all requested threatLists the URI was found to match. If the URI is not found on any of the requested ThreatList an empty response will be returned.
HTTP request
GET https://webrisk.googleapis.com/v1/uris:search
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
uri |
Required. The URI to be checked for matches. |
threatTypes[] |
Required. The ThreatLists to search in. Multiple ThreatLists may be specified. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"threat": {
object ( |
Fields | |
---|---|
threat |
The threat list matches. This might be empty if the URI is on no list. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ThreatUri
Contains threat information on a matching uri.
JSON representation |
---|
{
"threatTypes": [
enum ( |
Fields | |
---|---|
threatTypes[] |
The ThreatList this threat belongs to. |
expireTime |
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |