Sitelet https://funapi.dev/docs/cargo

Cargo Tracking API — free mock REST API for testing

Track parcels through a strict state machine (label-created → picked-up → in-transit → out-for-delivery → delivered). Reads are public; every write needs the header X-API-Key: cargo-key-123 — a different auth style than the Bearer tokens used elsewhere.

The Cargo Tracking API is a shipment state machine — created, picked up, in transit, delivered — where illegal transitions are rejected rather than accepted. It is also the only API in the catalog that authenticates writes with an X-API-Key header instead of a Bearer token, which makes it useful for testing a client that must handle more than one auth scheme.

Base URL: https://funapi.dev/api/cargo/v1 · 9 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

Example request and response

GET https://funapi.dev/api/cargo/v1/shipments — List shipments, filter by status. No token, no signup:

curl -i https://funapi.dev/api/cargo/v1/shipments

answers 200 OK with:

{
  "total": 3,
  "data": [
    {
      "id": "TRK123456",
      "recipient": "Wile E. Coyote",
      "status": "in-transit",
      "attempts": 0
    },
    {
      "id": "TRK777777",
      "recipient": "Joey Tribbiani",
      "status": "delivered",
      "attempts": 1
    },
    {
      "id": "TRK000001",
      "recipient": "H. Potter",
      "status": "label-created",
      "attempts": 0
    }
  ]
}

Open and run this endpoint

What you can practise here

tracking

where is my package

operations

writes, gated by X-API-Key

All 39 mock REST APIs

Use this response elsewhere

Last updated