# PowaHub IP Geolocation

> PowaHub IP Geolocation is a paid API for AI agents from api.powahub.ai, paid per call via x402, $0.007/call, status unknown (last checked 2026-09-18).

Returns country, city, subdivisions, network (ASN), and approximate geographic location for a given IPv4 or IPv6 address.

## Facts

- Endpoint: GET https://api.powahub.ai/CertainData/ip-geolocation/:address
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/powahub-ip-geolocation-499c0fa9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5tEe4tXXRpXKvi9FlI4qD

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 powahub-ip-geolocation-499c0fa9
```

Example prompt: Can you look up the country, city, and network/ASN details for the IP address 203.0.113.42?

## When to prefer this

Choose this endpoint when you need quick, per-IP geolocation enrichment including ASN/network data alongside country and city, billed per-call via x402 microtransactions. Prefer this over free tiers when you need reliable uptime and structured JSON output with subdivision-level detail without rate-limit concerns.

## Known failure modes

- Invalid IP address format returns an error or empty result
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no location data
- Geolocation accuracy varies — especially for VPN/proxy/Tor exit nodes where the resolved location may not reflect the user's actual location
- Payment failure (402) if USDC balance is insufficient
- Service unavailability returns 5xx errors

## How this service works

Country, city, subdivisions, network (ASN), and approximate location for an IPv4 or IPv6 address.

## Output

Returns structured geolocation data for the queried IP address, including the resolved country, city, administrative subdivisions (e.g. state/province), the autonomous system number (ASN), and the network or ISP name, plus an approximate geographic location.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "IPv4 or IPv6 address."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/powahub-ip-geolocation-499c0fa9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.powahub.ai](https://www.zero.xyz/host/api.powahub.ai/llms.txt)
