US Census HS10 Trade Flows & Tariff Duties API avatar

US Census HS10 Trade Flows & Tariff Duties API

Pricing

from $2.40 / 1,000 trade flow records extracted

Go to Apify Store
US Census HS10 Trade Flows & Tariff Duties API

US Census HS10 Trade Flows & Tariff Duties API

Extract official US Census monthly HS10 imports, exports, customs value, CIF, and calculated tariff duties by country, port, or state as JSON, CSV, or MCP.

Pricing

from $2.40 / 1,000 trade flow records extracted

Rating

0.0

(0)

Developer

Andy Tertzakian

Andy Tertzakian

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

5 hours ago

Last modified

Features

Limited permissions

Share

Use this US Census Trade & Tariff Duties API to extract official US Census Bureau International Trade (FT-900) monthly imports, exports, customs value (FOB/FAS), CIF, shipping charges, quantities, and calculated tariff duties (CAL_DUT_MO) across HS2 / HS4 / HS6 / HS10 commodities, partner countries, US customs districts, ports of entry/exit, and US states — formatted as clean JSON, CSV, Excel, or live via Model Context Protocol (MCP).

Unlike static tariff-schedule lookup tools, this Actor queries actual realized monthly US customs flows and duties collected, enriched automatically with Schedule C country names & ISO-2 codes and Schedule D district/port names.


Key Features

  • 1-Click Ready + Optional BYOK: Runs out-of-the-box with a managed Census API key (or supply your own free censusApiKey via encrypted BYOK input). Keys are strictly redacted from all logs and output _source_url fields.
  • All 6 Official Endpoints (imports / exports × hs / porths / statehs):
    • imports/hs: Full HS10 granularity with FOB customs value, CIF, freight/insurance charges, imports for consumption, dutiable value, calculated tariff duty (calculated_duty_usd), effective duty rate (%), and transport-mode weights/values.
    • exports/hs: Full HS10 FAS export value, domestic vs. foreign re-export (DF), quantities, and vessel/air/containerized splits.
    • porths & statehs: Port-of-entry/exit and US state trade flows (up to HS6 per Census disclosure rules).
  • Zero Double-Counting: Pins SUMMARY_LVL=DET and the finest non-overlapping SUMMARY_LVL2 lattice (HSCYCSDTRP, HSDTCYDF, HSPTCY, HSSTCY) so overlapping country groups (CGP) and subtotal rows never inflate totals.
  • Auto-Detects Latest FT-900 Month: Leave startMonth blank to automatically skip unpublished HTTP 204 months and fetch the newest official Census release.
  • Human-Friendly ISO-2 Filtering: Pass countries: ["CA", "MX", "CN", "DE"] (auto-translated to 4-digit Schedule C codes) instead of memorizing Census code books.

Use with AI Agents (Claude Desktop, Cursor, MCP)

{
"mcpServers": {
"us-census-trade": {
"url": "https://mcp.apify.com/?tools=actors,zertax/us-census-hs-trade-tariffs-mcp"
}
}
}

Example prompts:

  • "Pull the latest monthly US HS10 crude oil imports (2709) from Canada and Mexico with customs value, barrels, and calculated tariff duties."
  • "Show US semiconductor imports (8542) by customs district and effective duty rate for the last 3 months."
  • "Compare Texas (TX) LNG / natural gas exports (2711) by partner country."

Example Input

{
"flow": "imports",
"geography": "hs",
"hsPrefix": "2709",
"commLevel": "HS10",
"countries": ["CA", "MX"],
"maxItems": 50
}

Example Output Record

{
"flow": "imports",
"geography": "hs",
"month": "2026-08",
"commodity_code": "2709001000",
"commodity_desc": "CRUDE OIL FROM PETROLEUM OR BITUMINOUS MINERALS TESTING UNDER 25 DEGREES API",
"country_iso2": "CA",
"country_name": "CANADA",
"district_code": "39",
"district_name": "CHICAGO, IL",
"customs_value_usd": 2418500000.0,
"cif_value_usd": 2451200000.0,
"calculated_duty_usd": 4125000.0,
"effective_duty_rate_pct": 0.17,
"_source": "us_census_ft900",
"_schema_version": "1.0.0"
}

Pay-Per-Event Pricing

Predictable event-based billing with automatic tiered discounts (10% off Bronze, 25% off Silver, 40% off Gold+):

EventFree TierGold+ TierWhen Billed
apify-actor-start$0.005$0.003Once per Actor run
trade-query-month$0.01$0.006Once per published FT-900 month returned (HTTP 204 unpublished months are free)
trade-record (Primary)$0.004 ($4 / 1,000)$0.0024 ($2.40 / 1,000)Per enriched trade record pushed to Dataset

FAQ

How is effective_duty_rate_pct calculated?
Dividing official US Census calculated import duties (CAL_DUT_MO) by consumption customs value (CON_VAL_MO), giving the actual realized tariff burden paid at US borders rather than headline statutory rates.

Why does leaving startMonth blank still work immediately?
US Census releases FT-900 data with a ~5-week lag and returns HTTP 204 for unpublished months. The Actor automatically steps back to the latest published FT-900 release with zero charge for unpublished months.

Privacy & Telemetry: This Actor records only anonymous aggregate run metrics (billing event counts, run origin, and a salted one-way user hash — never inputs, credentials, raw user IDs, or extracted data) for reliability and billing analytics.


More Public Regulatory, Trade & ESG Data Actors (MCP-Ready)

Built by zertax — clean-room, serverless, Pay-Per-Event Python Actors with strict Pydantic schemas, UTC provenance, and 1-click Streamable HTTP MCP support:

Corporate Filings, International Trade & Market Positioning

Voluntary Carbon, ESG & Environmental Compliance

REST API, Free 2026 Sample CSVs & Multi-Tool MCP