Ocean Freight Rate API: FCL Container Quotes
Query sea freight rates by origin port, destination port and carrier. Retrieve 20GP, 40GP and 40HQ container quotes, currency, validity and available surcharges for freight quoting software, shipping cost calculators and TMS or ERP integrations. See the fields and charge guidance below.
Endpoint Info#
| Request URL | POST https://www.5688.cn/api/openapi/v1/freight/fcl/search |
| Credit cost | 1 credits / call |
| Data freshness | Daily |
| Timeout suggestion | Client timeout ≥ 3s |
Request Parameters#
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| pol | string | Yes | Port of Loading, accepts 5-letter code (exact) / Chinese / English (fuzzy)Look up code ↗ | CNSHA / Shanghai |
| pod | string | Yes | Port of Discharge, accepts 5-letter code (exact) / Chinese / English (fuzzy)Look up code ↗ | USLSA / Los Angeles |
| carrier | string | No | Carrier, accepts code (exact) / Chinese / English (fuzzy)Look up code ↗ | MSK / Maersk |
| page | int | No | Page number, default 1 | 1 |
| limit | int | No | Page size, default 20, max 50 | 20 |
| pol_country | string | No | Origin country code (2-letter ISO, optional); pins the country when pol matches multiple same-name ports | CN |
| pod_country | string | No | Destination country code (2-letter ISO, optional). When pod matches multiple same-name ports (e.g. San Antonio in CL/US/AR), without it the endpoint returns rates for all same-name ports and charges per matched port; pass it to pin a single country | US |
Response Fields#
| Field | Type | Description |
|---|---|---|
| resolved.pol / pod | object | Echo of the parsed port (with input as raw input, code as parsed code, name in Chinese, name_en in English), for client confirmation |
| list[].id | string | Unique rate record ID |
| list[].pol / pod | object | Port of Loading / Port of Discharge { code, name, name_en } |
| list[].carrier | object | Carrier { code, name } (e.g. EMC Evergreen, MSK Maersk, ONE Ocean Network Express) |
| list[].transit | object | { is_direct: whether direct sailing, days: transit days, port/port_en: transshipment port in Chinese/English } |
| list[].schedule.cutoff_date | string | Cut-off date (YYYY-MM-DD; cargo and SI must arrive by this date after booking) |
| list[].schedule.departure_date | string | Departure date (ETD) (YYYY-MM-DD) |
| list[].schedule.arrival_date | string | Estimated arrival date (ETA) |
| list[].schedule.vessel_name / voyage | string | Vessel name / voyage number (may be empty for some carriers) |
| list[].schedule.service_code | string | Service route code (carrier-assigned route code, e.g. TP6 = TransPacific route 6; useful for predicting fixed schedules; may be empty for some carriers) |
| list[].schedule.is_real | boolean | true = departure/arrival/cutoff come from the carrier’s official sailing schedule (with vessel & voyage); false = no schedule available for this carrier, dates are estimated from the weekly pattern and are for reference only |
| list[].prices | object | Ocean freight in USD for 20GP, 40GP and 40HQ. Surcharges are listed separately in surcharges and are not added here. |
| list[].surcharges | array | Surcharge list: code, name, name_en, 20GP, 40GP, 40HQ, currency, remark, charge_unit, singleprice. Use charge_unit to determine how to calculate. |
| list[].surcharges[].charge_unit | string | Charge basis: CONTAINER per container, BILL per bill/shipment, MIXED container plus per-bill charges. UNKNOWN means incomplete upstream information; do not calculate automatically. |
| list[].surcharges[].singleprice | number | Per-bill amount in currency. Count it once for BILL; add it once to container charges for MIXED. It is 0 for CONTAINER. |
| list[].valid_until | string | Rate validity end date (YYYY-MM-DD) |
| credit_used | int | Credits deducted for this call (FCL fixed at 1) |
| credit_balance | int | Remaining credits after deduction |
Ocean freight, surcharges and destination fees#
One FCL response includes list[].prices for ocean freight in USD and list[].surcharges for configured applicable fees with their currencies and remarks. Surcharges are not automatically added to ocean freight. Use each fee's container size, currency and remarks; do not directly add different currencies.
Current surcharges mainly cover origin local charges. Complete destination THC, DO (delivery order), documentation and other fees are not guaranteed for every port. A fee name or destination matching condition does not establish where it is charged. The response has no explicit origin/destination charge-location field, and there is no separate destination-fee endpoint. An absent fee does not mean it is free.
Surcharge charge codes and calculation#
| charge_unit code | Meaning | Calculation |
|---|---|---|
| CONTAINER | Per container | 20GP × its quantity + 40GP × its quantity + 40HQ × its quantity. |
| BILL | Per bill / shipment | Use singleprice once per bill. Do not multiply by container quantity or add the three container-price fields. |
| MIXED | Container plus per-bill | Sum each container price × its quantity, then add singleprice once. Used when one fee has both container and per-bill amounts. |
| UNKNOWN | Incomplete information | Do not calculate automatically or guess from remarks, equal prices or missing fields. Contact support to verify. |
For compatibility, a pure per-bill fee still repeats its amount in 20GP/40GP/40HQ. Those values are not charges per container. New integrations must check charge_unit first and use only singleprice for BILL. Equal container prices do not imply per-bill charging; remark is descriptive text only.
Example with two 20GP containers: a BILL document fee with singleprice=300 totals 300; a CONTAINER terminal fee with 20GP=900 totals 1800; a MIXED fee with 20GP=900 and singleprice=300 totals 2100. Calculate within each fee's currency; do not mix currencies.
Full curl Example#
# pol / pod accept either 5-letter standard code, Chinese, or English (e.g. "CNSHA" / "上海" / "shanghai")
curl -X POST https://www.5688.cn/api/openapi/v1/freight/fcl/search \
-H "Content-Type: application/json" \
-H "X-Awice-AppKey: AK_xxxxxxxxxxxxxxxx" \
-H "X-Awice-Timestamp: 1746086400" \
-H "X-Awice-Nonce: a1b2c3d4e5f6a7b8" \
-H "X-Awice-Signature: 7f8e9d6c5b4a3f2e1d0c9b8a7e6d5c4b3a2f1e0d9c8b7a6e5d4c3b2a1f0e9d8c" \
-d '{
"pol": "CNSHA",
"pod": "USLSA",
"carrier": "MSK",
"page": 1,
"limit": 20
}'Successful Response#
{
"code": 0,
"msg": "success",
"request_id": "req_xxxxxxxxxxxxxxxx",
"data": {
"resolved": {
"pol": {
"input": "CNSHA",
"code": "CNSHA",
"name": "Shanghai",
"name_en": "shanghai"
},
"pod": {
"input": "USLSA",
"code": "USLSA",
"name": "Los Angeles",
"name_en": "los angeles,ca"
},
"carrier": null
},
"list": [
{
"id": "14848",
"pol": {
"code": "CNSHA",
"name": "Shanghai",
"name_en": "shanghai"
},
"pod": {
"code": "USLSA",
"name": "Los Angeles",
"name_en": "los angeles,ca"
},
"carrier": {
"code": "EMC",
"name": "Evergreen Marine"
},
"transit": {
"is_direct": true,
"days": 16,
"port": "",
"port_en": ""
},
"schedule": {
"cutoff_date": "2026-05-23",
"departure_date": "2026-05-25",
"arrival_date": "2026-06-10",
"vessel_name": "EVER GIVEN",
"voyage": "025E",
"service_code": "TP6"
},
"prices": {
"20GP": 2300,
"40GP": 2850,
"40HQ": 2850,
"currency": "USD"
},
"surcharges": [
{
"code": "DOC",
"name": "Document fee",
"name_en": "DOCUMENT FEE",
"20GP": 300,
"40GP": 300,
"40HQ": 300,
"currency": "CNY",
"remark": "Per bill",
"charge_unit": "BILL",
"singleprice": 300
},
{
"code": "THC",
"name": "Terminal handling charge",
"name_en": "TERMINAL HANDLING CHARGE",
"20GP": 900,
"40GP": 1400,
"40HQ": 1400,
"currency": "CNY",
"remark": "Example amounts",
"charge_unit": "CONTAINER",
"singleprice": 0
}
],
"valid_until": "2026-12-31"
}
]
},
"credit_used": 1,
"credit_balance": 9499
}Multiple POD matches: rates for all same-name ports#
When pod matches multiple same-name ports (e.g. San Antonio in Chile / US / Argentina), the endpoint automatically queries each port and merges the rates; every item in list carries a pod field marking its port, and you are charged per port that returned rates (N ports = N× credits; ports with no rate data are not charged). To narrow to one country, pass pod_country (2-letter ISO code) to pin a single port and pay only once. If pol matches multiple ports, the main port is auto-selected and not expanded.
{
"code": 0,
"msg": "success",
"request_id": "req_xxxxxxxxxxxxxxxx",
"data": {
"resolved": {
"pol": { "input": "Guangzhou", "code": "CNGZG", "name": "Guangzhou", "name_en": "guangzhou" },
"pod": {
"input": "San Antonio",
"matched": [
{ "code": "CLSAN", "name": "San Antonio", "name_en": "san antonio", "country_code": "CL" },
{ "code": "USSAT", "name": "San Antonio", "name_en": "san antonio,tx", "country_code": "US" }
]
},
"carrier": null
},
"multi_pod": true,
"matched_ports": 2,
"charged_ports": 2,
"skipped_ports": 0,
"total": 2,
"list": [
{
"id": "20015",
"pod": { "code": "CLSAN", "name": "San Antonio", "country_code": "CL" },
"carrier": { "code": "MSK", "name": "Maersk" },
"prices": { "20GP": 1850, "40GP": 3200, "40HQ": 3200, "currency": "USD" }
},
{
"id": "20016",
"pod": { "code": "USSAT", "name": "San Antonio", "country_code": "US" },
"carrier": { "code": "ONE", "name": "Ocean Network Express" },
"prices": { "20GP": 2100, "40GP": 3600, "40HQ": 3600, "currency": "USD" }
}
]
},
"credit_used": 2,
"credit_balance": 9498
}