{"uid":"cap_MQhN_QQ_Vr4xWPBpCl2SY","slug":"ip-to-country-lookup-registry-based-1d2de995","name":"IP to Country Lookup (Registry-Based)","description":"IP to country: the country an IPv4 address is registered to, from the regional internet registry (via Team Cymru and RDAP), with ASN context. Honest about what it is: registry data, not precise geolocation, and free of any keyed geo-IP database. $0.01 per IP.","url":"https://intel.rallylive.ca/ip/geo","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JHGVKSZmpMvON-wX-bI4Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the country an IPv4 address is registered to based on regional internet registry (RIR) data via Team Cymru and RDAP, along with ASN context — not a geo-IP database.","exampleAgentPrompt":"What country is the IP address 203.0.113.42 registered to? I need the official registry data and ASN context, not a geo-IP database estimate.","exampleUseCases":[{"title":"Security alert triage by origin country","prompt":"I'm seeing login attempts from IP 185.220.101.5 — can you tell me what country that IP is registered to and what ASN it belongs to, using registry data?"},{"title":"Fraud screening for checkout traffic","prompt":"We had an order come in from IP 91.108.4.1 — what country is that IP registered to according to the regional internet registry?"},{"title":"Ad campaign geo-verification","prompt":"Our analytics show traffic from IP 45.33.32.156 — can you look up the registered country for that IP from the RIR so I can verify it matches our campaign's target region?"}],"resultDescription":"Returns the country the IPv4 address is registered to according to regional internet registry (RIR) records sourced from Team Cymru and RDAP, along with ASN (Autonomous System Number) context. The response is explicit that this reflects registry allocation data, not precise geolocation from a commercial geo-IP database.","failureModes":["Invalid or malformed IPv4 address returns an error","Private/reserved IP ranges (e.g. 10.x.x.x, 192.168.x.x) may return no country or a special designation","IPv6 addresses are not supported (endpoint is IPv4-only)","Some IPs may have sparse or missing RIR data resulting in incomplete response","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need authoritative, registry-sourced country and ASN data for an IPv4 address without relying on a commercial geo-IP database. It is ideal for compliance, fraud screening, or network intelligence use cases where the distinction between registry allocation and physical geolocation matters. Prefer it over geo-IP databases when transparency and accuracy of source data are required, or when you want to avoid database licensing costs beyond a per-query fee.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:08:35.863Z","isFirstParty":false}