Firecrawl Alexandria

UN Comtrade (comtradeplus.un.org)

UN Comtrade international merchandise and services trade statistics through the anonymous public API behind comtradeplus.un.org: trade value, quantity and weight by reporter, partner, flow and commodity (HS/SITC/BEC/EBOPS), national tariff lines, dataset availability and metadata, recent releases, world shares, MBS total-trade series and the reference code tables.

Try UN Comtrade (comtradeplus.un.org) now.

Choose an example or ask your own question.

UN Comtrade (comtradeplus.un.org)
TRY ASKING
1Request
stringRequired

UN M49 numeric reporter code(s), comma-separated (156 China, 842 USA, 276 Germany). Look codes up with reference_codes table=Reporters.

string

Product classification in the URL path: HS (as reported, any HS edition), H0-H6 (a specific HS edition), S1-S4 (SITC), BE/BE5 (BEC), EB/EB10/EB02/EBS (EBOPS, services).

string

Frequency: A annual (period YYYY), M monthly (period YYYYMM).

string

Period(s) YYYY or YYYYMM, comma-separated; omit for every period.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "comtradeplus-un-org",
    capability: "trade-statistics/data_availability",
    options: {
      period: "2012,2013,2014,2015,2016,2017,2018,2019",
      reporter_code: "156",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from UN Comtrade (comtradeplus.un.org).

{
  "count": 8,
  "datasets": [
    {
      "classification_code": "H4",
      "dataset_code": "20156201201092100",
      "first_released": "2013-05-22T23:19:21.98",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2013-05-22T23:19:21.98",
      "length_cmd_code": null,
      "period": "2012",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 696476,
      "type_code": "C"
    },
    {
      "classification_code": "H4",
      "dataset_code": "20156201301092100",
      "first_released": "2014-06-17T16:53:27.77",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2014-06-17T16:53:27.77",
      "length_cmd_code": null,
      "period": "2013",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 709963,
      "type_code": "C"
    },
    {
      "classification_code": "H4",
      "dataset_code": "20156201401092100",
      "first_released": "2015-05-07T15:34:46.78",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2017-06-28T16:19:59.03",
      "length_cmd_code": null,
      "period": "2014",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 730672,
      "type_code": "C"
    },
    {
      "classification_code": "H4",
      "dataset_code": "20156201501092100",
      "first_released": "2016-05-25T20:53:01.2733333",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2017-06-29T02:31:54.9566667",
      "length_cmd_code": null,
      "period": "2015",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 2894591,
      "type_code": "C"
    },
    {
      "classification_code": "H4",
      "dataset_code": "20156201601092100",
      "first_released": "2017-05-26T04:00:52.57",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2021-12-13T20:23:32.8933333",
      "length_cmd_code": null,
      "period": "2016",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 2991492,
      "type_code": "C"
    },
    {
      "classification_code": "H5",
      "dataset_code": "20156201701182100",
      "first_released": "2018-08-16T14:55:42.4666667",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2018-08-16T14:55:42.4666667",
      "length_cmd_code": null,
      "period": "2017",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 3086454,
      "type_code": "C"
    },
    {
      "classification_code": "H5",
      "dataset_code": "20156201801182100",
      "first_released": "2019-11-03T17:39:20.5066667",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2022-06-08T05:01:46.5066667",
      "length_cmd_code": null,
      "period": "2018",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 787828,
      "type_code": "C"
    },
    {
      "classification_code": "H5",
      "dataset_code": "20156201901182100",
      "first_released": "2020-10-27T04:41:22.7",
      "freq_code": "A",
      "is_original_classification": true,
      "last_released": "2022-05-21T09:34:45.3933333",
      "length_cmd_code": null,
      "period": "2019",
      "reporter_code": 156,
      "reporter_desc": "China",
      "reporter_iso": "CHN",
      "total_records": 811658,
      "type_code": "C"
    }
  ],
  "observed_at_ms": 1792433666111,
  "request": {
    "classification": "HS",
    "freq_code": "A",
    "period": "2012,2013,2014,2015,2016,2017,2018,2019",
    "reporter_code": "156",
    "type_code": "C"
  },
  "source_url": "https://comtradeapi.un.org/public/v1/getDA/C/A/HS?reporterCode=156&period=2012%2C2013%2C2014%2C2015%2C2016%2C2017%2C2018%2C2019"
}

Quality, speed and cost, last 24 hours, across every agent call to UN Comtrade (comtradeplus.un.org) through Alexandria.

Quality
96.6%
Calls answered without a tool error
Speed
29.0 s
95% of successful calls finish faster
Cost
5 credits
Firecrawl credits per call
Calls
262
Last 24 hours, every Alexandria user
Quality and speed of each tool, last 24 hours
ToolQualitySpeedCalls
Trade data95.9%29.0 s220
Data availability100%6.2 s20
Browse the library
//
Get started
//
Give your agent UN Comtrade (comtradeplus.un.org).
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options