# CompliAPI IP Geolocation & Sanctions Check

> CompliAPI IP Geolocation & 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-10-11).

Geolocates an IP address to city/region/country level and flags whether that country carries sanctions designations (e.g. OFAC embargo).

## Facts

- Endpoint: GET https://api.compliapi.com/api/v1/geo/:ip_address?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compliapi-ip-geolocation-sanctions-check-ed8ab031
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gjWT1DbFxYx2jx3RM8ZEt

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-ip-geolocation-sanctions-check-ed8ab031
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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"
    },
    "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compliapi-ip-geolocation-sanctions-check-ed8ab031/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)
