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.
- Billing: Free.
- Mode:
proxy(what the modes mean)
Parameters
Parameters go in the query string, lists comma-separated.
| Parameter | Type | Required | Description |
|---|---|---|---|
country | string | no | The 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.
| Field | Type | Description |
|---|---|---|
data | object[] | One entry for each country. |
data[].country | string | ISO 3166-1 alpha-2 country code, such as US. |
data[].imports | object | Records of goods imported into the country. |
data[].imports.records | boolean | null | Whether shipment records declared in this country exist. Null when not known yet. |
data[].imports.values | boolean | null | Whether those records carry declared values. Null when not known yet. |
data[].imports.earliest | string | null | Date of the earliest record seen, YYYY-MM-DD. |
data[].imports.latest | string | null | Date of the latest record seen, YYYY-MM-DD. |
data[].imports.note | string | null | Something to know about these records, such as a gap or a late start. |
data[].exports | object | Records of goods exported from the country. |
data[].exports.records | boolean | null | Whether shipment records declared in this country exist. Null when not known yet. |
data[].exports.values | boolean | null | Whether those records carry declared values. Null when not known yet. |
data[].exports.earliest | string | null | Date of the earliest record seen, YYYY-MM-DD. |
data[].exports.latest | string | null | Date of the latest record seen, YYYY-MM-DD. |
data[].exports.note | string | null | Something to know about these records, such as a gap or a late start. |
data[].official | object | Official statistics with the country as importer or exporter. |
data[].official.available | boolean | Whether official trade statistics can be queried. |
data[].official.latest_month | string | null | Latest month published, YYYY-MM. |
data[].official.mirror | boolean | True when the country publishes no recent statistics of its own, and they are what its partners report about their trade with it. |
query | object | The request as it was understood: country names as codes, the default dates filled in. |
notice | string | null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
usage | object | Nothing is charged here. The balance, for reference. |
usage.cost | number | What this call cost, in US dollars. |
usage.balance | number | The balance left after this call, in US dollars. |
usage.replayed | boolean | True 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
}
}