# FreightGate Local Port Charges API

> FreightGate Local Port Charges API is a paid API for AI agents from api.shippingrates.org, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns port local charges including THC, bill of lading fees, and documentation costs for a given shipping line and country

## Facts

- Endpoint: POST https://api.shippingrates.org/api/local-charges
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/freightgate-local-port-charges-api-d2e1c1fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3eRg4QOJvMbOPXg98a6gR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability freightgate-local-port-charges-api-d2e1c1fa -d '<json body>'
```

Example prompt: What are the local port charges — THC, BL fees, and documentation costs — for Maersk (slug: maersk) in India (IN), specifically at INMUN port?

## When to prefer this

Use this endpoint when you need port-level local charges (THC, BL, documentation) for a specific shipping line and country, as opposed to demurrage/detention costs, inland haulage rates, or CFS tariffs which are covered by sibling endpoints. Ideal for freight cost breakdowns and pre-shipment cost estimation.

## Known failure modes

- Unknown shipping line slug returns a 4xx error or empty result
- Invalid ISO country code returns validation error
- Port code not found for the given country returns empty or no-match response
- Missing required fields (line or country) returns a 400 Bad Request
- Payment not fulfilled via x402 returns a 402 Payment Required

## How this service works

Port local charges — THC, BL fees, documentation

## Output

A structured breakdown of port local charges for the specified shipping line and country, including terminal handling charges (THC), bill of lading fees, and documentation costs. May be filtered to a specific port code if provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "line": {
   "type": "string",
   "description": "Shipping line slug"
  },
  "country": {
   "type": "string",
   "description": "ISO 2-letter country code"
  },
  "port_code": {
   "type": "string",
   "description": "Optional port code filter (e.g. INMUN)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/freightgate-local-port-charges-api-d2e1c1fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.shippingrates.org](https://www.zero.xyz/host/api.shippingrates.org/llms.txt)
