# 2s IP Blacklist Lookup

> 2s IP Blacklist Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-14).

Returns a filtered list of blacklisted IP addresses with confidence scores, supporting IPv4/IPv6 filtering and country include/exclude options

## Facts

- Endpoint: GET https://2s.io/api/security/ip-blacklist
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-ip-blacklist-lookup-49b73710
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cSc9B2nBYx6ZcqBqLqDJU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-ip-blacklist-lookup-49b73710
```

Example prompt: Can you pull me up to 500 high-confidence blacklisted IPv4 addresses from the 2s security blacklist, with a confidence minimum of 90, excluding IPs from Russia and China?

## When to prefer this

Use this endpoint when you need a bulk feed of known-bad IP addresses for blocklist generation, firewall rules, or network security screening. Prefer this over single-IP lookup endpoints when you need to build or refresh a comprehensive blocklist with country-level filtering and confidence thresholds. Ideal for automated security pipelines that require fresh ground-truth threat intelligence without API key setup.

## Known failure modes

- Invalid ISO-2 country codes return a 400 error
- Confidence minimum below 25 or above 100 returns a 400 validation error
- Limit below 1 or above 10000 returns a 400 validation error
- Payment failure returns a 402 status if USDC payment is insufficient
- Network timeout if the underlying threat intelligence source is slow

## How this service works

AbuseIPDB bulk blacklist — the most-reported abusive IPs above a confidence threshold, the canonical fail2ban / firewall block-feed. Returns ipAddress, countryCode, abuseConfidenceScore, and lastReportedAt for each entry, plus the list's generatedAt timestamp. Tune confidenceMinimum (25-100, default 90), limit (1-10000, default 100), ipVersion (4 or 6), and onlyCountries / exceptCountries (comma-separated ISO-2). Live crowd-sourced threat feed for populating drop lists, WAF rules, and edge blocklists.

## Output

A list of blacklisted IP addresses filtered by the requested parameters (IP version, country inclusion/exclusion, confidence threshold, and limit), each with associated confidence scores and metadata about why the IP is flagged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "limit": {
       "type": "integer",
       "default": 100,
       "maximum": 10000,
       "minimum": 1
      },
      "ipVersion": {
       "enum": [
        4,
        6
       ],
       "type": "integer",
       "description": "Restrict to IPv4 or IPv6."
      },
      "onlyCountries": {
       "type": "string",
       "description": "Comma-separated ISO-2 country codes to include."
      },
      "exceptCountries": {
       "type": "string",
       "description": "Comma-separated ISO-2 country codes to exclude."
      },
      "confidenceMinimum": {
       "type": "integer",
       "default": 90,
       "maximum": 100,
       "minimum": 25
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-ip-blacklist-lookup-49b73710/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
