List parking lots

The parking lots API provides access to all active parking lots in the system. This endpoint returns comprehensive information about each parking lot including fees, opening hours, and location data.

Results are cached for 24 hours to optimize performance. The endpoint supports various query parameters to customize the response.

GET /api/v2/parkings

List all parking lots

Retrieve a list of all active parking lots in the system. This endpoint returns detailed information about each parking lot including pricing, availability, and location data.

The response includes both active parking lots and recently deleted ones if you specify an updated_after parameter.

Headers

  • Name
    Accept
    Type
    application/json
    Description

    Tell the server that you want to receive JSON responses.

Query Parameters

  • Name
    with
    Type
    string|array
    Description

    Load additional relationships. Comma-separated string or array.

    Possible values
    fees variable_fees opening_hours locations info_points scheduled_fees parking_permits
  • Name
    updated_after
    Type
    string<date-time>
    Description

    Only return parking lots updated after this date. Also includes deleted parking lots in response.

Request Example

curl -X GET 'https://falun.parkeraisverige.com/api/v2/parkings?with=fees,locations' \

200 Successful response

{
  "data": [
    {
      "id": 1,
      "name": "Central Square Parking",
      "zone_number": "A1",
      "type": "street",
      "number_of_spaces": 50,
      "max_time": 120,
      "max_fee": 2400,
      "lockout_time": null,
      "anpr": true,
      "hourly_tickets_allowed": true,
      "fees": [
        {
          "price_per_unit": 2000,
          "unit": {
            "type": 1,
            "name": "hour"
          },
          "start_time": "00:00:00",
          "end_time": "23:59:59",
          "type_of_day": "weekday",
          "round": false
        }
      ],
      "locations": [
        {
          "area": {
            "type": "Polygon",
            "coordinates": [
              [
                [
                  12.345678,
                  54.321098
                ],
                [
                  12.345679,
                  54.321099
                ],
                [
                  12.34568,
                  54.3211
                ],
                [
                  12.345681,
                  54.321101
                ],
                [
                  12.345678,
                  54.321098
                ]
              ]
            ]
          },
          "color": "#ff0000"
        }
      ]
    }
  ],
  "deleted": []
}

5xx Server error

This is on us