# CompliAPI Geo & Sanctions Screening by IP

> CompliAPI Geo & Sanctions Screening by IP 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-13).

Looks up geolocation data and OFAC sanctions status for a given IP address, returning city, region, country, and whether the location is sanctioned.

## Facts

- Endpoint: GET https://api.compliapi.com/api/v1/geo/%7Bip_address%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compliapi-geo-sanctions-screening-by-ip-a263cf57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6W8vixjAF--093N_HqShg

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-screening-by-ip-a263cf57
```

Example prompt: Before processing this transaction, check if the IP address 203.0.113.45 is from a sanctioned country or OFAC-restricted region using CompliAPI's geo sanctions screening.

## When to prefer this

Choose this endpoint when you need a single API call that combines both IP geolocation and OFAC sanctions status in one response, rather than making separate calls for geo-lookup and sanctions screening. Ideal for real-time compliance checks at transaction or registration time where you need to know both where a user is and whether that location is restricted.

## Known failure modes

- Invalid or malformed IP address returns an error response
- Private or reserved IP ranges (e.g. 192.168.x.x) may return incomplete geo data
- IP not found in geolocation database may return null city/region
- Sanctions list may not be fully up-to-date in real time
- IPv6 addresses may have less precise geolocation coverage
- Network timeout or upstream database unavailability

## How this service works

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

## Output

Returns a JSON object with the IP address, resolved city, region, and country, plus a boolean 'sanctioned' field indicating OFAC or other sanctions designation, and an optional source_url referencing the sanctions list entry 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"
    },
    "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "8.8.8.8",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "sanctioned": false,
  "source_url": null
 }
}
```

## More

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