# IP Geolocation Lookup via IPinfo

> IP Geolocation Lookup via IPinfo is a paid API for AI agents from apiwitchcraft.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Resolves an IP address to geographic and network metadata using IPinfo as the underlying data source.

## Facts

- Endpoint: GET https://apiwitchcraft.duckdns.org/ip/lookup
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-geolocation-lookup-via-ipinfo-2189e179
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ezaMoHgl4rNYW0p-jSvl8

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-geolocation-lookup-via-ipinfo-2189e179
```

Example prompt: Can you look up the geolocation for IP address 8.8.8.8 and tell me what country, city, and ISP it belongs to?

## When to prefer this

Use this endpoint when you need fast, per-IP geolocation enrichment powered by IPinfo and are operating in a pay-per-call x402 micropayment context. Prefer it over free tiers when you need reliable, up-to-date ISP and organization data alongside geographic coordinates, or when integrating into an agent workflow that already handles x402 payments.

## Known failure modes

- Missing or invalid 'ip' query parameter returns an error
- Private/reserved IP ranges (e.g. 192.168.x.x) may return no or limited geolocation data
- Malformed IP address string results in a validation error
- Payment not received or x402 payment failure blocks the request
- Rate limits or upstream IPinfo outages may cause temporary unavailability

## How this service works

Pay-per-call IP geolocation API: given any IPv4 or IPv6 address, return the physical location (city, region, country, postal code, latitude/longitude, timezone) plus network intelligence (ISP, organization, ASN, connection type). Use it to localize content, enforce geo-restrictions, detect VPN/proxy/Tor exit nodes, stop fraud, and enrich user or event records. No API key required; pay in USDC per lookup.

## Output

Returns geographic and network metadata for the queried IP address, including country, region, city, coordinates, ISP/organization name, and timezone — sourced from IPinfo.

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-geolocation-lookup-via-ipinfo-2189e179/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiwitchcraft.duckdns.org](https://www.zero.xyz/host/apiwitchcraft.duckdns.org/llms.txt)
