{"uid":"cap_dzutld4xvhoyO34zwk2de","slug":"ip-country-network-lookup-db-ip-lite-fef31ebc","name":"IP Country & Network Lookup (DB-IP Lite)","description":"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.","url":"https://ip-geo-production.up.railway.app/v1/ip/lookup?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tEa8FcMGVzYZP2UE_kz_z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves up to 50 IPv4/IPv6 addresses to country, ASN, organization, network range, and reserved-address status using a local DB-IP Lite database.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Fraud check on suspicious login IPs","prompt":"I have three IPs from failed login attempts — 45.33.32.156, 198.51.100.42, and 203.0.113.7 — can you tell me what countries they're from and who operates those networks so I can decide whether to block them?"},{"title":"Geo-compliance filter for EU traffic","prompt":"Can you check these five IP addresses and tell me which ones are coming from EU countries? I need to know their country codes and ASNs for a GDPR compliance report."},{"title":"Enrich server access logs with network info","prompt":"I'm analyzing my nginx access logs and I want to enrich this list of IP addresses with their country names, ASN numbers, and network ranges — here are 20 IPs, can you run them through the lookup?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:30:18.124Z","isFirstParty":false,"canonicalSlug":"ip-country-network-lookup-db-ip-lite-fef31ebc"}