Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Web Risk Uris API
version: v1
description: Generated from Google's published Discovery document for Web Risk API (webrisk v1, revision 20261106). 1 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://webrisk.googleapis.com
tags:
- name: Uris
paths:
/v1/uris:search:
get:
operationId: webrisk.uris.search
summary: Search uris
description: 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.
parameters:
- name: threatTypes
in: query
required: false
description: Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
schema:
type: array
items:
type: string
enum:
- THREAT_TYPE_UNSPECIFIED
- MALWARE
- SOCIAL_ENGINEERING
- UNWANTED_SOFTWARE
- SOCIAL_ENGINEERING_EXTENDED_COVERAGE
- name: uri
in: query
required: false
description: Required. The URI to be checked for matches.
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleCloudWebriskV1SearchUrisResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/cloud-platform
- apiKey: []
tags:
- Uris
components:
schemas:
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
GoogleCloudWebriskV1SearchUrisResponse:
properties:
threat:
$ref: '#/components/schemas/GoogleCloudWebriskV1SearchUrisResponseThreatUri'
description: The threat list matches. This might be empty if the URI is on no list.
type: object
GoogleCloudWebriskV1SearchUrisResponseThreatUri:
properties:
expireTime:
type: string
format: google-datetime
description: The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
threatTypes:
type: array
items:
type: string
enum:
- THREAT_TYPE_UNSPECIFIED
- MALWARE
- SOCIAL_ENGINEERING
- UNWANTED_SOFTWARE
- SOCIAL_ENGINEERING_EXTENDED_COVERAGE
description: The ThreatList this threat belongs to.
type: object
description: Contains threat information on a matching uri.
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
externalDocs:
url: https://cloud.google.com/web-risk/
x-provenance:
method: harvested
publisher: Google
source: https://webrisk.googleapis.com/$discovery/rest?version=v1
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)