Skip to Content
Won.dev

Reading the numbers

What the counts, values and dates in trade data mean, where they fall short, and which number answers which question.

Trade data looks precise and is easy to misread. This page says what each number is, and what it is not.

Two kinds of numbers

Shipment recordsOfficial statistics
What it isCustoms declarations and bills of lading, one record per shipmentTotals that statistics offices publish
Names companiesYesNo
CoverageDiffers by country: check GET /trade/coverageMore than 200 countries and territories
WhereEvery company and shipment endpoint, and records in the statsofficial in POST /trade/stats/query
Use it forFinding companies, who trades with whom, trends, a buyer's rhythmMarket size and country shares

POST /trade/stats/query returns both and keeps them apart. Its coverage.recorded_value_share says how much of the official value the recorded values stand for.

Shipment counts

shipments counts records. It is not a quantity and not a market share. One record can be a full container or a single pallet, and a country that publishes every declaration has more records than one that publishes few. Use the count to rank companies inside one query, not to compare markets.

Values

value_usd on a shipment is the value declared on that record, in US dollars. When the record declares none it is null, never 0. US bills of lading carry no value at all, so US imports that are known only through them have value_usd: null.

recorded_value_usd adds up the records that do declare a value. It is a lower bound. null means that no record in the result declared one. Sorting by recorded_value can only rank companies whose records carry values, so it favors trade lanes where the exporting country publishes them.

One shipment, two records

A shipment from Vietnam to the United States can appear twice: once as a US import record and once as a Vietnamese export record. reported_by on each record says whose record it is, with country and flow. The two are not linked to each other, and a count over a trade lane can include both. Read counts as activity, not as a number of containers.

Countries

On a company row, country is the country the company imports into or exports from in these records. That is where the goods were declared, which is not always where the company is registered: a trading company in Hong Kong can appear as an exporter from China.

A country without records of its own still appears in searches, through the declarations of its trading partners, so its numbers are incomplete. GET /trade/coverage shows records: false for such a country, and Country coverage lists which countries declare records of their own.

Company names

Companies are matched by their names as written on shipping documents. The same company can appear under several spellings. Rows that are clearly the same company are merged under one ID, which is why a page can hold fewer rows than limit. A lookup by name can still return several candidates: pick by country and shipments.

Freight forwarders and logistics companies stand on many bills of lading in place of the real buyer or seller. Company searches leave them out unless you set exclude_forwarders to false.

About one company in three has a website in the records. The contacts and leads endpoints look for the others, and accept a website only when it clearly belongs to the company. When none can be confirmed, website stays null and notice says so. If you know the website, pass it as domain.

Dates and recent months

Without since and until, a query covers the last 12 months. query in the response shows the range that was used, and data_through is the date of the newest record the query can see.

Records arrive weeks after a shipment, so the latest months are still filling up. Monthly series mark them with partial: true. Do not read a partial month as a drop.

Official statistics

official exists when the query has an hs_code and names the importing or the exporting country. It covers more than 200 countries and territories, which Country coverage lists. It is by product and partner country, and it names no companies.

  • reporter and flow say whose numbers answer. The statistics of the United States, the EU and the United Kingdom come first, then the own statistics of other countries, then partners' numbers. At each step the importing country comes before the exporting country.

  • When neither country publishes statistics of its own, official is left out: partners' numbers cannot show what two such countries trade with each other. Name only one of them to see its trade with every partner that reports.

  • mirror: true marks a country that publishes no recent statistics of its own. Its numbers add up what its partners report about their trade with it: its exports are what they import from it, valued CIF, and its imports are what they export to it, valued FOB. Partners that publish nothing are missing, so the numbers are a lower bound.

  • Partners add their numbers months late, so a month seen through partners keeps growing for about a year. Such months are marked partial: true in by_month. Do not read them as a drop.

  • quantity, quantity_unit and unit_value_usd exist where the statistics office measures the product in one unit for every partner and month, and they are left out otherwise. Quantities the office only estimated are not kept. The United States, the EU member states and the United Kingdom give none yet.

  • Official statistics stop at six digits of the HS code. A longer code is cut to six, and coverage.recorded_value_share is then left null because the two numbers no longer describe the same goods.

  • United States: imports are at customs value, with the value including insurance and freight in cif_value_usd. Exports are valued at the port of export and labelled fob.

  • EU member states: imports are CIF and exports are FOB. They are published in euros and converted to US dollars at the reference rate of each month.

  • United Kingdom: imports are CIF and exports are FOB, trade with the EU and with the rest of the world together. They are published in pounds sterling and converted to US dollars at the reference rate of each month.

  • EU as a country means the EU as a whole and counts only its trade with countries outside the EU. Shipment records cannot be filtered by the EU as a whole, so records is left out: name a member state to get them.

  • share of a partner country is its part of everything the reporter imports or exports of the product in the period.

  • They trail the current month: by about two months for the United States, the EU and the United Kingdom, and often by longer elsewhere. Some countries publish half a year late or later.

value_basis says how value_usd is valued. See Data sources for who publishes these numbers.

Contacts

A contact is a person with a work email on the company's own domain. email_status is verified when the mailbox was confirmed to exist. With min_email_status=risky you also get addresses on domains that accept every address, which cannot be confirmed either way. email is never a free webmail address or an address on another domain.

Some contacts also have other_email and phones: another address and the phone numbers listed for the person in the trade data. They are returned as listed and are not verified. other_email is often on the company's domain too, but it can be a private address. A phone number can be a direct line, a mobile or the company's switchboard.

Shared mailboxes such as info@ and sales@, and phone numbers, are channels, not contacts. They belong to the company, not to a person.

HS codes

The first six digits of an HS code are the same in every country: two for the chapter, four for the heading, six for the subheading. Digits beyond six are each country's own tariff lines. Searches of shipment records take an hs_code of 6 to 10 digits and match it by prefix. Records carry the code as it was declared, so a code longer than six digits only matches the records of countries that use that tariff line. For a whole heading such as 9401, list its six-digit codes with GET /trade/hs-codes?q=9401 and search them one at a time, or ask POST /trade/stats/query for official statistics alone, which also take a chapter or a heading.

On this page