Back to Home

Export Compliance API

Navigate government regulations for cross-border shipping

https://api.compliancegrid.ai/v1/compliance
6 endpoints
~45ms avg response

Overview

The Export Compliance API helps businesses manage shipping compliance with prohibited goods screening, restricted party screening (OFAC, BIS, EU), HS code classification, AI-powered HS code lookup, commodity description guidance, and export license determination. Inspired by UPS Export Assure, this API prevents delays, avoids fines, and ensures hassle-free customs clearance.

Key Features

Prohibited goods screening for 220+ countries
Restricted party screening against OFAC SDN, BIS Entity List, EU/UK sanctions
Automated HS code classification with 92%+ accuracy
AI-powered HS code lookup with keyword, fuzzy, and GPT-based classification
Commodity description guidance and scoring
Export license determination (EAR/ITAR)
Dual-use goods detection (EAR Part 744)
Free Trade Agreement (FTA) duty optimization
ECCN classification and Commerce Country Chart lookup
Real-time sanctions list updates
Full audit trail for compliance records (5-10 year retention)

Endpoints

POST/v1/compliance/prohibited-goods
POST/v1/compliance/restricted-party-screening
POST/v1/compliance/hs-classification
POST/v1/compliance/description-guidance
POST/v1/compliance/export-license
POST/v1/compliance/hs-lookup
View full API reference

Quick Example

compliance-example.ts
import ComplianceGrid from "@compliancegrid/sdk";

const client = new ComplianceGrid({
  apiKey: process.env.COMPLIANCEGRID_API_KEY,
});

// Screen a shipment for prohibited goods
const screening = await client.compliance.prohibitedGoods({
  originCountry: "US",
  destinationCountry: "DE",
  commodityDescription: "Lithium batteries for consumer electronics",
  hsCode: "8507.60",
});

console.log(screening.evaluation.riskLevel);  // "HIGH"
console.log(screening.evaluation.isProhibited); // false
console.log(screening.evaluation.restrictions);
// [{ type: "IMPORT_RESTRICTION", regulation: "CUSTOMS_RESTRICTED_IMPORT", ... }]

// Screen parties against government watchlists
const partyCheck = await client.compliance.screenParties({
  parties: [
    { name: "Acme Global Trading", country: "DE", type: "CONSIGNEE" },
    { name: "Berlin Electronics GmbH", country: "DE", type: "END_USER" },
  ],
});

console.log(partyCheck.overallResult); // "CLEAR"

Sample Response

response.json
{
  "id": "pg_abc123def456",
  "originCountry": "US",
  "destinationCountry": "DE",
  "commodityDescription": "Lithium batteries for consumer electronics",
  "hsCode": "8507.60",
  "evaluation": {
    "isProhibited": false,
    "isRestricted": true,
    "riskLevel": "HIGH",
    "prohibitions": [],
    "restrictions": [
      {
        "type": "IMPORT_RESTRICTION",
        "regulation": "CUSTOMS_RESTRICTED_IMPORT",
        "description": "lithium batteries require special permits/licenses for import into DE",
        "requiresLicense": true
      }
    ],
    "warnings": []
  },
  "regulatoryReferences": [],
  "evaluatedAt": "2026-02-17T19:00:00Z"
}

Ready to integrate?

Get your free API key and start building in minutes.

Get API Key