# Freightos API

> Freightos returns weekly container freight rates by trade lane or global index, available as a workflow and API.

Freightos, also known as FBX, returns the latest public weekly price per 40-foot container for a trade lane or global composite. Get container freight rates accepts a lane name in words; leave it blank to return rates for all twelve lanes.

- Page: https://fous.com/workflows/freightos
- Handle: `@freightos`
- Category: [Logistics](https://fous.com/workflows/category/logistics)
- Source website: https://fbx.freightos.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Freightos.

## Methods

### Get container freight rates

Operation `get_container_freight_rates`, version 1. 1 credit per call.

Get the latest public weekly Freightos Baltic Index price per 40-foot container for a trade lane or the global composite and all twelve lanes. Weekly change is calculated from the two latest published weekly values; year-over-year change is not shown on the public pages.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `lane` | string | no | `"China to US West Coast"` | Trade lane in words, such as China to US West Coast, or Global composite index. Leave blank for all lanes. |

**Input schema**

```json
{
  "type": "object",
  "properties": {
    "lane": {
      "type": "string",
      "default": "",
      "description": "Trade lane in words, such as China to US West Coast, or Global composite index. Leave blank for all lanes.",
      "examples": [
        "China to US West Coast",
        "North Europe to US East Coast",
        "China to North Europe"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "lane": "China to US West Coast"
    },
    {
      "lane": "North Europe to US East Coast"
    },
    {}
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `rates` | array |  | Latest weekly container freight rates. |
| `rates[].lane` | string | `"China/East Asia to North America West Coast"` | Trade lane in words. |
| `rates[].link` | string | `"https://www.freightos.com/enterprise/terminal/fbx-01-china-to-north-america-west-coast/"` | Freightos page for this lane. |
| `rates[].currency` | string | `"USD"` | Price currency, USD. |
| `rates[].index_date` | string | `"2026-09-25"` | Date of the weekly index value. |
| `rates[].fbx_lane_code` | string | `"FBX01"` | FBX index code. |
| `rates[].weekly_change_percent` | number | `3.81` | Change from previous published weekly value, in percent. |
| `rates[].price_per_40ft_container` | number | `8410.8` | Weekly price for a 40-foot container. |
| `rates[].year_over_year_change_percent` | number or null |  | Change versus a year earlier, if shown by Freightos; otherwise null. |

**Example input**

```json
{
  "lane": "China to US West Coast"
}
```

**Example output**

```json
{
  "rates": [
    {
      "lane": "China/East Asia to North America West Coast",
      "link": "https://www.freightos.com/enterprise/terminal/fbx-01-china-to-north-america-west-coast/",
      "currency": "USD",
      "index_date": "2026-09-25",
      "fbx_lane_code": "FBX01",
      "weekly_change_percent": 3.81,
      "price_per_40ft_container": 8410.8,
      "year_over_year_change_percent": null
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@freightos",
  "visibility": "public",
  "operation": "get_container_freight_rates",
  "version": 1,
  "input": {
    "lane": "China to US West Coast"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@freightos\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_container_freight_rates\",\n  \"version\": 1,\n  \"input\": {\n    \"lane\": \"China to US West Coast\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@freightos",
  "visibility": "public",
  "operation": "get_container_freight_rates",
  "version": 1,
  "input": {
    "lane": "China to US West Coast"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@freightos","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare weekly container prices across trade lanes
- Track weekly freight rate changes
- Review prices for the global composite index
- Plan shipping budgets using lane rates

## FAQ

### Is Fous affiliated with Freightos?

No. Fous is not affiliated with Freightos. This workflow reads the public fbx.freightos.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Freightos account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from fbx.freightos.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### What is the weekly price for a 40-foot container?

Get container freight rates returns the latest published weekly price for a selected lane or the global composite index.

### How much did a lane's rate change this week?

Get container freight rates returns the percent change from the previous published weekly value.

### What are the rates for all twelve lanes?

Leave the lane input blank in Get container freight rates to retrieve rates for all twelve lanes.

## Related

- [Maersk API](https://fous.com/workflows/maersk.md): Ocean shipping and logistics tracking.
- [FlixBus API](https://fous.com/workflows/flixbus.md): Find and book bus and train trips on FlixBus.
- [Investing.com API](https://fous.com/workflows/investing-com.md): Investing.com provides financial markets data and news, economic releases up to 31 days, and current commodity prices and government bond yields, which may be delayed or indicative.
- [FRED API](https://fous.com/workflows/fred.md): FRED provides public economic series, observations, latest values, sources, and popular topic searches with coverage dates and metadata; freshness varies by series.
- [FedEx API](https://fous.com/workflows/fedex.md): Shipping and package tracking.
- [VesselFinder API](https://fous.com/workflows/vesselfinder.md): Public ship positions and vessel particulars.
- [Trading Economics API](https://fous.com/workflows/trading-economics.md): Trading Economics provides economic indicators, market data and country statistics, including country overviews, latest reported country comparisons and current commodity prices reflecting reported trading days.
- [Forex Factory API](https://fous.com/workflows/forex-factory.md): Economic calendar and foreign exchange market news.
- [All Logistics workflows](https://fous.com/workflows/category/logistics)
