Skip to content
OSINTtools.io

Google Safe Browsing API API

Google's API for checking URLs against its constantly updated lists of phishing, malware and unwanted software sites.

Base URL
https://safebrowsing.googleapis.com/v4
Sign-in
API key
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from developers.google.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Safe Browsing Lookup API (v4) checks URLs against Google's lists of unsafe web resources, such as phishing and malware pages. You send URLs in a POST request and Google's server says which ones match a list. The server sees the URLs you send.

The docs mark the v4 APIs as deprecated and point to a migration guide, and say they are for non-commercial use only (commercial use goes to the Web Risk API). The Update API, which downloads hash lists to check locally, is separate and not described here.

A request can include up to 500 URLs. An empty response body means nothing matched. Each match carries a cacheDuration telling how long the URL must be treated as unsafe.

Quick start

  1. Get a key

    Create an account with Google Safe Browsing API and copy your api key. Where to get it

  2. Make your first request

    Check up to 500 URLs against Safe Browsing threat lists.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    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/"}]}}'
  3. Read the response

    A 200 response looks like this.

    {
      "matches": [
        {
          "threatType": "MALWARE",
          "platformType": "WINDOWS",
          "threatEntryType": "URL",
          "threat": {
            "url": "http://example.com/"
          },
          "cacheDuration": "300.000s"
        }
      ]
    }

Authentication

Send your API key in the key query parameter of every request.

Get a key from Google Safe Browsing API

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Lookup

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) · 6Show

clientIdstringalways present

Identifies the client implementation, not a user

clientVersionstringalways present

Version of the client

threatTypes[]stringalways present

Threat lists to check, for example MALWARE or SOCIAL_ENGINEERING

platformTypes[]stringalways present

Platforms to check, for example WINDOWS

threatEntryTypes[]stringalways present

Entry types, for example URL

urlstringalways present

URL to check (up to 500)

Response fields · 6Show

threatTypestring

The list that matched

platformTypestring

Platform of the list

threatEntryTypestring

Entry type of the list

urlstring

The URL that matched

threatEntryMetadataobject

Optional metadata for the match

cacheDurationstring

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/"}]}}'
Replace YOUR_API_KEY with your key
Response
{
  "matches": [
    {
      "threatType": "MALWARE",
      "platformType": "WINDOWS",
      "threatEntryType": "URL",
      "threat": {
        "url": "http://example.com/"
      },
      "cacheDuration": "300.000s"
    }
  ]
}