# US Tariff (HTS), EU VAT & TED Tenders Scraper ($0.80/1k) (`desastreger/cross-border-tariff-eu-trade-mcp`) Actor

Cross-border trade & procurement scraper: lookup official USITC HTS tariff duty rates, verify live EU VIES VAT numbers & search EU TED public procurement notices in one unified schema. Early-bird $0.80/1k (rises to $2/1k). +MCP.

- **URL**: https://apify.com/desastreger/cross-border-tariff-eu-trade-mcp.md
- **Developed by:** [Ignacio De Saeger](https://apify.com/desastreger) (community)
- **Categories:** Automation, E-commerce, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 cross-border tariff, eu vat verification, or eu public tender records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### USITC HTS Tariff Calculator, EU VIES VAT Verification & TED Tenders API

Automate cross-border customs duty estimation, European VAT tax verification, and EU public procurement discovery through a single normalized API and Standby MCP Server. Combining three official government registries—the **US International Trade Commission (USITC) Harmonized Tariff Schedule**, **European Commission VIES VAT Validation**, and **EU Tenders Electronic Daily (TED) Open API v3**—this scraper eliminates fragmented government integrations. Every item shares top-level fields (`recordType`, `identifier`, `jurisdiction`, `titleOrEntity`, `statusOrRate`, `estimatedDutyOrValueUsd`, `hasTradeRemedyOrRiskFlag`, `officialSourceUrl`, and `details`). Compute deterministic USD base duties from `shipmentValueUsd`, detect **Chapter 99 / Section 301 / Section 232** trade-remedy footnotes, validate 27-member-state EU VAT IDs in real time, and search EU TED tenders by keywords, 8-digit CPV codes, and ISO-3 country filters. No external API key or proxy required.

### Use cases

- **Landed Cost & Customs Duty Modeling:** Look up USITC HTS codes or product keywords, inherit 8-digit subheading rates onto 10-digit suffixes, and calculate base USD duties with Chapter 99 / Section 301 alerts.
- **Cross-Border E-Commerce & B2B Tax Onboarding:** Verify live EU corporate VAT numbers (`IE6388047V`, `DE123456789`) via EC VIES to confirm official company names and registered addresses before invoicing.
- **European Public Sector Sales & Bid Intelligence:** Monitor new EU TED government tenders filtered by CPV procurement codes (`72000000`) and ISO-3 countries (`DEU`, `FRA`, `IRL`, `NLD`).
- **ERP, Shopify & Supply-Chain Automations:** Integrate tariff, VAT, and tender checks into n8n, Make, or Python supply-chain pipelines with one unified JSON schema.
- **AI Trade & Procurement Agents via MCP:** Connect Claude Desktop, Cursor, or Google Antigravity directly to `/mcp` for live HTS duty lookups, VAT checks, and TED tender searches.

***

### Launch Pricing (Pay-Per-Event)

> \[!IMPORTANT]
> **Early-Adopter Launch Rate (`$0.80 / 1,000 records`):** Temporary promotional pricing for early Store adopters & integrations.
> **Upcoming Standard Rate (`$2.00 / 1,000 records`):** Price will step up once initial launch benchmarks are met — and even the permanent standard rate remains **75%–95% lower** than comparable Store compliance scrapers (`$10–$80/1k`).

Transparent usage-based pricing with zero monthly subscription overhead:

| Event | Description | Early-Adopter Launch (FREE) | Upcoming Standard Rate |
| :--- | :--- | :--- | :--- |
| **`trade-compliance-record`** *(primary)* | USITC HTS tariff calculation, EC VIES corporate VAT verification, or EU TED public procurement tender record | **$0.0008 / record ($0.80 / 1k)** | $0.0020 / record ($2.00 / 1k) |
| **`apify-actor-start`** | One-time container start fee per Actor run | **$0.00005 / run** | $0.00005 / run |

***

### 1-Click JSON Input Example

```json
{
  "mode": "all",
  "htsKeywords": ["lithium ion", "8507.60"],
  "shipmentValueUsd": 10000,
  "euVatNumbers": ["IE6388047V"],
  "tedKeywords": ["cybersecurity", "72000000"],
  "tedCountries": ["DEU", "ITA"],
  "maxResults": 20
}
```

***

### Sample Output JSON

```json
[
  {
    "recordType": "US_HTS_TARIFF",
    "identifier": "8507.60.00",
    "jurisdiction": "US",
    "titleOrEntity": "Lithium-ion batteries",
    "statusOrRate": "3.4%",
    "estimatedDutyOrValueUsd": 340,
    "hasTradeRemedyOrRiskFlag": false,
    "officialSourceUrl": "https://hts.usitc.gov/search?query=8507.60.00",
    "details": {
      "htsno": "8507.60.00",
      "generalRate": "3.4%",
      "specialRate": "Free (A,AU,B,BH,C,CL,CO,D,E,IL,JO,KR,MA,OM,P,PA,PE,S,SG)",
      "otherRate": "40%",
      "rateKind": "ad_valorem",
      "adValoremPct": 3.4,
      "shipmentValueUsd": 10000,
      "estimatedBaseDutyUsd": 340,
      "hasChapter99Footnote": false,
      "chapter99References": []
    }
  },
  {
    "recordType": "EU_VAT_VERIFICATION",
    "identifier": "IE6388047V",
    "jurisdiction": "EU-IE",
    "titleOrEntity": "GOOGLE IRELAND LIMITED",
    "statusOrRate": "VALID_VAT",
    "estimatedDutyOrValueUsd": null,
    "hasTradeRemedyOrRiskFlag": false,
    "officialSourceUrl": "https://ec.europa.eu/taxation_customs/vies/#/vat-validation",
    "details": {
      "countryCode": "IE",
      "vatNumber": "6388047V",
      "valid": true,
      "companyName": "GOOGLE IRELAND LIMITED",
      "registeredAddress": "3RD FLOOR, GORDON HOUSE, BARROW STREET, DUBLIN 4"
    }
  },
  {
    "recordType": "EU_PUBLIC_TENDER",
    "identifier": "783488-2026",
    "jurisdiction": "EU-ITA",
    "titleOrEntity": "Italy – Network equipment – INVA AQ - Prevenzione incidenti Cyber CSIRT-VdA",
    "statusOrRate": "PUBLISHED_TENDER",
    "estimatedDutyOrValueUsd": null,
    "hasTradeRemedyOrRiskFlag": false,
    "officialSourceUrl": "https://ted.europa.eu/en/notice/-/detail/783488-2026",
    "details": {
      "publicationNumber": "783488-2026",
      "publicationDate": "2026-11-11",
      "countries": ["ITA"],
      "cpvCodes": ["32420000"]
    }
  }
]
```

***

### API Quickstart (cURL, Node.js, Python)

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/desastreger~cross-border-tariff-eu-trade-mcp/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"mode": "us_hts_tariffs", "htsKeywords": ["lithium ion"], "shipmentValueUsd": 10000}'
```

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('desastreger/cross-border-tariff-eu-trade-mcp').call({
  mode: 'all',
  htsKeywords: ['lithium ion'],
  shipmentValueUsd: 10000,
  euVatNumbers: ['IE6388047V'],
  tedKeywords: ['cybersecurity'],
  maxResults: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("desastreger/cross-border-tariff-eu-trade-mcp").call(
    run_input={"mode": "eu_vies_vat", "euVatNumbers": ["IE6388047V"]}
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

***

### Model Context Protocol (MCP) Standby Server

Connect **Claude Desktop**, **Cursor**, or **Google Antigravity** directly to the live Streamable HTTP MCP endpoint:

```json
{
  "mcpServers": {
    "cross-border-tariff-eu-trade-mcp": {
      "url": "https://desastreger--cross-border-tariff-eu-trade-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

#### Available MCP Tools

- `lookup_us_hts_tariff`: Search USITC HTS codes or product keywords, compute USD base duty on `shipmentValueUsd`, and flag Chapter 99 footnotes.
- `verify_eu_vat_numbers`: Validate one or more EU VAT numbers via official EC VIES REST API.
- `search_eu_ted_tenders`: Search active/published EU public tenders by keywords, 8-digit CPV codes, and ISO-3 country codes.

***

### Data Provenance & Compliance

All records originate directly from official US Federal (`17 U.S.C. § 105` public domain) and European Union Open Data (`Commission Decision 2011/833/EU`) endpoints. Estimates represent base Schedule 1 General tariff math and do not constitute formal customs brokerage legal advice.

# Actor input Schema

## `mode` (type: `string`):

Choose a single compliance/trade intelligence feed or run all three feeds together ('all').

## `htsKeywords` (type: `array`):

Product names (e.g., 'lithium ion', 'semiconductor') or 4-10 digit Harmonized Tariff Schedule prefixes (e.g., '8507.60', '8541.41').

## `shipmentValueUsd` (type: `number`):

Customs shipment value in USD used to compute deterministic base ad-valorem duty estimates when the General duty rate is a percentage or Free.

## `euVatNumbers` (type: `array`):

EU corporate VAT numbers including 2-letter member-state prefix (e.g., 'IE6388047V', 'DE123456789'). Leading whitespace and hyphens are stripped automatically.

## `tedKeywords` (type: `array`):

Keywords (e.g., 'cybersecurity', 'cloud infrastructure') or 8-digit CPV procurement classification codes (e.g., '72000000') for EU public tenders.

## `tedCountries` (type: `array`):

Optional 3-letter ISO country codes to filter EU public tenders (e.g., 'DEU', 'FRA', 'IRL', 'NLD', 'BEL').

## `maxResults` (type: `integer`):

Maximum total number of trade compliance or procurement records to return (1 to 500).

## Actor input object example

```json
{
  "mode": "us_hts_tariffs",
  "htsKeywords": [
    "lithium ion"
  ],
  "shipmentValueUsd": 10000,
  "euVatNumbers": [
    "IE6388047V"
  ],
  "tedKeywords": [
    "cybersecurity"
  ],
  "tedCountries": [],
  "maxResults": 20
}
```

# Actor output Schema

## `records` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("desastreger/cross-border-tariff-eu-trade-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("desastreger/cross-border-tariff-eu-trade-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call desastreger/cross-border-tariff-eu-trade-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,desastreger/cross-border-tariff-eu-trade-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/p1pfPt9wUNXWralUJ/builds/caZ9y6PLYV29cZndA/openapi.json
