# IPstack Self-IP Lookup

> IPstack Self-IP Lookup is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.07/call, status unknown (last checked 2026-09-14).

Returns geolocation and metadata for the caller's own IP address as seen by the IPstack service.

## Facts

- Endpoint: GET https://gateway.apiosk.com/ipstack/check
- Price: $0.07/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ipstack-self-ip-lookup-27f39cc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NzE0DSxI1ntZ3CFc-9kuU

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 ipstack-self-ip-lookup-27f39cc3
```

Example prompt: What IP address and location does IPstack see for me right now — country, city, and timezone?

## When to prefer this

Use this endpoint when an agent needs to quickly determine its own public-facing IP address and approximate geographic location without supplying an IP parameter — ideal for self-location checks, debugging outbound traffic, or coarse geofencing logic where the agent's own IP is the subject of inquiry.

## Known failure modes

- Invalid or missing API credentials returns 401 Unauthorized
- Payment not processed or x402 payment failure returns 402 Payment Required
- IPstack service unavailable returns 503
- Caller IP is private/internal and cannot be geolocated — returns empty or null location fields
- Rate limit exceeded returns 429

## How this service works

Lookup the requester IP as seen by IPstack. Useful for quick agent self-location checks, request debugging and coarse geofencing.

## Output

Returns the caller's detected IP address along with IPstack geolocation data including country, region, city, latitude/longitude, timezone, and ISP information.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ipstack-self-ip-lookup-27f39cc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
