# IP Reputation & Risk Scoring

> IP Reputation & Risk Scoring is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns ASN, AS organization, country, datacenter/hosting classification, Tor-exit and Spamhaus DROP flags, and a deterministic risk score with reasons for a given public IPv4 address.

## Facts

- Endpoint: GET https://api.agentstools.dev/fraud/ip
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-reputation-risk-scoring-9937625b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6durqe7UYs8dcIgAY1Duk

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 ip-reputation-risk-scoring-9937625b
```

Example prompt: Before I onboard this user, can you check whether IP address 203.0.113.47 is high-risk — I want to know if it's a datacenter, Tor exit node, or on any abuse blocklist, and what risk score it gets?

## When to prefer this

Use this endpoint when you need a quick, structured reputation verdict on a public IPv4 address for fraud prevention, KYC workflows, or anti-abuse gating. It is preferable over general IP geolocation APIs when you specifically need abuse signals like Tor-exit status, Spamhaus DROP membership, hosting/datacenter classification, and a combined risk score with reasons in a single call.

## Known failure modes

- Private or reserved IP address provided — endpoint expects a public IPv4
- Invalid IP format (e.g. IPv6 or malformed string) — likely returns 400 bad request
- IP not found in ASN databases — may return partial data or unknown fields
- Network timeout or upstream lookup failure — may return 5xx error
- Missing required 'ip' query parameter — returns 400 or validation error

## How this service works

Reputation of a public IP address for anti-abuse and KYC. Returns ASN, AS-org, country, datacenter/hosting classification, Tor-exit and Spamhaus DROP flags, plus a deterministic risk score with reasons.

## Output

A structured object containing the IP's ASN number, AS organization name, resolved country, whether it's classified as a datacenter or hosting IP, boolean flags for Tor exit node status and Spamhaus DROP list membership, a deterministic numeric risk score, and a list of human-readable reasons driving that score. Optionally includes a geo-mismatch flag if a claimed country was provided.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "Public IPv4 address to screen"
      },
      "country": {
       "type": "string",
       "description": "Optional 2-letter country the caller claims the IP is in, for a geo-mismatch check"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-reputation-risk-scoring-9937625b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
