Bergen Parkering API

This API allows access to get the number of available spaces, including spaces with charge points. Currently available parking carages:

  Available spaces Available charge points Pricing available
ByGarasjen
Klostergarasjen
Nordnes

Security

The API requires HTTP basic auth. You can obtain keys by contacting Bergen Parkering AS

Authorization: Basic xxxxxxxxxxx

Endpoints

/freespaces (GET)

Request

This method doesn't accept any parameters

Response

Updated - UNIX timestamp for when this data was last updated

Status - OK if you request succeeded

NumFreeSpaces - The number of free parking spaces. This includes parking spaces with charge points.

NumAvailableChargepoints - The number of available charge points.

NumOccupiedChargePoints - The number of occupied charge points

CurrentPrice - The current price per hour for parking

CurrentPriceElectric - The current price per hour for parking electric cars (not hybrids)

MaxPricePer24Hours - The maximum price for parking 24 hours. Null if no max price

Sample

{
    "updated": 1504000737,
    "status": "OK",
    "data": [
        "bygarasjen": {
            "Name": "Bygarasjen",
            "NumFreeSpaces": 100,
            "NumAvailableChargepoints": 100,
            "NumOccupiedChargePoints": 100,
            "CurrentPrice": 100,
            "CurrentPriceElectric": 100,
            "MaxPricePer24Hours": 100,
        },
        "klostergarasjen": {
            "Name": "Klostergarasjen",
            "NumFreeSpaces": 100,
            "NumAvailableChargepoints": 100,
            "NumOccupiedChargePoints": 100,
            "CurrentPrice": 100,
            "CurrentPriceElectric": 100,
            "MaxPricePer24Hours": 100,
        }
    ]
}