AbuseIPDB API

Anti-malware / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

AbuseIPDB lets you check whether an IP address has been reported for malicious activity like spam, hacking, or DDoS attacks. It is maintained by a community of network administrators who submit and verify abuse reports. Beginners can use it to add a basic security layer to web apps by blocking or flagging suspicious IPs.

💡

Beginner Tip

Get a free API key at abuseipdb.com and use the /check endpoint with ?ipAddress= to instantly look up any IP. Free tier allows 1,000 checks per day.

Available Data

IP address information
geographic location
ASN and ISP data
Use case: Integrate ip/domain/url reputation data into web and mobile applications

Example Response

JSON Response
{
  "route": "Line 1",
  "origin": "Station A",
  "destination": "Station B",
  "departure": "08:30",
  "arrival": "09:15",
  "status": "On Time",
  "delays_min": 0
}

Field Reference

ipAddress The IP address that was checked
isPublic Whether the IP is a public (non-private) address
abuseConfidenceScore Score from 0-100 indicating likelihood of abuse; higher means more suspicious
countryCode Two-letter ISO country code of the IP origin
totalReports Total number of abuse reports submitted for this IP
lastReportedAt ISO 8601 timestamp of the most recent abuse report

Implementation Example

const url = "https://docs.abuseipdb.com/";
// 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

422 Unprocessable Entity The IP address format is invalid or a private/loopback IP was submitted
Ensure you are sending a valid public IPv4 or IPv6 address such as 8.8.8.8
401 Unauthorized API key is missing or incorrect in the request header
Add the header Key: YOUR_API_KEY to every request
429 Too Many Requests You have exceeded the rate limit for your plan
Slow down requests; free tier is limited to 1,000 checks/day

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Anti-malware
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →