# IP Address Classifier

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

Classifies an IPv4 or IPv6 address, returning version, public/private/loopback/link-local flags, integer and hex representations, reverse-DNS pointer, and optional CIDR membership test.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/ip-classify
- Price: $0.002/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-12141cfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_emuSw9VCIf_aHbLn3watS

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-12141cfd -d '<json body>'
```

Example prompt: Classify the IP address 192.168.1.50 for me — tell me if it's IPv4 or IPv6, whether it's public or private, its integer and hex forms, and check if it falls within the CIDR block 192.168.1.0/24.

## When to prefer this

Choose this endpoint when you need a comprehensive, single-call breakdown of an IP address including type classification, numeric representations, reverse-DNS pointer, and CIDR membership — especially useful in security pipelines, network diagnostics, or firewall rule validation where multiple IP properties are needed at once.

## Known failure modes

- Invalid IP address format returns a validation error
- Malformed or non-existent CIDR notation causes a parsing error
- IPv6 addresses in non-standard format may fail classification
- Missing required IP address field returns a 400 bad request
- Network timeout on reverse-DNS pointer computation

## How this service works

Classify an IPv4/IPv6 address: version, public/private/loopback/link-local flags, integer and hex forms, reverse-DNS pointer, and optional CIDR membership test.

## Output

Returns the IP version (4 or 6), boolean flags for public, private, loopback, and link-local status, the integer and hexadecimal representations of the address, the reverse-DNS PTR record format, and if a CIDR block was provided, a boolean indicating whether the IP falls within that range.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-address-classifier-12141cfd/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)
