Google

Web Risk API

Web Risk API endpoints from Google

Developer tools#openapi#analytics#media

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Web Risk API endpoints from Google

Endpoints 8

hashes

  • GETGets the full hashes that match the requested hash prefix/v1/hashes:search?hashPrefix=string&threatTypes=THREAT_TYPE_UNSPECIFIEDGets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side…

projects.operations

  • POSTStarts asynchronous cancellation on a long-running operation/v1/:name:cancelStarts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the…
  • GETGets the latest state of a long-running operation/v1/:nameGets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
  • DELETEDeletes a long-running operation/v1/:nameDeletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If…
  • GETLists operations that match the specified filter in the request/v1/:name/operations?filter=string&pageSize=0&pageToken=string&returnPartialSuccess=trueLists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.

projects.submissions

  • POSTCreates a Submission of a URI suspected of containing phishing content for review/v1/:parent/submissionsCreates a Submission of a URI suspected of containing phishing content for review. If the review confirms malicious phishing content, Google adds the site to…

threatLists

  • GETGets the most recent threat list diffs/v1/threatLists:computeDiff?constraints.maxDatabaseEntries=0&constraints.maxDiffEntries=0&constraints.supportedCompressions=COMPRESSION_TYPE_UNSPECIFIED&threatType=THREAT_TYPE_UNSPECIFIED&versionToken=stringGets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or…

uris

  • GETThis method is used to check whether a URI is on a given threatList/v1/uris:search?threatTypes=THREAT_TYPE_UNSPECIFIED&uri=stringThis 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…

API details

Base URL
https://webrisk.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 1 scope
An API key in the key query parameter
Operations
8 operations on 7 pathsGET 5POST 2DELETE 1
Main resources
projects.operations 4hashes 1projects.submissions 1threatLists 1uris 1
Response formats
application/json
Description format
Google API Discovery, API version v1

How to test the Web Risk API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Web Risk API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Gets the full hashes that match the requested hash prefix” (GET /v1/hashes:search?hashPrefix=string&threatTypes=THREAT_TYPE_UNSPECIFIED), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Web Risk API?

Web Risk API endpoints from Google It is listed under Developer tools and has 8 endpoints.

Who publishes the Web Risk API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Web Risk API?

Requests go to https://webrisk.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the Web Risk API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 1 scope; an API key in the key query parameter.

How many endpoints does the Web Risk API have?

8 operations on 7 paths (5 GET, 2 POST, 1 DELETE). The largest groups are projects.operations, hashes, projects.submissions, threatLists.

Is forking the Web Risk API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.