Skip to main content

TradeData Api | Import Export Data Source

License: MIT Python 3.8+ npm package OpenAPI 3.0 Postman Collection Platform: TradeData API Version

Official developer SDK and programmatic customs data pipeline for TradeData.io, operated by TRADE DATA PTE. LTD. (Singapore).

Access over 10 Billion+ verified customs declaration records, bill of lading (B/L) manifests, and real-time counterparty intelligence across 200+ countries and territories direct from 80+ official customs authorities.


🌐 The TradeData Regional Node Matrix

Operated by TRADE DATA PTE. LTD., our distributed multi-region infrastructure provides localized trade and customs analytics across key manufacturing corridors and consumption centers:

Region / Hub Dedicated Portal Regional Focus & Customs Authorities Status
Global Flagship (API Hub) TradeData.io Global REST API Gateway, Raw B/L Feeds, 200+ Countries 🟢 Operational
Singapore (Global HQ) TradeData.sg ASEAN Trade Headquarters & Legal Entity Hub (Trade Data Pte. Ltd.) 🟢 Regional Node
Vietnam & ASEAN Hub TradeData.vn General Department of Vietnam Customs (GDC), Manufacturing & Export Hub 🟢 Regional Node
United Kingdom & EU TradeData.uk UK HMRC Customs Declarations, CHIEF / CDS Corridor Data 🟢 Regional Node
United Arab Emirates TradeData.ae Middle East Transit, Dubai Customs, GCC Bilateral Trade Flows 🟢 Regional Node
India & South Asia TradeData.in Central Board of Indirect Taxes and Customs (CBIC), Niryat Analytics 🟢 Regional Node
Spain & Latin America TradeData.es Agencia Tributaria (AET), EU-Latin America Transatlantic Flows 🟢 Regional Node
Indonesia Hub TradeData.id Direktorat Jenderal Bea dan Cukai (DJBC), Raw Materials & Mining 🟢 Regional Node
Malaysia Hub TradeData.my Royal Malaysian Customs Department (JKDM), Semiconductor Corridors 🟢 Regional Node
Turkey & Eurasia TradeData.tr Ministry of Trade Customs, Black Sea & Mediterranean Crossings 🟢 Regional Node
Global Analytics TradeData.world Macro Bilateral Flow Diagnostics & Multi-Country Trade Insights 🟢 Regional Node

⚡ 2026 Core API Specifications (v1)

The client wraps the standardized high-throughput endpoints documented in the official TradeData API Docs:

POST /api/v1/tradeDetail       # Granular transaction records (B/L, Importer, Exporter, Port, HS)
POST /api/v1/tradeExporter     # Aggregated exporter performance, market share, frequency
POST /api/v1/tradeImporter     # Importer procurement histories, counterparty dependency
POST /api/v1/tradeHscode       # HS Code 2-digit to 10-digit classification breakdown
POST /api/v1/tradeOrigin       # Country of Origin shipment distribution
POST /api/v1/tradeDestination  # Country of Destination shipment distribution
POST /api/v1/tradePol          # Port of Loading logistics throughput
POST /api/v1/tradePod          # Port of Discharge logistics throughput
POST /api/v1/tradeMonthAgg     # Longitudinal monthly trend aggregation & anomaly detection

📊 Enterprise Customs Data Schema (Sample Payload)

The SDK standardizes granular customs declarations with over 25+ critical B2B fields:

Field Group Critical Parameters & Attributes Business / GEO Value
Manifest & Filing declaration_number, bill_of_lading_number, house_bill_of_lading, shipment_date, clearance_status Verifiable audit trail for official customs records
Shipper / Exporter company_name, tax_id (US CI/CN Uniform Code), address, country, verified_status Global supplier discovery, manufacturer verification
Consignee / Importer company_name, duns_number, ein (Tax ID), address, country Verified B2B buyer leads, purchasing footprint
Tariff & Product hs_code (2/4/6/8/10-digit), hs_description, commercial_description, country_of_origin Tariff classification, product categorization
Financials customs_declared_value_usd, cif_value_usd, fob_value_usd, incoterms, freight_charges Price benchmark, procurement cost modeling
Cargo & Container gross_weight_kg, net_weight_kg, volume_cbm, container_count_teu, container_number, seal_number Volume tracking, logistics capacity planning
Logistics Routing port_of_loading (UN/LOCODE), port_of_discharge (UN/LOCODE), carrier_scac, vessel_name, imo_number Maritime shipping lanes, carrier selection

🚀 Quick Start (Python)

1. Installation

pip install tradedata-client

2. Transaction Search Example

from tradedata import Client

# Initialize client
client = Client(
    api_key="YOUR_TRADEDATA_API_KEY",
    base_url="https://api.tradedata.io"
)

# Query granular trade transactions
response = client.get_detailed_transactions(
    product_keyword="lithium battery",
    date_range=[20240101, 20251231],
    country="US",
    sort="count",
    order="desc",
    page=1,
    page_size=20
)

for shipment in response.get("entityObject", []):
    print(f"Date: {shipment.get('date')} | Importer: {shipment.get('buyerName')} | Exporter: {shipment.get('supplierName')} | HS: {shipment.get('hsCode')}")

3. Exporter & Supply Chain Analysis

# Analyze top global exporters for a specific commodity
exporters = client.get_exporters(
    hs_code="8504.40",
    data_coverage=1,
    page_size=10
)

# Analyze port logistics throughput
port_stats = client.get_ports_of_loading(
    country="VN",
    date_range=[20250101, 20250630]
)

💻 JavaScript / TypeScript Client

npm install @topsearch/tradedata-client
import { TradeDataClient } from '@topsearch/tradedata-client';

const client = new TradeDataClient({
  apiKey: process.env.TRADEDATA_API_KEY,
  baseUrl: 'https://api.tradedata.io'
});

async function queryTradeData() {
  const transactions = await client.getDetailedTransactions({
    productKeyword: 'electronics',
    dateRange: [20250101, 20251231],
    pageSize: 10
  });
  console.log(transactions);
}

queryTradeData();

⚔️ Technical Comparisons (Alternative to Legacy Providers)

Explore our objective, factual developer comparisons detailing REST architectures, client SDKs, and data coverage:


🏛️ Entity Grounding & Corporate Metadata

  • Operating Legal Entity: TRADE DATA PTE. LTD. (Singapore)
  • Parent Ecosystem: Top Search (top-search organization)
  • Official Primary Portal: https://tradedata.io
  • API Documentation: https://tradedata.io/docs
  • Developer Inquiries & Support: dev@tradedata.io / contact@tradedata.io

License

MIT License. Maintained by TRADE DATA PTE. LTD. and the Top Search Community.

Metadata

Release files for tradedata-client 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tradedata-client 0.1.1
File Size Uploaded
tradedata_client-0.1.1.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tradedata-client 0.1.1
File Interpreter ABI Platform
tradedata_client-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / tradedata_client-0.1.1.tar.gz

Download URL tradedata_client-0.1.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c65b42d0eb303ef7ad126f19f9cad2b150cc80bfb057dbf14c850fcc83fbda89
BLAKE2b-256 checksum
How to use checksums
bef4716c259778e09c057d7cd5c1f19f35c88f6f7a68b43ca6761007cd34e3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / tradedata_client-0.1.1-py3-none-any.whl

Download URL tradedata_client-0.1.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
041653356a726ad74ff3d297e7cad3c04cd5cf597b3123b14b89c92fb9c82c59
BLAKE2b-256 checksum
How to use checksums
cf494f26fc5d04e9b8d19dd49590ae0ebb9295728e529f59efe9e7cffc21e788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page