# Swift Bot Labs IP Info

> Swift Bot Labs IP Info is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Returns detailed metadata for a given IP address including scope, version, canonicalization, and embedded IPv4 for IPv4-mapped IPv6 addresses

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/ip/info?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-ip-info-e99f8415
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZSWHxZL9YUZ86gNobYaWs

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 swift-bot-labs-ip-info-e99f8415
```

Example prompt: What are the details for IP address 192.168.1.10 — is it public or private, what version is it, and what's its canonical form?

## When to prefer this

Choose this endpoint when you need fast, deterministic, pay-per-call IP metadata without provisioning an API key or account. Ideal for one-off lookups, agent pipelines, or when you need to classify IP scope (private/public/loopback), decode IPv4-mapped IPv6, or canonicalize IP representations. Prefer over heavier geolocation services when you don't need country/city data, just IP math and scope classification.

## Known failure modes

- Missing or invalid 'ip' query parameter returns an error response
- Malformed IP strings may return an error or unexpected scope classification
- Non-IP strings passed as the ip parameter will likely fail validation
- Payment failure or x402 rejection blocks the request before processing

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with fields: ok (boolean), tool ('ip-info'), and result containing input (original string), scope (e.g. 'private', 'loopback', 'global'), global (boolean), version (4 or 6), canonical (canonical IP string), and for IPv4-mapped IPv6: embeddedIPv4 and embeddedScope fields.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "ip-info",
  "result": {
   "input": "::ffff:192.168.1.10",
   "scope": "ipv4-mapped",
   "global": false,
   "version": 6,
   "canonical": "::ffff:c0a8:10a",
   "embeddedIPv4": "192.168.1.10",
   "embeddedScope": "private"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-ip-info-e99f8415/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
