AbuseIPDB Has a Free API — Check If Any IP Address Is Malicious in One Request
The Story Last month I noticed unusual traffic hitting one of my scraping servers. Thousands of requests from a handful of IPs. Before blocking them, I needed to know: are these actual attackers, o...

Source: DEV Community
The Story Last month I noticed unusual traffic hitting one of my scraping servers. Thousands of requests from a handful of IPs. Before blocking them, I needed to know: are these actual attackers, or just aggressive bots? That is when I found AbuseIPDB — a crowdsourced IP reputation database with a free API. The API # Check an IP address curl -s "https://api.abuseipdb.com/api/v2/check" \ -H "Key: YOUR_API_KEY" \ -H "Accept: application/json" \ -G -d "ipAddress=118.25.6.39" -d "maxAgeInDays=90" Response: { "data": { "ipAddress": "118.25.6.39", "isPublic": true, "abuseConfidenceScore": 100, "countryCode": "CN", "isp": "Tencent Cloud Computing", "totalReports": 1847, "lastReportedAt": "2026-03-24T12:00:00+00:00" } } abuseConfidenceScore: 100 = definitely malicious. Block it. What You Get For any IP address: Abuse confidence score (0-100) Country and ISP Number of reports from the community Categories of abuse (brute force, DDoS, spam, etc.) Last reported date Practical Use: Auto-Block Mali