# APIBooth IP Geolocation

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

Returns geolocation and ASN data for a given IP address using DB-IP Lite, including city, region, country, coordinates, and organization.

## Facts

- Endpoint: GET https://api.apibooth.com/v1/ip/8.8.8.8?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apibooth-ip-geolocation-d25fcebe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nypwl4M9NZtCVHgBsEzPb

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-d25fcebe
```

Example prompt: Can you look up the location and ISP for IP address 203.0.113.42 — I want to know the city, country, and what organization owns it?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call IP geolocation with city, region, country, ASN, and organization data and do not require VPN/proxy detection or street-level precision. Particularly useful for enriching event logs, filtering traffic by country, or tagging user sessions with approximate location without committing to a monthly subscription. Best suited for bulk enrichment workflows where occasional null fields are acceptable.

## Known failure modes

- IP not found or not in DB-IP Lite database — fields may be null or partially populated
- Private/reserved IP ranges (e.g. 192.168.x.x) may return null for most fields
- Malformed IP address in the URL path returns an error
- Coordinates are approximate and not suitable for precise street-level targeting
- VPN/proxy IPs may show the underlying host location rather than the user's true location

## How this service works

IP geolocation and ASN from DB-IP Lite (CC BY 4.0), updated monthly; nullable fields. DB-IP Lite has reduced coverage and accuracy; coordinates are approximate, not a street address. VPN/proxy detection is not included.

## Output

A JSON object containing the queried IP address, its ASN number, city, region, country (code and name), approximate latitude/longitude coordinates, and the owning organization name, plus DB-IP Lite attribution metadata and database version timestamps. Some fields may be null for IPs with limited coverage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "8.8.8.8",
  "asn": 15169,
  "city": "Mountain View",
  "region": "California",
  "country": {
   "code": "US",
   "name": "United States"
  },
  "attribution": {
   "url": "https://db-ip.com",
   "source": "DB-IP Lite",
   "license": "CC BY 4.0",
   "license_url": "https://creativecommons.org/licenses/by/4.0/"
  },
  "coordinates": {
   "latitude": 37,
   "longitude": -122
  },
  "organization": "Google",
  "database_version": {
   "asn": 1790812800,
   "city": 1790812800
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apibooth-ip-geolocation-d25fcebe/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)
