# CompliAPI Geo & Sanctions Check

> CompliAPI Geo & Sanctions Check is a paid API for AI agents from api.compliapi.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

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.

## Facts

- Endpoint: GET https://api.compliapi.com/api/v1/geo
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compliapi-geo-sanctions-check-02144dd9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kXoz1TtOwXn4dvssgJ7ra

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 compliapi-geo-sanctions-check-02144dd9
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Easy OFAC sanction list lookups, geo-fencing checks and VPN detection, streamlining compliance obligations around the world.

## Output

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.

## 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"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "203.0.113.7",
  "city": "Zurich",
  "region": "Zurich",
  "country": "CH",
  "sanctioned": false,
  "source_url": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compliapi-geo-sanctions-check-02144dd9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.compliapi.com](https://www.zero.xyz/host/api.compliapi.com/llms.txt)
