Spamhaus DROP and Intelligence API
Spamhaus DROP and Intelligence API
Defensive network-reputation data combining keyless DROP JSON lists of malicious IPv4, IPv6 and ASN ranges with an authenticated JSON Intelligence API for IP and domain context. DROP rows include CIDR, SBL reference and registry, while API records add dataset, listing context and validity fields; DROP needs no key and the API needs a free developer account and token.
Required Attribution:
When DROP is used in a product, credit The Spamhaus Project and retain the date and copyright text with the file and data.
Coverage
DROP is global and changes daily; eDROP was merged into DROP on 10 April 2024. The free Intelligence API Developer License lasts six months and allows up to 5,000 queries per month; the provider says its tracked active botnet-controller dataset has about 800 to 1,500 entries with live updates every minute.
Verdict
This is defensive data for rejecting high-confidence malicious routes and enriching IP or domain observations with reputation context. DROP is deliberately narrow and should supplement other controls; ranges leave after the connected SBL record is removed, so stale local copies create risk. The free API license is for development or evaluation, not production or commercial integration, and its token and account limits must be observed. Do not visit or fetch listed URLs or hosts; retrieve only Spamhaus list files or API metadata.
Get the free weekly email
Free weekly email of newly verified free data. Unsubscribe by emailing us.
By entering your email and clicking Subscribe, you agree to receive the Signal Lab weekly email from Quantum Data Technologies Ltd., 3200-650 West Georgia Street, Vancouver, BC V6B 4P7, Canada (signal-lab@qdt.ai). You can unsubscribe at any time: reply "unsubscribe" to any email or write to signal-lab@qdt.ai. See our Privacy Policy.
Use in your agent
Load keyless Spamhaus IPv4 DROP data into pandas and Parquet. Checked against the provider's documentation on Nov 1, 2026.
Access
- No account or key is needed for the DROP JSON files.
- The Intelligence API is separate and needs an account plus a bearer token.
Request
curl 'https://www.spamhaus.org/drop/drop_v4.json'Format
Line-delimited JSON range records with cidr, sblid and rir, followed by a metadata object containing timestamp and copyright fields.
Load into pandas and Parquet
Needs Python 3 with requests, pandas and pyarrow.
"""Spamhaus IPv4 DROP JSON lines -> pandas -> Parquet. No key."""
import json
import requests
import pandas as pd
URL = "https://www.spamhaus.org/drop/drop_v4.json"
HEADERS = {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) SignalLabCheck/1.0"}
r = requests.get(URL, headers=HEADERS, timeout=60)
r.raise_for_status()
records = [json.loads(line) for line in r.text.splitlines() if line.strip()]
rows = [record for record in records if "cidr" in record]
metadata = next(record for record in reversed(records) if "timestamp" in record)
df = pd.DataFrame(rows)
df["list_timestamp"] = pd.to_datetime(metadata["timestamp"], unit="s", utc=True)
df.to_parquet("spamhaus_drop_v4.parquet", index=False)
print(len(df), "IPv4 ranges", "list timestamp", df["list_timestamp"].iloc[0].isoformat())Run by us on 2026-11-01 (python 3.13.5 | pandas 3.1.0 | pyarrow 26.0.0 | requests 2.34.2). Result: 1754 IPv4 ranges list timestamp 2026-11-01T16:44:02+00:00
Limits
- Automated DROP downloads must be at least one hour apart; once per day is sufficient for most uses.
- The free Intelligence API Developer License allows 5,000 queries per month for six months.
- The Intelligence API exposes account-specific hourly, minute and second counters through its limits endpoint.
Quirks
- The DROP JSON is line-delimited rather than one JSON array, and its final object carries list metadata rather than cidr.
- eDROP was merged into DROP on 10 April 2024 and is no longer a separate current list.
- Do not visit or fetch a listed host; retrieve only the Spamhaus file or API metadata.
Terms and attribution
- DROP is free to download and use; product use must credit The Spamhaus Project and retain date and copyright text.
- The Intelligence API Developer License is limited to development and evaluation, not commercial or production deployment.
Sources
- https://www.spamhaus.org/blocklists/do-not-route-or-peer/: “Automated downloads must be at least one hour apart.”
- https://www.spamhaus.org/blocklists/do-not-route-or-peer/: “is also open for all to download and use, there is no fee for usage.”
- https://www.spamhaus.com/data-access/intelligence-api-developer-license/: “This will give you 6-months free access for up to 5,000 queries per month.”
- https://docs.spamhaus.com/sia/docs/source/10-API-Interface/110-API.html: “To access the API, every request requires a proper”
Information and education only. Not financial, investment, legal or tax advice. Listings can be inaccurate, incomplete or out of date and are provided "as is". Free tiers, limits and licenses belong to each provider and can change, so check the provider's own terms before you rely on them. Terms & Disclaimer