Skip to main content

Embargo | C# SDK

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

Embargo

EmbargoClient

Embargo client.

var config = new Config("pangea_token", "pangea_domain");
var builder = new EmbargoClient.Builder(config);
var client = builder.Build();

ISO Code Check

EmbargoClient.ISOCheck(string)

Check country codes against known sanction and trade embargo lists.

required parameters

string

Check this two character country ISO code against the enabled embargo lists.

Response Object

Task<Response<EmbargoSanctions>>

Response<EmbargoSanctions>

var response = await client.ISOCheck("CU");

Check IP

EmbargoClient.IPCheck(string)

Check IPs 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

Task<Response<EmbargoSanctions>>

Response<EmbargoSanctions>

var response = await client.IPCheck("190.6.64.94");