API – departure boards

Information on the next departures from a public transport stop (virtual display).

  • Endpoint: GET https://www.zditm.szczecin.pl/api/v1/displays/{stopNumber} (the {stopNumber} parameter can be obtained via the Stops API – the number field)
  • Data type: application/json
  • Update frequency: approx. every 20 seconds

Data structure

{
  "stop_name": "Brama Portowa",
  "stop_number": "10813",
  "departures": [
    {
      "line_number": "6",
      "direction": "Gocław",
      "time_real": 4,
      "time_scheduled": null
    },

    ...

  ],
  "message": null,
  "updated_at": "2023-06-02T20:18:08.522045Z"
}
  • string stop_name – name of the stop
  • string stop_number – stop number
  • array departures – array of upcoming departures from the stop
    • string line_number – line designation (number)
    • string direction – direction name
    • int|null time_real – actual minutes until departure (if non-null, time_scheduled will be null)
    • string|null time_scheduled – scheduled departure time in hh:mm (if non-null, time_real will be null)
  • string|null message – any text messages displayed
  • string updated_at – timestamp of the last update

General information

  1. The data are provided free of charge under the CC0 1.0 licence, for use in any context, with no prior notification required.
  2. Zarząd Dróg i Transportu Miejskiego w Szczecinie (Roads and Public Transport Authority in Szczecin) does not guarantee the accuracy or completeness of the data and accepts no liability for any loss or decisions made on the basis of this information.
  3. In any product using the data (application, website, publication, etc.), please cite the data source as Zarząd Dróg i Transportu Miejskiego w Szczecinie, or in abbreviated form, ZDiTM Szczecin; although not legally required, this is appreciated.
  4. Where possible, please include a link to this page or to the ZDiTM Szczecin homepage in any product using the data; this is also not a legal obligation.
  5. Clients should recognise and honour the HTTP headers Cache-Control and ETag.
  6. API requests are rate‑limited: 100 requests per minute per IP address across all endpoints. The X-RateLimit-Remaining header shows the number of remaining requests. Once the limit is reached, an HTTP 429 response is returned. The X-RateLimit-Reset header then contains a Unix timestamp for when the limit resets, and the Retry-After header shows the number of seconds until reset.
  7. If possible, please include in your User-Agent header information identifying the entity using the data (e.g. the name of your application, website, or its URL).
  8. In the event of excessive server load, ZDiTM Szczecin reserves the right to partially or fully block access to the API.