# IP Address Classifier

> IP Address Classifier is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Classifies an IPv4 or IPv6 address: reports version, scope (private/loopback/global), and reverse DNS pointer.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/ip-info
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-address-classifier-d03de6ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__hngYbLivV03i18fWlW1y

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-address-classifier-d03de6ed -d '<json body>'
```

Example prompt: Can you classify the IP address 192.168.1.1 for me — tell me if it's IPv4 or IPv6, whether it's private, public, or loopback, and what its reverse pointer is?

## When to prefer this

Use this endpoint when you need lightweight, fast IP address metadata — version detection, scope classification, and reverse pointer — without spinning up a full GeoIP or WHOIS lookup. Ideal for log enrichment, input validation, and security triage where you just need to know if an IP is private, loopback, or globally routable.

## Known failure modes

- Invalid IP address string returns a validation error
- Malformed or non-IP input (e.g. hostname) returns an error
- Network timeout if reverse pointer resolution is slow
- Ambiguous input (e.g. CIDR notation) may be rejected

## How this service works

Classify an IPv4/IPv6 address: version, private/loopback/global, reverse pointer.

## Output

Returns the IP version (4 or 6), address classification (private, loopback, or global/public), and the reverse DNS pointer (PTR record) for the given address.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ip": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "version": 4,
  "is_global": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-address-classifier-d03de6ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
