API reference

Caravans

GET /api/v1/alliances/{id}/caravans. Caravan history for the alliance of the main character linked in your account. An API key and paid access are required. Without filters, returns available history; consecutive identical compositions within a trip are collapsed.

Keep player and alliance IDs as strings. Times are Unix seconds except alliance roster[].joined (Unix milliseconds); donation day uses YYYYMMDD. null, missing fields and empty arrays do not prove a zero value. asOf describes the overall profile; individual seen times may differ. Online status and last login time are not provided. No update frequency is guaranteed. Dates of data (asOf, seen, disbanded, history and detected events) have day precision: Unix timestamps at 00:00 UTC. Histories contain the last value of each day. Snapshot dates in API bodies and headers use the same precision. Game event times, alliance join times and quota resets retain their original precision.

Current rows and visible columns.
FieldMeaning
dateOptional YYYY-MM-DD date. The game day starts at 05:00 Moscow time (UTC+3). Omit to include history beyond today.
zone, escortOptional pair selecting one trip. Supply both values from trips.
allianceIdAlliance ID. Another alliance or no linked character returns 403.
trips[]Available published trips, newest first. The response covers up to 200 recent observations. A missing trip does not prove it never took place.
trips[].zone, escortZone and trip identifiers, as strings.
trips[].start, endIn-game departure and end times: Unix milliseconds.
trips[].seenAtLast observation date: UTC day start, Unix milliseconds.
trips[].wagonCount, capacityNumber of wagons and passenger seats per wagon.
trips[].assignments[]Latest known composition: id, name, carriage. Leading wagon 0, passenger wagons 1-4. role: driver, passenger, vip or guard; if absent, the role follows the wagon.
trips[].observations[]Composition changes: at and assignments. at is the UTC date start in milliseconds. Consecutive identical compositions are collapsed; actual changes remain.
ridesKnown published trips per participant ID across available history, independent of the date filter.
Errors401 without a valid key, 402 without paid access, 403 for denied alliance access, 400 for invalid parameters, 429 for quota exhaustion, 503 for unavailable data. Available empty history returns 200 with trips: [].
JSON example (fictional data)
{
  "allianceId": "900000000002",
  "trips": [
    {
      "zone": "77",
      "escort": "example-trip",
      "start": 1793721600000,
      "end": 1793725200000,
      "seenAt": 1793664000000,
      "wagonCount": 4,
      "capacity": 5,
      "assignments": [
        {
          "id": "900000000001",
          "name": "Example Player",
          "carriage": 0
        }
      ],
      "observations": [
        {
          "at": 1793664000000,
          "assignments": [
            {
              "id": "900000000001",
              "name": "Example Player",
              "carriage": 0
            }
          ]
        }
      ]
    }
  ],
  "rides": {
    "900000000001": 1
  }
}