Skip to content
//UN Comtrade Trade Data Scraper example\\

Indonesia fresh fruit exports by partner, with subheadings

Indonesia's exports of HS 0810 (other fresh fruit) to every partner in 2023 and 2024, with all 6-digit subheadings.

Updated November 13, 2026

What this example returns

The dataset’s “Trade records” view shows 13 columns: Reporter, Partner, Flow, Period, HS code, Product, Value (USD), Net weight (kg), Quantity, Unit, Level, Parent HS code, and Source. See every output field.

What each setting does

The input this example runs UN Comtrade Trade Data Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Reporting countries reporters

Indonesia

Countries whose customs statistics to read: a name (Indonesia), an ISO code (IDN) or a UN M49 code (360). Each country is read on its own. Exports are what this country reports sending abroad; imports what it reports receiving.

HS codes hsCodes

0810

Products as Harmonized System codes: 2 digits (chapter, e.g. 08 fruit and nuts), 4 digits (heading, e.g. 0810 other fresh fruit) or 6 digits (subheading, e.g. 081090). TOTAL = all goods. A national tariff line of 8 or more digits (e.g. Indonesia's 08109091, salak) reads that line from the country's tariff-line data.

Trade flow flows

X

Which direction of trade to read. Choose several to get them in one run.

Year from yearFrom

2023

First year to read. Empty = five years back.

Year to yearTo

2024

Last year to read. Empty = the current year.

Also every 6-digit subheading includeSubheadings

Yes

For 2- and 4-digit codes, also save each 6-digit HS subheading under them (e.g. 0810 also gives strawberries 081010, durians 081060, other fruit 081090 ...).

Default: No → this example uses Yes

.json
{
  "reporters": [
    "Indonesia"
  ],
  "hsCodes": [
    "0810"
  ],
  "flows": [
    "X"
  ],
  "yearFrom": 2023,
  "yearTo": 2024,
  "includeSubheadings": true
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Trade record$0.0017One saved trade row: one reporting country, partner, flow, period and product code with value, net weight and quantity.

Full pricing

Other ways to run UN Comtrade Trade Data Scraper

All examples of UN Comtrade Trade Data Scraper

About UN Comtrade Trade Data Scraper

Export and import statistics from UN Comtrade by reporting country, partner country, HS code and year or month: trade value in US dollars, net weight in kg, quantity, HS subheadings and national tariff lines. No login or key needed.

Price:
$1.70 / 1,000 results
Developer:
Querystone
Category:
Business

UN Comtrade Trade Data Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.