{"uid":"cap_gjWT1DbFxYx2jx3RM8ZEt","slug":"compliapi-ip-geolocation-sanctions-check-ed8ab031","name":"CompliAPI IP Geolocation & Sanctions Check","description":"Geolocate an IP address (city, region, country) and flag whether the country carries sanctions designations. Call for geo-compliance checks before serving restricted content, payments or shipments.","url":"https://api.compliapi.com/api/v1/geo/:ip_address?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"},"pathParams":{"type":"object","required":["ip_address"],"properties":{"ip_address":{"type":"string","description":"IPv4 or IPv6 address"}}}},"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_GqF3uRsEx0S46197MMPTW","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":"Geolocates an IP address to city/region/country level and flags whether that country carries sanctions designations (e.g. OFAC embargo).","exampleAgentPrompt":"Before we process this payment, check whether the IP address 185.220.101.45 is located in a sanctioned country — geolocate it and flag any OFAC embargo status.","exampleUseCases":[{"title":"Payment gateway geo-compliance gate","prompt":"We're about to process a payment from a user at IP 91.108.4.1 — can you geolocate that IP and tell me if the country is under OFAC sanctions before we proceed?"},{"title":"Content access restriction by IP origin","prompt":"A user with IP 5.100.75.200 is trying to access our platform — look up their country from that IP and let me know if we're legally restricted from serving them content there."},{"title":"Onboarding screening for embargoed regions","prompt":"During signup, our new user's IP is 103.25.206.12 — run a geo-compliance check on that address to see where they're located and whether their country carries any sanctions designations."}],"resultDescription":"Returns the resolved city, region, and country for the given IP address, along with a boolean or status flag indicating whether the identified country carries active sanctions designations such as a comprehensive OFAC embargo.","failureModes":["Invalid or malformed IP address returns a 4xx error","Private/reserved IP ranges (e.g. 10.x.x.x, 192.168.x.x) may not resolve to a geographic location","Unrecognized IP returns null geolocation data","Payment failure or missing x402 credentials results in 402 Payment Required","Rate limiting or quota exhaustion may return 429 Too Many Requests","Geolocation database may be outdated for recently reassigned IP blocks"],"whenToPreferThis":"Choose this endpoint when you need both geolocation and sanctions screening in a single call — ideal for compliance workflows where you need to know both where a user is and whether that country is embargoed. Prefer this over a generic IP geolocation API when regulatory compliance (OFAC, sanctions) is a hard requirement, and over a standalone sanctions check when you only have an IP address rather than a country code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:37:39.298Z","isFirstParty":false,"canonicalSlug":"compliapi-ip-geolocation-sanctions-check-ed8ab031"}