US Trade Data Scraper - Comtrade & Census Aggregates avatar

US Trade Data Scraper - Comtrade & Census Aggregates

Pricing

from $1.80 / 1,000 results

Go to Apify Store
US Trade Data Scraper - Comtrade & Census Aggregates

US Trade Data Scraper - Comtrade & Census Aggregates

Collect country and commodity trade aggregates from keyless UN Comtrade preview, plus optional Census import data with your key. Source links and status included. No shipment or consignee records.

Pricing

from $1.80 / 1,000 results

Rating

0.0

(0)

Developer

Brandt May

Brandt May

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Explore public trade aggregates — illustrative workflow

US Trade Data Scraper - Comtrade & Census Aggregates

Collect country and commodity trade aggregates from keyless UN Comtrade preview, plus optional Census import data with your key. Source links and status included. No shipment or consignee records.

Open in Apify Console · First run · Output · Pairings · Price

First run and source setup

  1. Review source-credential requirements in the form and full guide: censusApiKey. Supply your own credentials where required; the JSON below omits secrets.
  2. Open the JSON input editor and start with the bounded configuration below. Review dates and targets for your intended use.
  3. Review the current Pricing tab and set a maximum run charge and timeout in Run options. A result limit does not set a spending limit or promise that many rows.
  4. After completion, inspect the dataset and the run's diagnostics/Storage records described in the full guide. A successful process alone does not establish complete source coverage.
{
"sources": [
"comtrade"
],
"reporterCode": "842",
"flowCode": "M",
"cmdCode": "TOTAL",
"partnerCode": "0",
"hsCode": "85",
"maxItems": 5,
"maxRunSeconds": 240,
"softFail": false
}

Checked against the captured input schema. This bounded configuration has not been run as part of the presentation refresh.

Output worth checking

The published default dataset view includes these fields. Missing values and source-specific coverage are explained in the full guide.

  • Aggregate record type · recordType
  • Commodity code · commodityCode
  • Reported trade partner · partner
  • Reporting period · period
  • Reported trade value · value
  • Statistical source · source

Keep original source links and observation dates when interpreting records. JSON preserves nested values; CSV is useful for flat columns.

Use this with other Mayd It Actors

These are separate tools for a reviewed workflow. Each run uses its own input, authorization and pricing; this guide does not configure automatic execution.

UN Press Release Monitor - Official Updates and Changes

Monitor official UN press-release listings with document codes, dates, source links and bounded publisher excerpts. Filter literal topics and compare saved releases. No API key. Keep this UN Press Release Monitor evidence alongside the original source in a reviewed policy and trade review workflow.

Parallel research context: Choose the corresponding source target in this second Actor’s own input form; no automatic field transfer is configured. Keep both original source URLs and observation dates in your review sheet; reconcile identities manually.

Keep the distinction: Notices, sanctions actions and trade statistics cover different scopes and effective dates. Keep jurisdictions and source identifiers separate; this is research evidence, not legal or compliance advice.

Search US motor carriers from the FMCSA MCMIS census open dataset (data.transportation.gov). Filter by name, USDOT, state or status. No API key. Keep this FMCSA Carriers Scraper evidence alongside the original source in a reviewed policy and trade review workflow.

Parallel research context: Choose the corresponding source target in this second Actor’s own input form; no automatic field transfer is configured. Keep both original source URLs and observation dates in your review sheet; reconcile identities manually.

Keep the distinction: Notices, sanctions actions and trade statistics cover different scopes and effective dates. Keep jurisdictions and source identifiers separate; this is research evidence, not legal or compliance advice.

Price and run limits

At the captured FREE-tier rate (2026-11-16 UTC), $0.003 per result. Actor Start is $0.00005 per event; the number of startup events depends on memory. Plan rates and future changes may differ; check the current Pricing tab before starting.

A capped or interrupted run can save useful rows without covering its intended scope. Review the source-specific completeness and comparison rules below before treating missing rows as removals.

Documentation and support

Product guide, source limits and saved output · API and MCP setup · Input schema

Open this Actor's Issues tab with a run URL, the relevant input field and the result you expected. Remove API keys and private information before sharing.

Complete source guide

Explore public trade aggregates

For trade researchers, collect commodity and country aggregates from public statistical sources without treating them as shipment records.

Coverage: Keyless UN Comtrade preview by default. Optional Census HS import aggregates require a free Census API key. No bills of lading are returned.

Open this Actor in Console · First run · Results · Cost · Full guide

Try this Actor

  1. Use the existing Comtrade defaults and keep the maximum saved-row cap small. Add Census only after supplying its required key.
  2. Review aggregate rows in the run's dataset and read SUMMARY for source status, completeness and stop reasons.

Read the results correctly: These rows do not identify individual shipments, importers or consignees. With soft-fail enabled, a successful run can still contain no collected data.

Result preview

The dataset view highlights these columns:

  • Aggregate record type · recordType
  • Commodity code · commodityCode
  • Reported trade partner · partner
  • Reporting period · period
  • Reported trade value · value
  • Statistical source · source

Use the original source links and the field definitions below when interpreting the results. CSV works well for flat columns; JSON preserves nested values.

Usage and pricing

Base result rate on the FREE tier: $3 per 1,000 results. The Pricing tab shows your plan's result rate and any Actor Start charge. Set a small result limit for the first run; the requested limit is not a guarantee of that many results.


Full guide

Honest scope: this Actor returns public trade aggregates, not bills of lading. Default source is UN Comtrade public preview (keyless). Optional Census Bureau HS import aggregates need a free Census API key. True BOL / ImportYeti-class scrapers are outside this Actor’s supported scope.

Defaults (no paid keys)

InputDefaultBehavior
sources["comtrade"]Keyless UN Comtrade preview
reporterCode842 (USA)Comtrade reporter
cmdCodeTOTALWorld aggregate; when maxItems > 1 also expands a few HS2 chapters
censusApiKeyemptyCensus source skipped unless you supply a free key

Without any key you still get real Comtrade aggregate row(s). Census is soft-fail / optional only.

What you will not get

  • Individual bills of lading, consignee lists, or vessel manifests
  • ImportYeti / Panjiva / commercial BOL HTML scrapes

Source failures

Complete source failure fails the run by default. Explicit softFail: true keeps the run successful with zero dataset rows and SUMMARY.status = source_failed; diagnostics are stored only in SUMMARY. A genuine empty query succeeds with an empty dataset and a warning.

Result accounting

Only real source records are written to the dataset. SUMMARY.total counts saved rows. A dataset spending cap stops further writes and sets SUMMARY.stoppedOnChargeLimit and SUMMARY.incomplete. Source failures and time limits are reported in the summary; they do not generate substitute result rows.

Help with your run

Open the Issues tab on this Actor with the run URL, the input field that caused trouble and what you expected to receive. Remove API keys and private information before posting.

Explore more Mayd-It Actors

Understand your run

Open Run report in the run’s Output tab for saved-record counts, reported source issues and limits, and suggested next steps. Use CSV export to take the saved results into a spreadsheet. The existing JSON results and detailed machine-readable summary remain available.

The report reflects this run’s recorded coverage. A successful run or a saved result does not establish that every possible source record was collected.