Skip to main content

Embargo | Node.js SDK

The Pangea Embargo API lets developers quickly check IPs and country codes against known sanction and trade embargo lists.

Check IP

ipCheck(ipAddress: string): Promise<PangeaResponse<CheckResponse>>

Check an IP against known sanction and trade embargo lists.

required parameters

string

Geolocate this IP and check the corresponding country against the enabled embargo lists.

Response Object

const response = await embargo.ipCheck("1.1.1.1");

ISO code check

isoCheck(isoCode: string): Promise<PangeaResponse<CheckResponse>>

Check a country code against known sanction and trade embargo lists.

required parameters

string

Check the country against code the enabled embargo lists.

Response Object

const response = await embargo.isoCheck("CU");

Interface CheckResponse

interface CheckResponse

required parameters

Array<Sanction>

Interface Sanction

interface Sanction

required parameters

object
string
string
string
string