# UK Landed Cost Intelligence (`tryva/uk-landed-cost-api`) Actor

Turn product/cart + origin + value + shipping into UK commodity-code candidates, MFN duty baseline, VAT estimate, landed cost, confidence, and warnings.

- **URL**: https://apify.com/tryva/uk-landed-cost-api.md
- **Developed by:** [smile flow](https://apify.com/tryva) (community)
- **Categories:** E-commerce
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 landed cost estimates

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## UK Landed Cost Intelligence API

UK-only e-commerce landed-cost decision API for goods imported into Great Britain.

### What it does

Input a cart/product description, country of origin, value and logistics costs. The API returns:

- official UK commodity-code candidates;
- an MFN customs-duty baseline from the UK Global Tariff;
- import-VAT estimate where the normal import regime applies;
- landed-cost estimate in GBP;
- confidence, evidence and warnings;
- `NEED_MORE_INFO` instead of silently guessing when classification or tax treatment is not sufficiently determined.

This is deliberately not a generic tariff lookup. It combines product classification assistance, tariff evidence, valuation logic and cart-level cost calculation.

### V1 scope

- Destination: Great Britain only (England, Scotland and Wales).
- Currency: GBP only.
- Commodity candidates: official UK Global Tariff commodity descriptions.
- Customs duty: current measure type 103 (Third Country Duty / MFN), filtered to Erga Omnes (geographical area 1011), no automatic special additional-code treatment.
- Preferential origin rates are not automatically claimed.
- Simple ad-valorem duty expressions can be calculated automatically.
- Non-ad-valorem, conditional, quota, additional-code, anti-dumping, excise and special-procedure cases return warnings or require review.
- Consignments at or below £135 use the current low-value duty-relief path only when they are non-excise. Checkout VAT must be supplied to produce a complete low-value landed-cost result.
- Imports above £135 require a product-specific VAT rate per line. V1 does not silently assume the 20% standard rate because reduced and zero-rated goods exist.
- The published UK reform removing the £135 customs-duty relief has a future operative date to be appointed. V1 must be updated when the new regime takes effect.

### Endpoints

- `GET /`
- `GET /health`
- `GET /v1/tariff/status`
- `GET /v1/tariff/{commodity_code}`
- `POST /v1/classify`
- `POST /v1/landed-cost/estimate`
- `POST /v1/landed-cost/batch`

### Main source

Department for Business and Trade / UK Global Tariff:

- Commodity hierarchy: DBT `commodities-report` from the newest coherent recent dataset version.
- Measures: DBT `measures-on-declarable-commodities` pinned to the same concrete dataset version.
- The daily sync falls back from an incompletely published `latest` version instead of mixing data from different tariff versions.
- Licence: Open Government Licence v3.0.

VAT and valuation logic is based on HMRC / GOV.UK guidance. Because standard, reduced and zero rates exist, V1 requires the caller to supply the product-specific VAT rate for imports above £135 rather than inventing a default. For low-value e-commerce consignments, the caller supplies checkout VAT when applicable.

### Important

This product provides estimates and decision-support signals. It does not constitute customs, tax or legal advice, and it does not make a binding tariff classification.

A commodity candidate is not automatically treated as a declaration-ready classification. If no commodity code is supplied, the API returns candidates and `NEED_MORE_INFO`.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

# 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("tryva/uk-landed-cost-api").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("tryva/uk-landed-cost-api").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 tryva/uk-landed-cost-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tryva/uk-landed-cost-api"
        }
    }
}

```

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/HyfX7ZvROewDNquwa/builds/ws5ea79oVz4HXUYem/openapi.json
