trade

Available trade

https://docs.economicsapi.com/endpoints/gettradeavailable
gethttps://api.economicsapi.com/v1/trade/available

Country names, product codes and flow directions accepted by trade requests. Copy a country id into reporter/partner and a product hs6 into product. Supply country or a product search q. Follow next_offset for more matches. Valid filters do not guarantee data for every country/product/date combination. This request is free.

curl -X GET "https://api.economicsapi.com/v1/trade/available" \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"

Authorization

Authorizationstringheaderrequired

Bearer token. API key from your economicsapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.

Query parameters

qstring | null

Product name or code prefix

countrystring | null

Country name or code to find

limitintegerdefault 100

min 1 · max 500

offsetintegerdefault 0

Use next_offset from the previous response

min 0

Response

200Successful Responseapplication/json
dataTradeAvailablerequired
request_idstringdefault ""
duration_msintegerdefault 0
401Missing or invalid API keyapplication/json
errorstring
messagestring
request_idstring
422Validation Errorapplication/json
detailValidationError[]
429Rate limit exceededapplication/json
errorstring
messagestring
request_idstring
Response
{
  "data": {
    "countries": [
      {
        "id": "id_a1b2c3d4",
        "iso3": "example",
        "name": "Acme Corp",
        "is_group": true,
        "trade_available": true
      }
    ],
    "products": [
      {
        "hs6": "example",
        "hs_version": 0,
        "name": "Acme Corp"
      }
    ],
    "flows": [
      "example"
    ],
    "next_offset": 0
  },
  "request_id": "",
  "duration_ms": 0
}