Cities

List stops for a city

Returns a paginated list of bus stops belonging to the specified city.

GEThttps://api.prexsell.com/v2/cities/{slug}/stops

Path Parameters

  • slugstringrequired

    URL-friendly slug of the city whose stops to retrieve.

    Example: kyiv

Query Parameters

  • takeintegerdefault: 50

    Maximum number of items to return (1–100).

    Required range: 1 <= x <= 100

  • skipinteger | nulldefault: 0

    Number of items to skip for offset pagination.

    Required range: x >= 0

Response 200

application/json

Paginated list of bus stops belonging to a specific city.

  • dataobjectrequired

Response 404

application/json

Standard error response body.

  • errorsobject[]required

List stops for a city

curl --request GET \
  --url 'https://api.prexsell.com/v2/cities/{slug}/stops?take=50&skip=0'

To test first, swap https://api.prexsell.com for https://staging.api.prexsell.com.

{
  "data": {
    "stops": [
      {
        "id": "cst1a2b3c4d5e6f7g8h9",
        "place": "Центральний автовокзал",
        "type": "BUS_STATION",
        "latitude": 50.4501,
        "longitude": 30.5234
      }
    ],
    "total": 1
  }
}