Spamhaus DROP Blocklist API
Check IP addresses and AS numbers against Spamhaus DROP, the list of hijacked or criminal-run networks, or list every entry with its SBL case id, registry, network name and country.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from spamhaus.org/drop/
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/spamhaus-drop-blocklist/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"ips":["1.10.16.5"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields: 10 here, 2 technical ones under Technical details.
Basics
- List
The list the row comes from: drop_v4, drop_v6 or asndrop.
Example drop_v4
- Search words
The address or ASN you asked about; empty when listing all entries.
Example 1.10.16.5
- Cidr
The listed IP range, such as 1.10.16.0/20.
Example 1.10.16.0/20
- Rir
Regional internet registry that holds the range or ASN, such as apnic.
Example apnic
- Asn
AS number, for ASN-DROP entries.
Example 245
- As name
Network name of the ASN.
Example PRC-AS
- As domain
Domain of the organisation behind the ASN.
Example planningresearchcorp.com
- Listed
Yes when the entry is on the list; for a checked address or ASN, whether it matched.
Example Yes
- Matched entry
For a checked address or ASN that is listed: the range or ASN that matched.
Example 1.10.16.0/20
Location
- Country
Two-letter country code of the ASN.
Example US
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idUnique id of the row: the list and range or ASN, or the checked address. - Sbl ID
sbl_idSpamhaus Block List case id for the range, such as SBL256894.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
list | text | List | 3 of 3 |
query | text | Search words | 3 of 3 |
cidr | text | Cidr | 1 of 3 |
sbl_id | text | Sbl ID (hidden) | 1 of 3 |
rir | text | Rir | 2 of 3 |
asn | number | Asn | 1 of 3 |
as_name | text | As name | 1 of 3 |
as_domain | text | As domain | 1 of 3 |
country | text | Country | 1 of 3 |
is_listed | yes or no | Listed | 3 of 3 |
matched_entry | text | Matched entry | 2 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | List | Search words | Cidr | Rir | Asn | As name | As domain | Listed | Matched entry | Country |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | drop_v4 | 1.10.16.5 | 1.10.16.0/20 | apnic | — | — | — | Yes | 1.10.16.0/20 | — |
| 2 | drop_v4 | 8.8.8.8 | — | — | — | — | — | No | — | — |
| 3 | asndrop | AS245 | — | arin | 245 | PRC-AS | planningresearchcorp.com | Yes | AS245 | US |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Reads Spamhaus's free DROP (IPv4), DROP (IPv6) and ASN-DROP files, which Spamhaus updates a few times a day; answers are as current as the last file read.
- Spamhaus asks that the files be fetched at most about once an hour; each run reads them fresh, so avoid very frequent runs.
- DROP is a short list of the worst networks (about 1,800 IPv4 ranges, a few IPv6 ranges and about 480 ASNs). Not being listed does not mean an address is clean.
- SBL case id, registry and ranges are filled only for IP ranges; AS name, domain and country only for ASNs.
- Spamhaus data is free to use without a key under its published terms (https://www.spamhaus.org/drop/terms/); check them before using it commercially at scale.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.