{"uid":"cap_kXoz1TtOwXn4dvssgJ7ra","slug":"compliapi-geo-sanctions-check-02144dd9","name":"CompliAPI Geo & Sanctions Check","description":"Easy OFAC sanction list lookups, geo-fencing checks and VPN detection, streamlining compliance obligations around the world.","url":"https://api.compliapi.com/api/v1/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"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ip":"203.0.113.7","city":"Zurich","region":"Zurich","country":"CH","sanctioned":false,"source_url":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_5ZXP1JvmRMtHC2OwZbvDA","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":"Looks up geolocation data for an IP address and checks whether it originates from a sanctioned country, returning city, region, country, and OFAC sanctions status.","exampleAgentPrompt":"Can you check whether the IP address 203.0.113.7 is located in a sanctioned country according to OFAC rules, and tell me the city and country it maps to?","exampleUseCases":[{"title":"Fintech onboarding geo-compliance gate","prompt":"Before I let this new user complete signup, can you check their IP address 198.51.100.42 to see if they're connecting from a sanctioned country so I can block them if needed?"},{"title":"E-commerce geo-fencing for restricted markets","prompt":"A customer with IP 203.0.113.55 just tried to place an order — can you check if their location is sanctioned so I can decide whether to let the transaction go through?"},{"title":"SaaS access control for compliance","prompt":"Check IP 192.0.2.18 for me — is it from a country on the OFAC sanctions list, and what city and country does it actually resolve to?"}],"resultDescription":"A JSON object containing the queried IP address, resolved city, region, and ISO country code, a boolean 'sanctioned' field indicating OFAC sanctions status, and an optional source_url for the sanctions designation if applicable.","failureModes":["Invalid or malformed IP address returns an error response","Private/reserved IP ranges may not resolve to a meaningful geolocation","API returns HTTP 402 if payment is not provided via x402 protocol","Sanctions list may have a brief propagation delay after new designations","VPN or proxy usage by the end-user may cause the detected location to differ from actual user location"],"whenToPreferThis":"Use this endpoint when you need a single real-time call that combines IP geolocation with OFAC sanctions screening in one response, rather than chaining a separate geo-IP lookup with a separate sanctions database check. Ideal for fintech, crypto, e-commerce, or SaaS platforms needing lightweight, per-request compliance checks at the access or onboarding layer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:43:58.583Z","isFirstParty":false}