# IP Geolocation API – Caller IP Lookup (myip)

> IP Geolocation API – Caller IP Lookup (myip) is a paid API for AI agents from ipgeo.payapi.market, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Returns geolocation data for the calling client's own IP address, including city, region, country, ISP, ASN, coordinates, timezone, and proxy/VPN/datacenter flags.

## Facts

- Endpoint: POST https://ipgeo.payapi.market/lookup/myip?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-geolocation-api-caller-ip-lookup-myip-7ba0ce2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oEnpI6dq58QJZb_jvbocI

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-api-caller-ip-lookup-myip-7ba0ce2c -d '<json body>'
```

Example prompt: What city and country is my current IP address located in, and is it flagged as a VPN or proxy?

## When to prefer this

Use this endpoint when you need to geolocate the machine or client making the current API call without supplying an explicit IP address — it auto-detects the caller's IP from request headers. Prefer it over batch or explicit-IP endpoints when you want self-introspection of the calling agent's network identity, including VPN/proxy/datacenter detection and ISP/ASN details.

## Known failure modes

- IP not found in geolocation database: 'found' field returns false with minimal data
- VPN/proxy detection fields may return null if not determinable
- Caller IP may be a NAT or load balancer IP rather than the true client if headers are not forwarded correctly
- Payment failure via x402 protocol results in 402 response before geolocation data is returned

## How this service works

IP geolocation, batch lookup, distance calculation, and caller-IP introspection with x402 payments.

## Output

Returns a JSON object with the detected IP address, city, region, country and country code, latitude/longitude, postal code, timezone, ISP name, ASN, organization, boolean flags for VPN/proxy/datacenter status, the upstream data source (e.g. ip-api.com), and how the caller IP was detected (e.g. request headers).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ip": {
       "type": "string"
      },
      "asn": {
       "type": "string"
      },
      "isp": {
       "type": "string"
      },
      "org": {
       "type": "string"
      },
      "city": {
       "type": "string"
      },
      "found": {
       "type": "boolean"
      },
      "is_vpn": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "region": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "is_proxy": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "latitude": {
       "type": "number"
      },
      "timezone": {
       "type": "string"
      },
      "longitude": {
       "type": "number"
      },
      "postal_code": {
       "type": "string"
      },
      "region_code": {
       "type": "string"
      },
      "country_code": {
       "type": "string"
      },
      "is_datacenter": {
       "type": "boolean"
      },
      "caller_ip_source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "203.0.113.7",
  "asn": "AS64500",
  "isp": "Example ISP Ltd",
  "org": "Example ISP Ltd",
  "city": "London",
  "found": true,
  "is_vpn": null,
  "region": "England",
  "source": "ip-api.com",
  "country": "United Kingdom",
  "is_proxy": null,
  "latitude": 51.5074,
  "timezone": "Europe/London",
  "longitude": -0.1278,
  "postal_code": "EC1A 1BB",
  "region_code": "ENG",
  "country_code": "GB",
  "is_datacenter": false,
  "caller_ip_source": "request headers"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-geolocation-api-caller-ip-lookup-myip-7ba0ce2c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ipgeo.payapi.market](https://www.zero.xyz/host/ipgeo.payapi.market/llms.txt)
