Skip to Content
Won.dev

Check data coverage

See which countries have shipment records and official statistics, and for which dates. Free.

GET https://api.won.dev/v1/trade/coverage

Says what exists for a country before you spend anything: whether shipment records are declared there for imports and for exports, whether they carry values, which dates they span, and whether official statistics can be queried. Free. A country without records of its own (records: false) still appears in searches, but only through the declarations of its partner countries, so its counts are incomplete. Without country it lists the countries with records of their own or official statistics, and notice counts the others.

Parameters

Parameters go in the query string, lists comma-separated.

ParameterTypeRequiredDescription
countrystringnoThe country to check. Leave it out to list all. An ISO code such as US, or an English name such as United States.

Response

Errors are described in Errors.

FieldTypeDescription
dataobject[]One entry for each country.
data[].countrystringISO 3166-1 alpha-2 country code, such as US.
data[].importsobjectRecords of goods imported into the country.
data[].imports.recordsboolean | nullWhether shipment records declared in this country exist. Null when not known yet.
data[].imports.valuesboolean | nullWhether those records carry declared values. Null when not known yet.
data[].imports.earlieststring | nullDate of the earliest record seen, YYYY-MM-DD.
data[].imports.lateststring | nullDate of the latest record seen, YYYY-MM-DD.
data[].imports.notestring | nullSomething to know about these records, such as a gap or a late start.
data[].exportsobjectRecords of goods exported from the country.
data[].exports.recordsboolean | nullWhether shipment records declared in this country exist. Null when not known yet.
data[].exports.valuesboolean | nullWhether those records carry declared values. Null when not known yet.
data[].exports.earlieststring | nullDate of the earliest record seen, YYYY-MM-DD.
data[].exports.lateststring | nullDate of the latest record seen, YYYY-MM-DD.
data[].exports.notestring | nullSomething to know about these records, such as a gap or a late start.
data[].officialobjectOfficial statistics with the country as importer or exporter.
data[].official.availablebooleanWhether official trade statistics can be queried.
data[].official.latest_monthstring | nullLatest month published, YYYY-MM.
data[].official.mirrorbooleanTrue when the country publishes no recent statistics of its own, and they are what its partners report about their trade with it.
queryobjectThe request as it was understood: country names as codes, the default dates filled in.
noticestring | nullA plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise.
usageobjectNothing is charged here. The balance, for reference.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue when this is a repeat of a request from the last 24 hours. Repeats are free.

Example

curl "https://api.won.dev/v1/trade/coverage?country=United%20States" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": [
    {
      "country": "US",
      "imports": {
        "records": true,
        "values": false,
        "earliest": "2021-01-01",
        "latest": "2026-11-13",
        "note": null
      },
      "exports": {
        "records": true,
        "values": false,
        "earliest": "2021-01-02",
        "latest": "2026-09-30",
        "note": null
      },
      "official": {
        "available": true,
        "latest_month": "2026-09"
      }
    }
  ],
  "query": {
    "country": "US"
  },
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}

On this page