# APIBooth IP Geolocation & ASN Lookup

> APIBooth IP Geolocation & ASN Lookup is a paid API for AI agents from api.apibooth.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Resolves an IP address to its geographic location and ASN using DB-IP Lite data, returning country, region, city, and network information.

## Facts

- Endpoint: POST https://api.apibooth.com/v1/ip/:ip?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apibooth-ip-geolocation-asn-lookup-0769d593
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZDkanxIc2Hgr8fQbJmhho

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 apibooth-ip-geolocation-asn-lookup-0769d593 -d '<json body>'
```

Example prompt: Can you geolocate the IP address 203.0.113.45 and tell me what country, city, and ASN it belongs to?

## When to prefer this

Choose this endpoint when you need a low-cost ($0.005 per call), pay-per-use IP geolocation with ASN data and can tolerate DB-IP Lite's coverage and monthly update cadence. It is well-suited for lightweight enrichment use cases like fraud screening, content personalization, or analytics logging where city-level accuracy is sufficient and real-time precision is not required.

## Known failure modes

- Invalid IP address format returns an error
- Private or reserved IP ranges (e.g. 10.x.x.x, 192.168.x.x) may return null or empty results
- IPv6 addresses may have incomplete coverage in DB-IP Lite
- DB-IP Lite data is updated monthly so very recent ASN changes may not be reflected
- Payment failure via x402 protocol blocks the request

## How this service works

IP geolocation and ASN from DB-IP Lite (CC BY 4.0), updated monthly; nullable fields.

## Output

Returns geographic location fields (country, region/state, city, latitude, longitude) and network fields (ASN number, organization/ISP name) for the queried IP address. Some fields may be null if the DB-IP Lite database does not have data for that IP.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apibooth-ip-geolocation-asn-lookup-0769d593/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.apibooth.com](https://www.zero.xyz/host/api.apibooth.com/llms.txt)
