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.

Try it
Ready-made, maintained by usRecords, 12 fieldsv1.0

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

Ipsoptional
IPv4 or IPv6 addresses to check. Each gets one answer row: listed or not, with the matching range. One per line, or separated by commas.
Example: 1.10.16.5
Asnsoptional
AS numbers to check against ASN-DROP, such as AS245 or 245. One per line, or separated by commas.
Example: AS245
Listoptional
Which list: drop_v4, drop_v6, asndrop or all. With no ips or asns, every entry of the chosen list is returned.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/spamhaus-drop-blocklist/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

ipslist
IPv4 or IPv6 addresses to check. Each gets one answer row: listed or not, with the matching range.
example: 1.10.16.5
asnslist
AS numbers to check against ASN-DROP, such as AS245 or 245.
example: AS245
listtext
Which list: drop_v4, drop_v6, asndrop or all. With no ips or asns, every entry of the chosen list is returned.
default: allexample: allone of: drop_v4, drop_v6, asndrop, all

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
listtextList3 of 3
querytextSearch words3 of 3
cidrtextCidr1 of 3
sbl_idtextSbl ID (hidden)1 of 3
rirtextRir2 of 3
asnnumberAsn1 of 3
as_nametextAs name1 of 3
as_domaintextAs domain1 of 3
countrytextCountry1 of 3
is_listedyes or noListed3 of 3
matched_entrytextMatched entry2 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordListSearch wordsCidrRirAsnAs nameAs domainListedMatched entryCountry
1drop_v41.10.16.51.10.16.0/20apnic———Yes1.10.16.0/20—
2drop_v48.8.8.8—————No——
3asndropAS245—arin245PRC-ASplanningresearchcorp.comYesAS245US

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.
Known limits
  • 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.