Customs data APIs compared: coverage, prices and access
Customs data APIs compared on December 1, 2026: which countries each one covers, how you get a key, what 1,000 records cost, and which have an MCP server.
A customs data API returns one of two things: shipment records, which name the importer and the exporter of each shipment, or official trade statistics, which total trade by country and product and name no company. Of the shipment record APIs we compared on December 1, 2026, only ImportYeti and Won.dev give you a key without a sales call, publish a price per record and run an MCP server for AI agents. ImportYeti covers the US and Mexico. Won.dev has the customs declarations of 43 countries and official statistics for 244, behind one key.
This guide compares Panjiva, ImportYeti, OEC and Won.dev for shipment records, and the US Census Bureau, Eurostat and Won.dev for statistics. Then it lists what to check before you pick one. Every fact about another provider comes from its own docs or pricing page, linked under Sources.
What is a customs data API?
It is an API that returns what importers and exporters declare to customs. The two kinds answer different questions:
| Shipment records | Official trade statistics | |
|---|---|---|
| One row is | One bill of lading or customs declaration | A monthly total by country, partner and product |
| Names a company | Yes: the importer and the exporter | No. Statistics offices keep companies confidential |
| Declared value | Where the country declares one. US bills of lading carry none | Yes |
| How recent | Weeks behind the shipment | About two months behind for the US, the EU and the UK, often more elsewhere |
| Use it for | Finding buyers and suppliers, checking what one company ships | Market size, country shares and trends |
A bill of lading is the document a carrier issues for goods it ships. US records are bills of lading, which is why they name both companies but carry no value. Many other countries publish their import and export declarations instead, with an HS code and a declared value.
Most people who search for a customs data API want the first kind: who buys a product, from whom and how often. The second kind sizes the market those buyers are in. Won.dev returns both with the same key.
Which APIs sell shipment records?
| API | Records in the API | How you start | Published price | MCP server |
|---|---|---|---|---|
| Won.dev | Declarations of 43 countries, naming companies in 240, from 2021 | Sign up: a free test key, and $1 of free calls with no card | $0.005 a shipment, $0.01 a company | Yes, sign-in or API key |
| ImportYeti | US imports and exports; Mexico imports and exports from 2021 | Sign up: the key is in your account settings | Prepaid credits, $0.035 to $0.090 each. A bill of lading is 0.1 credit | Yes, 24 tools, sign-in or API key |
| Panjiva (S&P Global) | The US and about 20 other country datasets | A Panjiva account. Which datasets it can query depends on the organization | Not published | None found |
| OEC | US imports by sea, updated monthly | The Premium plan | $1,999 a month | None found |
From each provider's own docs and pricing pages, December 1, 2026. "None found" means we found no MCP server in the provider's docs or in MCP directories.
- Panjiva. A search returns at most 5,000 records. The bulk endpoint returns up to 1,000,000 as JSONL or CSV, but Panjiva says it is "not always available by default" and to ask your Panjiva representative. Every query names one country dataset, and the combined global dataset keeps only the last 5 years. The limit is 20 requests a second, or 1 a second for bulk.
- ImportYeti. Credits are prepaid and do not expire, and you buy at least 100. A company profile costs 1 credit. Mexico data is updated monthly, 60 days behind. More than 100,000 credits goes through sales.
- OEC. OEC's docs say the bill of lading endpoint is "available exclusively to Premium users". A page holds 5,000 rows, and filtered counts stop at 10,000. Other shipment data, such as 2021 company records for 42 countries, comes as bulk downloads, not through the API.
- Won.dev. A call returns up to 100 records, with a cursor for the next page. An organization's keys can send 10 requests a second, and we can raise that. Records go back to 2021, and US records carry no value.
Three more names come up in this market:
- PIERS (S&P Global) says it has US waterborne bills of lading from every US port since 2003, 16,060,444 of them in 2023, plus transaction data for a set of other markets that its page counts as 14, 17 or 18.
- ImportGenius sells two plans without a sales call: from $229 a month for 25 searches a day, 1,000 downloaded rows a month and the last 12 months of US imports, and from $449 a month for 50 searches a day and US imports since 2006. Its Business and Enterprise plans go through sales.
- Volza says it covers "55+ export and 55+ import reporting countries, with 159 additional countries covered through mirror data". Mirror data is rebuilt from what the trading partners declare.
Which APIs give official trade statistics?
| API | Covers | Key | Price |
|---|---|---|---|
| US Census Bureau International Trade API | US imports and exports by HS code, country, state, port and district, monthly since January 2010 | Free key | Free |
| Eurostat Comext | Trade of the EU and each member state by product and partner, with bulk files since January 1988 | None | Free |
Won.dev, POST /trade/stats/query | 244 countries and territories: 78 from their own statistics, 166 from what their partners report | Your Won.dev key | $0.02 a query of official statistics, $0.10 with our shipment counts |
The free APIs are the right choice for one country's totals, if you can write code for each office's format. Census port data stops at six-digit HS codes. A Comext query must set filters, and the full dataset comes only as bulk files.
Won.dev takes its numbers from these two offices, from HM Revenue & Customs for the UK and from each country's own office elsewhere, and converts them to US dollars. One request then covers any of the 244, and a country that publishes nothing of its own is counted from its partners' numbers and marked mirror. Data sources says who publishes what.
What should you check before you choose?
- Records or statistics. Only shipment records name companies. If you need buyers, statistics will not find them.
- Which countries declare their own records. A country's own declarations list its importers, often with values. A country that publishes none shows up only when a partner declares the same shipment, so its counts are incomplete. Ask for the list by country before you pay.
- Values. US bills of lading carry no declared value, so compare US importers by number of shipments.
- How recent. Ask for the date of the latest record. Each Won.dev answer gives it in
query.data_through. - The first test. A key you can get today and sample data tell you more than a demo call.
- What you pay for. Per record, per call or per month; whether an empty result is free; what happens to credit you don't use.
- Limits. Records per call, requests per second, and whether bulk export needs a contract.
- Agent access. An MCP server lets an AI agent call the API as tools. Check how the agent signs in and how its spending is capped.
How do the prices compare?
The same job, 1,000 shipment records, at each provider's published prices on December 1, 2026:
| API | 1,000 shipment records | Countries |
|---|---|---|
| Won.dev | $5.00 | The 43 that declare their own, and their partners |
| ImportYeti | 100 credits: $3.50 to $9.00 | US and Mexico |
| OEC | The $1,999 Premium month | US imports by sea |
| Panjiva | Not published | US and about 20 others |
For US and Mexico records alone, ImportYeti costs about the same per record as Won.dev. Won.dev adds the declarations of 41 more countries, official statistics and verified buyer emails to the same key.
On Won.dev, an empty result is free, the same call repeated within 24 hours is free, and a record your organization paid for in the last 30 days comes back free. Credit never expires. Every unit price is on the pricing page.
Where does Won.dev fit?
Trade data is Won.dev's customs data API: the importers and exporters of a product, their shipments and their buyers, plus the market around them.
- Free to try. Sign up and get $1 of free calls, with no card.
- Records and statistics in one API. The declarations of 43 countries, official statistics for 244, and HS codes with US duty rates, as of November 22, 2026. Country coverage lists each country with its months, and
GET /trade/coverageanswers for one country, free. - A price per result. $0.005 a shipment, $0.01 a company, $0.04 a company profile, $0.02 a statistics query.
- A buyer to write to.
POST /trade/leads/findreturns importers with a person in purchasing and a verified work email, $0.04 a lead. - Built for agents. The MCP server at
https://won.dev/mcpgives an agent the same calls as tools, with sign-in and a daily spending limit you set.
Another API fits better if you need US history before 2021: PIERS says its US data starts in 2003, and ImportGenius's Pro plan has US imports since 2006.
What makes Won.dev developer-friendly?
You get from sign-up to a working call without a sales call, a demo or a contract, and every endpoint follows the same rules:
- A sandbox key. A key that starts with
won_test_answers every endpoint with sample data and is never charged. Parameters, validation, response shapes and the rate limit match a live key, so going live means changing the key and nothing else. See Testing. - An OpenAPI 3.1 document.
openapi.jsonlists every endpoint, parameter and response, for code generators and agents. - One response shape. Every answer has
data, thentotal,has_moreandnext_cursorfor lists, thenquery,noticeandusage. A parameter an endpoint does not know is an error, never silently ignored. - The cost in every response.
usagesays what the call cost and what is left.max_coststops a call before it can cost more, anddry_run: truereturns the most it can cost without running it. - Errors that say what to do. Every error has a stable
code, ahintwith the next step and arequest_id. A429carriesRetry-After, andRateLimit-*headers show how many requests the key has left. See Errors. - Safe retries.
POST,PATCHandDELETEtake anIdempotency-Key: the same request again gets the first answer and is not charged twice. See Idempotency. - Docs an agent can read. Every docs page is also Markdown: add
.mdto its URL. llms.txt lists them all.
What does a call look like?
Search the shipments of a product into a country. This works as written with a test key:
curl https://api.won.dev/v1/trade/shipments/search \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "hs_code": "940161", "importer_country": "US", "limit": 1 }'A test key returns made-up companies with "SAMPLE" in their names. Shortened:
{
"data": [
{
"id": "shp_5k2m8x1q9d3f",
"date": "2026-11-11",
"importer": {
"id": "co_8f3k2m9x4p1q",
"name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",
"country": "US"
},
"exporter": {
"id": "co_2c7h5n0w6r8t",
"name": "SAMPLE DONG NAI COMFORT FURNITURE CO LTD",
"country": "VN"
},
"hs_code": "940161",
"description": "UPHOLSTERED SOFA WITH WOODEN FRAME, FABRIC COVER",
"weight_kg": 8115.4,
"value_usd": null,
"loading_port": "Cat Lai",
"unloading_port": "Savannah, Georgia"
}
],
"total": 1165783,
"has_more": true,
"query": { "data_through": "2026-11-11" },
"usage": { "unit": "trade_record", "records": 1, "cost": 0.005, "balance": 48.08 }
}value_usd is null because US bills of lading declare no value. With a live key, the records of countries that declare values, such as Mexico, India or Vietnam, carry one. The shipment search reference lists every parameter and field.
Can an AI agent use a customs data API?
Yes, through an MCP server. Won.dev's gives an agent the trade calls as tools, among them trade_lookup_hs_code, trade_check_coverage, trade_search_companies, trade_search_shipments, trade_query_stats and trade_find_leads. Add https://won.dev/mcp to Claude, ChatGPT or Cursor and sign in, or in Claude Code:
claude mcp add --transport http won https://won.dev/mcp \
--header "Authorization: Bearer $WON_API_KEY"Then ask in plain words:
Which countries import the most upholstered sofas, and who are the 10 largest importers in Mexico?
The agent picks the HS code, checks coverage, runs the calls and sees what each one cost. A call costs at most $1 unless the agent asks you for more. The MCP server docs show how to connect each client. ImportYeti also runs an MCP server, for its US and Mexico data.
FAQ
Is there a free customs data API?
Yes, for statistics. The US Census Bureau's International Trade API and Eurostat Comext are free. Shipment records cost money from every provider we compared. Won.dev gives new accounts $1 of free calls, which is 200 shipment records, and test keys that are never charged.
Is customs data public?
In part. US vessel manifests are public under 19 CFR 103.31, which is why US records name companies, though an importer can ask for its name to be kept confidential. Each other country decides what it releases, which is why coverage differs from country to country.
What is the difference between customs data and bill of lading data?
Bill of lading data is one kind of customs data: the shipping documents of goods carried by sea, which is what US records are. Many other countries publish their import and export declarations, which usually carry an HS code and a declared value.
How recent is customs data?
Shipment records reach the data weeks after the goods ship. Official statistics come about two months after the month ends for the US, the EU and the UK, and often later elsewhere. In Won.dev, query.data_through gives the date of the latest record behind each answer.
Which countries publish shipment-level customs data?
43 countries and territories declare records of their own in Won.dev's data, as of November 22, 2026. Among them are the US, Mexico, India, Vietnam, Indonesia, Brazil, Chile, Peru and the Philippines. Country coverage lists each one with the months it covers.
Sources
Checked December 1, 2026.
- Panjiva API spec, asynchronous retrieval and data sources, Panjiva
- ImportYeti API concepts, credits, MCP server and credit checkout
- Records API, plans and bill of lading bulk downloads, OEC
- PIERS, S&P Global
- ImportGenius pricing
- Trade intelligence APIs, Volza
- International Trade API and port data variables, US Census Bureau
- Comext API, Eurostat
Next steps
Create a free test key and run the call above. Then read the trade data API docs for every endpoint, see what Trade data covers, or follow how to find US importers by HS code from code to buyer.