# agent402.tools IP Info

> agent402.tools IP Info is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Classifies an IP address returning its version, scope (public/private/loopback/link-local), integer form, and reverse-DNS PTR record

## Facts

- Endpoint: POST https://agent402.tools/api/ip-info
- 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/agent402-tools-ip-info-7148c412
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5URqYk6TlgMHNqqrIhStH

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 agent402-tools-ip-info-7148c412 -d '<json body>'
```

Example prompt: Can you classify 8.8.8.8 for me — tell me if it's public or private, what IP version it is, its integer form, and do a reverse-DNS PTR lookup on it?

## When to prefer this

Choose this endpoint when you need a quick, all-in-one classification of a single IP address — covering version, scope, numeric form, and reverse-DNS — without setting up your own DNS resolver or IP parsing library. Ideal for enriching logs, validating user-submitted IPs, or checking whether an address is internal vs. external.

## Known failure modes

- Invalid or malformed IP address string returns a validation error
- IP address with no PTR record returns empty or null for reverse-DNS field
- IPv6 addresses in unusual notation may fail parsing
- Missing required 'ip' field in request body returns a 400-level error
- Network timeout during PTR lookup may cause partial or failed response

## How this service works

Classify an IP address: version, public/private/loopback/link-local, integer form, and reverse-DNS (PTR) lookup.

## Output

Returns the IP version (4 or 6), its scope classification (public, private, loopback, or link-local), the integer representation of the address, and the result of a reverse-DNS PTR lookup.

## Example request

```json
{
 "ip": "8.8.8.8"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ip": {
   "type": "string",
   "description": "IPv4 or IPv6 address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "8.8.8.8",
  "ptr": [
   "dns.google"
  ],
  "scope": "public",
  "version": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-ip-info-7148c412/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
