# 24K Labs IP Address Classifier

> 24K Labs 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: detects version, scope (private/loopback/global), and computes the reverse DNS pointer (PTR record format).

## Facts

- Endpoint: POST https://api.24klabs.ai/api/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/24k-labs-ip-address-classifier-0b346b73
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TBHGFM2Nry7Pyar2njY-M

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 24k-labs-ip-address-classifier-0b346b73 -d '<json body>'
```

Example prompt: Can you classify the IP address 203.0.113.45 — tell me whether it's IPv4 or IPv6, if it's private, loopback, or globally routable, and what its reverse pointer looks like?

## When to prefer this

Choose this endpoint when you need lightweight, fast IP address classification — specifically to determine version (v4/v6), routing scope (private, loopback, globally routable), or reverse pointer format — without performing a live DNS lookup or geolocation. It is ideal for pre-processing IPs in logging pipelines, firewall rule evaluation, or security triage workflows where you need structured metadata about an address itself rather than WHOIS, geolocation, or threat intelligence.

## Known failure modes

- Invalid IP address format returns a 400 or error response
- Passing a hostname instead of a raw IP address may fail validation
- Submitting an empty or null address field returns an error
- IPv6 addresses in compressed or non-standard notation may cause parsing errors

## How this service works

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

## Output

Returns the IP version (4 or 6), boolean flags indicating whether the address is private, loopback, or globally routable, and the reverse DNS pointer string (e.g. arpa format) 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/24k-labs-ip-address-classifier-0b346b73/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)
