IP Reputation API: what a million websites know about this IP
Before you let a visitor register, post or order, ask the cloud: has this IP been spamming, is it a VPN or Tor exit, how many sites reported it, when was it last seen. One GET request, JSON back, data built from 5+ million spam reports a month.
- Spam rate, report count, network type (hosting, VPN, Tor), country, dates
- Two lists: form spam (Anti-Spam) and login brute-force (Security)
- IPv4 and IPv6, up to 1,000 IPs per call, history by date
- From $3 per month for 10,000 checks, offline database included
One method, spam_check, answers for any IP: is it blacklisted now, how bad is it, what kind of network is it on, and what was its status on a given date.
- Score traffic, logs or sign-ups by IP before your own rules run.
- Download the whole blocklist for firewall rules, no API calls needed.
- Need a ready allow or deny decision for a form? Use the Anti-Spam API.
What you get for every IP
Two separate lists matter here: Anti-Spam (spam in forms, comments, sign-ups) and Security (password brute-force on login pages). An IP can be in one, both or neither.
| Field | Meaning |
|---|---|
appears | 1 if the IP is in the blocklist right now |
spam_rate | share of the IP's requests that were spam, 0 to 1 |
frequency | number of websites that reported spam from this IP |
spam_frequency_24h | spam requests blocked in the last 24 hours |
network_type | hosting, public (ISP network with high spam activity), paid_vpn, tor or unknown; new types may be added |
country | ISO 3166-1 alpha-2 code |
in_antispam | 1 if the IP is in the Anti-Spam blocklist (form and comment spam) |
in_security | 1 if the IP is in the Security blocklist (brute-force logins) |
domains_count, domains_list | websites hosted on this IP, when known |
submitted, updated | first and last time the IP was seen |
Example
Request: GET
https://api.cleantalk.org/ ?method_name=spam_check &auth_key=YOUR_KEY &ip=127.0.0.1
Response
{
"data": {
"127.0.0.1": {
"appears": 1,
"spam_rate": 1,
"frequency": 13627,
"network_type": "hosting",
"country": "GB",
"in_antispam": 1,
"in_security": 0,
"submitted": "2018-07-29 07:09:45",
"updated": "2019-09-25 15:33:00"
}
}
} Need history? Add &date=YYYY-MM-DD to get the status of the IP on that day. Privacy option: send a SHA-256 hash of the IP (ip4_<sha256> or ip6_<sha256>).
Bulk checks
Up to 1,000 IPs in one POST request, 100 calls per minute. Enough to score a day of traffic logs in a few minutes. For firewall rules or full log analysis, download the offline database instead: it is included in every package and updated daily.
Where to use it
Registration and checkout
Reject or hold orders from IPs with spam_rate above your threshold.
Rate limiting and WAF rules
Treat hosting, paid_vpn and tor differently from residential ISPs.
Log analysis
Enrich server logs with reputation and country to find the sources of abuse.
Fraud scoring
Feed frequency and in_security into your own risk model.
If you want a ready allow or deny decision for a whole form submission, use the Anti-Spam API instead: it combines IP, email, text and behaviour in one call.
Pricing
Block Lists API packages start at $3 per month for 10,000 checks ($2.40 per month on an annual plan) and scale to 22 million checks. One check is one IP. Every package includes a downloadable database: from 207,000 IPs (Level 1) to 1.5 million IPs (Level 4), updated daily.
Try it by hand first
Look up any IP in the online checker at cleantalk.org/blacklists. The page shows the same data the API returns.
FAQ
What is an IP reputation API?
A web service that returns the abuse history of an IP address: whether it sent spam, attacked login forms, belongs to a hosting provider, VPN or Tor network, and how many sites reported it. You use the answer to block, challenge or just log the request.
Where does the data come from?
From CleanTalk Anti-Spam and Security plugins and API clients on 1,100,000+ websites. Every blocked spam attempt or brute-force attack is a report. More than 5 million reports are processed every month, the blocklist updates continuously.
Does it support IPv6?
Yes, IPv4 and IPv6 in standard notation, plus SHA-256 hashes of both.
How is this different from a DNSBL like Spamhaus?
DNSBLs are built for mail servers and answer listed or not listed. CleanTalk answers with a spam rate, a report count, network type, country and dates, and covers web form spam and login attacks rather than email relays.
Can I get the whole list instead of checking one by one?
Yes. Every package includes a downloadable offline database: from 207,000 IPs (Level 1) to 1.5 million IPs (Level 4), updated daily. Use it for firewall rules or bulk log analysis without API calls.
Is there a free way to try it?
Look up any IP in the online checker at cleantalk.org/blacklists, it shows the same data the API returns. Paid API packages start at $3 per month for 10,000 checks.