Census Trade Scraper avatar

Census Trade Scraper

Pricing

from $3.50 / 1,000 results

Go to Apify Store
Census Trade Scraper

Census Trade Scraper

Pricing

from $3.50 / 1,000 results

Rating

0.0

(0)

Developer

Fortuitous Pirate

Fortuitous Pirate

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Categories

Share

US Census International Trade Data Scraper

Extract US import and export trade data from the official Census Bureau International Trade API. Get trade values, quantities, and commodity descriptions by HS code, country, and port.

Features

  • Import & Export Data: Query US imports, exports, or both
  • Multiple Data Levels: By HS code, port, NAICS industry, or end-use category
  • Flexible Filtering: Filter by commodity (HS code), country, port, date range
  • Quantity Data: Includes quantities and units of measure
  • Date Ranges: Query single months or multi-month ranges (2013-present)
  • No API Key Required: Works without authentication (key optional for higher limits)

Data Available

FieldDescription
tradeType"import" or "export"
timeMonth (YYYY-MM format)
commodityCodeHS code (2, 4, 6, or 10 digits)
commodityDescriptionHuman-readable commodity name
countryNameTrading partner country
countryCodeCensus country code
tradeValueMonthlyTrade value in USD for the month
tradeValueYTDYear-to-date trade value (optional)
quantityQuantity traded
unitUnit of measure (e.g., NO, KG, LTR)
portCodePort district code (if port-level)
portNamePort name (if port-level)

Input Examples

All US-China trade in vehicles (HS 87) for 2024

{
"tradeType": "both",
"hsCode": "87",
"countryCode": "5700",
"startMonth": "2024-01",
"endMonth": "2024-12",
"aggregationLevel": "HS4"
}

Semiconductor imports by port

{
"tradeType": "imports",
"dataLevel": "porths",
"hsCode": "8542",
"startMonth": "2024-06"
}

All exports to Mexico, broad categories

{
"tradeType": "exports",
"countryCode": "2010",
"startMonth": "2024-01",
"aggregationLevel": "HS2"
}

Common Country Codes

CodeCountry
5700China
2010Mexico
1220Canada
5880Japan
4280Germany
4120United Kingdom
5830South Korea
5330India

Common HS Codes

CodeCategory
84Machinery, mechanical appliances
85Electrical machinery, equipment
87Vehicles
27Mineral fuels, oils
90Optical, medical instruments
8471Computers
8542Integrated circuits
8703Motor cars
2709Crude petroleum

API Information

Output

Results are saved to the default dataset. Each record includes:

  • Trade type (import/export)
  • Time period
  • Commodity code and description
  • Country information
  • Trade value in USD
  • Quantity and unit (if available)
  • Port information (if port-level query)

Notes