Skip to main content
EuroCargo

Developers

EuroCargo REST API, v1

Four read endpoints, one record shape, bearer-token authentication. Every example on this page runs against the live service on this host — change the identifier and the response changes with it.

Base URL

https://eurocargo.asia/api/v1

The sample identifiers and the test data set are identical in every environment, so a failing assertion in your integration test is a real bug rather than a moving target.

Test key

ec_live_7f3a92c4d18b4e60

Pass the key in an HTTP header. Keys are scoped read-only by default; write scopes are issued per contract after the first paid quarter.

Status codes

Endpoints

GET/api/v1/track/{id}Try it

Full tracking record: shipment, resolved stops with coordinates, legs with gauge-exchange data, and the event history.

  • idpath · requiredIdentifier in EC-XXXXXX form, case-insensitive.
  • localequeryen, ru or pl. Affects hub labels only; codes stay constant.
GET/api/v1/shipmentsTry it

Paginated list of shipments on your account, with the compact spine used by boards and CSV exports.

  • statusqueryloading, in_transit, gauge_change, customs, delivered, delayed.
  • pagequery1-based. Size is fixed at 50 records.
GET/api/v1/hubsTry it

Terminal directory: coordinates, gauge, operator, monthly TEU capacity and scheduled dwell.

GET/api/v1/healthTry it

Feed freshness and upstream connections. Use it as the probe in your own monitoring.

Working examples

Each block is complete: paste it, replace the key, and it runs against the endpoints published above.

shell
# One shipment, full tracking recordcurl -s \  -H "Authorization: Bearer ${EC_KEY}" \  https://eurocargo.asia/api/v1/track/EC-448127.json# Terminals with coordinates and scheduled dwellcurl -s https://eurocargo.asia/api/v1/hubs.json# Feed freshness probecurl -s -o /dev/null -w "%{http_code} %{time_total}s\n" \  https://eurocargo.asia/api/v1/health.json

Response fields on /track

  • shipment.positionnumber

    Route fraction covered, 0–1. Never extrapolated beyond the last event.

  • shipment.currentHubstring

    Hub code the consist was last confirmed at.

  • shipment.events[]array

    Chronological, append-only. Each item has ts, code, hub and typed params.

  • shipment.reeferobject | null

    Present only for refrigerated equipment.

  • legs[].gaugeExchangeobject | null

    Set on the two legs where the bogies are exchanged.

  • summary.remainingKmnumber

    distanceKm minus coveredKm, integer kilometres.

Rate limits

Webhooks

We POST a signed envelope on every status transition. Verify X-EuroCargo-Signature as HMAC-SHA256 over the raw body with your endpoint secret. Deliveries are retried with exponential backoff for 24 hours and can be replayed from the cabinet.

Rate limits
Rate limitsStatusRoute
Requests per minute240burst 60
Requests per day25 000plan Tracker: 1 000
Webhook endpoints5plan Network: 25
Payload64 KBper webhook delivery

Errors

  • 400invalid_identifierThe path segment is not EC-XXXXXX.
  • 404shipment_not_foundNo record on this account, or older than 24 months.
  • 429quota_exceededRetry after the header value; the window is sliding.
  • 503feed_staleUpstream terminal feed is older than 6 hours; /health names it.

The version lives in the path. Additive fields appear without notice; anything a client depends on is documented and changes only under a new prefix. v1 is current since March 2025.

response
HTTP/1.1 200 OKContent-Type: application/json; charset=utf-8X-EuroCargo-Request-Id: req_2611_28_09_4481X-RateLimit-Limit: 240X-RateLimit-Remaining: 237Cache-Control: public, max-age=60{ "id": "EC-448127", "found": true }

Versioning

The sample identifiers and the test data set are identical in every environment, so a failing assertion in your integration test is a real bug rather than a moving target.