Google Safe Browsing API
Overview
Google Safe Browsing lets you check any URL against Google's constantly updated lists of phishing sites, malware distributors, and unwanted software. It is the same technology that powers Chrome's built-in warnings. Beginners can use it to validate user-submitted links before displaying or visiting them in an application.
Beginner Tip
Enable the API in Google Cloud Console and use the threatMatches:find endpoint with a POST body — a GET request will not work. The free quota is 10,000 lookups per day.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Google Safe Browsing",
"description": "Google Link/Domain Flagging",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
matches List of threat matches found; empty array or absent field means the URL is safe matches[].threatType Type of threat detected, e.g. MALWARE or SOCIAL_ENGINEERING matches[].platformType Platform the threat targets, such as WINDOWS or ANY_PLATFORM matches[].threat.url The URL that matched a threat list entry matches[].cacheDuration How long to cache this result before re-checking, in seconds with an s suffix Implementation Example
const url = "https://developers.google.com/safe-browsing/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Recipes Using Google Safe Browsing
Build something with this API. Each recipe includes step-by-step instructions and code outlines.
Similar APIs
View All →AbuseIPDB
AbuseIPDB lets you check whether an IP address has been reported for malicious activity like spam, hacking, or DDoS attacks.
AlienVault Open Threat Exchange (OTX)
AlienVault Open Threat Exchange (OTX) provides programmatic access to ip/domain/url reputation via REST API.
CAPEsandbox
CAPEsandbox is an open-source malware analysis platform that executes suspicious files in an isolated environment and reports on their behavior.
MalDatabase
MalDatabase provides programmatic access to provide malware datasets and threat intelligence feeds via REST API.
MalShare
MalShare is a free community-driven repository of malware samples that security researchers upload and share for analysis.