# IP Country & Network Lookup (DB-IP Lite)

> IP Country & Network Lookup (DB-IP Lite) is a paid API for AI agents from ip-geo-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Resolves up to 50 IPv4/IPv6 addresses to country, ASN, organization, network range, and reserved-address status using a local DB-IP Lite database.

## Facts

- Endpoint: GET https://ip-geo-production.up.railway.app/v1/ip/lookup?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-country-network-lookup-db-ip-lite-fef31ebc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dzutld4xvhoyO34zwk2de

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-country-network-lookup-db-ip-lite-fef31ebc
```

Example prompt: Can you look up the country, ASN, and network operator for these IPs: 8.8.8.8, 1.1.1.1, and 185.220.101.5? I need to know if any of them are reserved addresses too.

## When to prefer this

Choose this endpoint when you need fast, privacy-preserving IP-to-country and ASN lookups without sending data to a third-party API, and when batch lookups of up to 50 IPs at a time are sufficient. Ideal for fraud checks, geo-compliance, and log enrichment workflows where ASN/organization data is as important as country. Prefer alternatives if you need city-level geolocation, lat/lon coordinates, or real-time threat intelligence beyond country and network operator.

## Known failure modes

- Missing 'ip' query parameter returns a validation error
- Supplying more than 50 IPs in a single request may be rejected
- Malformed IP addresses (non-IPv4/IPv6 strings) may return no result or an error for that entry
- Reserved or private IPs (e.g. 192.168.x.x) return reserved:true with no ASN/country data
- Service unavailability on Railway.app infrastructure returns a 5xx error
- DB-IP Lite data may lag up to one month behind real-world network changes

## How this service works

Look up one or up to 50 IPv4/IPv6 addresses: country (ISO2 and name), autonomous system number and organisation, the matching network range, plus private/reserved address detection. Served from a monthly local copy of the DB-IP Lite country and ASN databases, so lookups are fast and nothing is sent to third parties. Use when an agent needs the country and network operator (ASN/organisation) of an IPv4 or IPv6 address for fraud checks, geo-compliance or log enrichment.

## Output

Returns a JSON object with a results array where each entry contains the queried IP, its ISO2 country code and full country name, ASN number, AS organization name, the matching CIDR/range, and a boolean reserved flag. Also includes legal/terms links and a status field.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4/IPv6 address, or up to 50 comma-separated"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "legal": {
   "terms": "https://ip-geo-production.up.railway.app/terms",
   "privacy": "https://ip-geo-production.up.railway.app/privacy"
  },
  "status": "ok",
  "results": [
   {
    "ip": "8.8.8.8",
    "asn": 15169,
    "range": "8.8.8.0-8.8.8.255",
    "as_org": "Google LLC",
    "country": "US",
    "reserved": false,
    "country_name": "United States"
   }
  ],
  "use_when": "Use when an agent needs the country and network operator (ASN/organisation) of an IPv4 or IPv6 address for fraud checks, geo-compliance or log enrichment."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-country-network-lookup-db-ip-lite-fef31ebc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ip-geo-production.up.railway.app](https://www.zero.xyz/host/ip-geo-production.up.railway.app/llms.txt)
