Security related services

Google Safe Browsing API

by developers.google.com

Security related services Added on October 31st, 2026 Checked and working on November 15th, 2026
Visit developers.google.com →

What it does

The Google Safe Browsing API checks URLs against Google's constantly updated lists of unsafe web resources: malware, phishing (social engineering), unwanted software and harmful apps. Use the Lookup API for simple checks or the Update API to keep a local copy of the lists for privacy and speed. Responses are JSON. Free for non-commercial use with a free API key; commercial use needs Google's Web Risk API.
  • API
  • HTTP-GET
  • JSON
  • REST

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free for non-commercial use with a free API key; commercial use needs Google's Web Risk API.
Commercial use
Not on the free plan
Formats
JSON
Interface
REST, HTTP-GET
Provider
developers.google.com
Last checked
Working on November 15th, 2026

More information: https://developers.google.com/safe-browsing

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

developers.google.com
Google Safe Browsing API

Example request

curl

curl -X POST 'https://safebrowsing.googleapis.com/v4/threatMatches:find?key=YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"client": {"clientId": "example", "clientVersion": "1.0"}, "threatInfo": {"threatTypes": ["MALWARE", "SOCIAL_ENGINEERING"], "platformTypes": ["ANY_PLATFORM"], "threatEntryTypes": ["URL"], "threatEntries": [{"url": "http://example.com/"}]}}'

JavaScript

const response = await fetch("https://safebrowsing.googleapis.com/v4/threatMatches:find?key=YOUR_API_KEY", {
  method: 'POST',
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"client":{"clientId":"example","clientVersion":"1.0"},"threatInfo":{"threatTypes":["MALWARE","SOCIAL_ENGINEERING"],"platformTypes":["ANY_PLATFORM"],"threatEntryTypes":["URL"],"threatEntries":[{"url":"http://example.com/"}]}}),
});
const data = await response.json();
console.log(data);

Python

import requests

response = requests.post(
    "https://safebrowsing.googleapis.com/v4/threatMatches:find?key=YOUR_API_KEY",
    headers={
        "Content-Type": "application/json",
    },
    json={
        "client": {
            "clientId": "example",
            "clientVersion": "1.0",
        },
        "threatInfo": {
            "threatTypes": [
                "MALWARE",
                "SOCIAL_ENGINEERING",
            ],
            "platformTypes": [
                "ANY_PLATFORM",
            ],
            "threatEntryTypes": [
                "URL",
            ],
            "threatEntries": [
                {
                    "url": "http://example.com/",
                },
            ],
        },
    },
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key.

Did it work for you?

Tell us what you found when you tried Google Safe Browsing API.