An IP blacklist check API in Python returns whether an address is on email/IP blocklists. On ipXapi that is GET /api/blacklist-check?ip=. Documented fixture: 8.8.8.8.
Basic is $29.99/mo with a 7-day trial or 50 requests. MCP: mcp.ipxapi.com (ipxapi.com/mcp 404s).
Request: official 8.8.8.8
curl 'https://ipxapi.com/api/blacklist-check?ip=8.8.8.8' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_KEY'
Python: same contract
import os, urllib.request
req = urllib.request.Request(
"https://ipxapi.com/api/blacklist-check?ip=8.8.8.8",
headers={"Authorization": "Bearer " + os.environ["IPXAPI_KEY"], "Accept": "application/json"},
)
print(urllib.request.urlopen(req).read().decode())
Response: official / product fixture
{
"ip": "8.8.8.8",
"is_listed": false,
"checked_blacklists": 100,
"listed_count": 0,
"ok_count": 100,
"timeout_count": 0,
"listed_blacklists": [],
"timeouts": []
}
Live flags can change. Do not treat this fixture as the reader’s IP.
Go live
1. Register — 7-day trial or 50 requests.
2. Copy the Bearer key.
3. GET /api/blacklist-check?ip=.
4. Gate on is_listed and listed_count.
Check a blacklist in Python →