<!-- Publish parking data and live occupancy. Canonical: https://parksby.io/developers/publish-parking-data · Last updated 2026-11-20 · OpenAPI: https://parksby.io/openapi.json -->

## Overview

Put your car park in front of drivers looking for parking — and, if it knows
how full it is, show them that too. You don't need to take bookings through
Parksby to be on the map.

| You have | Use |
|---|---|
| One car park, or a handful | The mobile app — add it in a minute |
| Many car parks in a spreadsheet | The bulk import, with your own column names |
| A system that knows how full you are | The occupancy API |
| A city, national or network feed (your own ids, DATEX II, APDS, ParkAPI or FIWARE) | Publisher API |

Nothing here needs a payout account or a booking arrangement.

## Add one parking

Open Parksby, tap **Add parking**, drop the pin. You are asked for a name and a
location; everything else is optional and can be filled in later or by other
drivers.

You do not have to own the place. If you do own it, you can additionally choose
to take bookings — but only in countries where Parksby can settle money, and
the app will tell you which.

## Bulk import

For a portfolio of car parks. Send a CSV; we match your column headers rather
than demanding ours.

**Required:** `name`, `latitude`, `longitude`. That is all.

Everything else is optional, and common alternative spellings are recognised
automatically:

| Field | Headers we match |
|---|---|
| `name` | name, title, facility, facility_name, bezeichnung |
| `latitude` | latitude, lat, y |
| `longitude` | longitude, lon, lng, long, x |
| `capacity_estimate` | capacity_estimate, capacity, total, spaces, total_spaces |
| `site_type` | site_type, type, kind, lot_type — garage / surface_lot / onstreet_zone |
| `address` | address, street, adresse |
| `operator_label` | operator_label, operator, owner |
| `currency` | currency, ccy — ISO 4217, e.g. KES, EUR |
| `hourly_rate`, `daily_rate`, `flat_rate` | hourly, daily, flat, price, price_hour, price_day |
| `hours_text` | hours_text, hours, opening_hours, oeffnungszeiten |
| `payment_methods`, `security_features` | pipe-separated: `cash\|mpesa` |
| `restrictions`, `notes`, `country_code` | as named |

**A row with rates needs a currency.** An amount without one is not a price,
and we will not guess.

Before anything is written you see exactly what would happen: which rows would
be created, which were rejected and why, and which sit near a facility already
on the map with a similar name. Your column mapping is remembered, so a second
upload is one click.

Imported car parks are checked by our team before they appear on the map.

Talk to us to get set up.

## Occupancy API

If your parking system, guidance panel or counter knows how full you
are, send it. **No booking relationship required.**

**Getting a key.** Once a car park is yours on Parksby (claimed or listed),
open Spaces → **API keys** and create one. A key can cover all your car parks
or only some; create one per system so you can revoke one without touching the
others. The key is shown once. The same page shows the full endpoint address and
each car park's `site_id`.

Two shapes, because two kinds of system exist. Send whichever one you actually
have — we would rather have your real data than a guess dressed up as ours.

### If you know how full you are right now

```
POST https://api.parksby.io/v1/occupancy
Authorization: Bearer pbk_<your key>
Content-Type: application/json

{ "free_spaces": 142, "total_spaces": 200,
  "observed_at": "2026-09-22T09:14:00Z" }
```

| Field | Notes |
|---|---|
| `free_spaces` | Spaces currently free. Send this if you have it. |
| `total_spaces` | Capacity. Omit if we already have it recorded. |
| `band` | `open` / `busy` / `nearly_full` / `full` / `closed` — use when you have no numbers at all. |
| `observed_at` | **Your** clock. We store it separately from when we received it, so staleness is attributable. |
| `site_id` | Which car park. Required for keys created in Spaces (the API keys page lists each car park's `site_id`). |

Batch up to 100 readings as `{ "readings": [ … ] }`.

Give `free_spaces`, a `band`, or both. **A count with no capacity is rejected**
rather than guessed at — "142 free" says nothing about fullness without knowing
of how many.

### If you count vehicles in and out

Keep the running total in your system and send that total (`free_spaces` with
`total_spaces`) whenever it changes. Parksby does not take individual entry and
exit events.

### Keys

Create them yourself in Spaces → **API keys**, for all your car parks or only
some. A key is shown once, stored only as a hash, and can be revoked at any
time.

### How often

Whatever matches reality — every minute for a live panel, every fifteen for a
periodic export. Each reading expires after an hour, after which your site
falls back to other sources rather than showing your number as current. **We
never display stale data as live.**

## Formats we accept

Send what you already produce. Every format below arrives at the same address, with the same key,
and becomes the same thing for drivers.

| You have | Send it as | Notes |
|---|---|---|
| A parking or guidance system with free-space counts | Our JSON (`free_spaces`, `total_spaces`, `band`) | Occupancy API above; an occupancy key from Spaces |
| A city or network feed in your own ids | Our JSON (`sites` and `readings`) | Publisher API below; a publisher key |
| FIWARE (Smart Data Models) | NGSI v2 or NGSI-LD entities, or an Orion notification as your broker sends it | `OffStreetParking`, `OnStreetParking`, `ParkingSpot` |
| DATEX II | `ParkingTablePublication` / `ParkingStatusPublication`, v2 or v3, XML or JSON | XML as `application/xml` |
| APDS (ISO/TS 5206-1) | `Place` objects: a list, one place, or a `{ "data": [...] }` page | Capacity from `supply`, occupancy from the newest `demandTable` record |
| ParkAPI v3 | Parking sites: a list, one site, or an `{ "items": [...] }` page | Static and realtime fields together or apart; bike and motorcycle parking kept |
| A spreadsheet of car parks | CSV, your own column names | Bulk import in Spaces |

Standard formats use a publisher key (below); we detect the format from the body, so there is
nothing to configure.

**Already publishing somewhere?** If your feed is public (DATEX II, FIWARE, APDS, ParkAPI or
your own JSON), you can instead send us its address: we can read it on a schedule, so you change
nothing.

## Publisher API

For cities, national access points, transport authorities and operator
networks that already publish parking data — **you do not need to be on
Parksby, own the car parks or take bookings through us.** Send your car park
list and your live counts in your own ids, in our JSON or in the standard you
already use.

**Getting a key.** Sign in to [Spaces](https://spaces.parksby.io), open
**API keys**, and choose **Start publishing**: name your company, network or
city, confirm you may share the data, and copy your key. It works straight
away. Your car parks are checked before they first appear on the map; after
that, updates flow straight through. Your name is shown as the source on every
car park you send. Publishing under an open-data licence, or more than three
feeds? Write to contact@parksby.io.

```
POST https://api.parksby.io/v1/occupancy
Authorization: Bearer pbk_<your publisher key>
```

### Our JSON

```
{ "sites": [
    { "external_id": "P-0042", "name": "Station Garage",
      "latitude": 50.8466, "longitude": 4.3528,
      "site_type": "garage", "capacity": 400,
      "address": "Rue Example 1, Brussels", "operator_label": "City Parking" } ],
  "readings": [
    { "external_id": "P-0042", "free_spaces": 120, "total_spaces": 400,
      "observed_at": "2026-10-08T15:00:00Z" } ] }
```

| Field | Notes |
|---|---|
| `external_id` | **Your** id for the car park. Readings refer to it; it never changes. |
| `name`, `latitude`, `longitude` | Required for a site. |
| `site_type` | `garage`, `surface_lot` or `onstreet_zone`. |
| `capacity` | Total spaces. Without it, a count cannot become Open / Busy / Full. |
| `free_spaces`, `total_spaces`, `band`, `observed_at` | As in the occupancy API above. |

Send `sites` when your list changes (or daily), and `readings` as often as
your counts change. A reading for an id you have not sent as a site yet is
reported back as `unresolved`.

### FIWARE (NGSI v2 and NGSI-LD)

Send Smart Data Models entities — `OffStreetParking`, `OnStreetParking` and
`ParkingSpot` — as an entity, an array, or an **Orion notification exactly as
your context broker sends it**: point a subscription at the endpoint above with
your key in the `Authorization` header. We read `id`, `name`, `location`,
`totalSpotNumber`, `availableSpotNumber`, `status` and `observedAt` /
`dateObserved`. `ParkingSpot` bays are counted per `refParkingSite`.

### DATEX II

Send a `ParkingTablePublication` and/or `ParkingStatusPublication` (v2 or v3)
as XML with `Content-Type: application/xml`, or in DATEX II's JSON encoding.
We read `parkingRecord` (id, name, coordinates, capacity) and
`parkingRecordStatus` (vacant and occupied spaces, origin time, closed).

### APDS (ISO/TS 5206-1)

Send `Place` objects as the APDS API returns them: a list, one place, or a
`{ "data": [...] }` page. We read `id`, `name`, `indicativePointLocation`,
`placeStreetAddress`, `characteristics.structureType`, capacity from
`hierarchyElementReference.supply` and occupancy from the newest
`demandTable` record (`count` or `percentage`, turned into free spaces).

### ParkAPI v3

Send parking sites as ParkAPI v3 serves them: a list, one site, or an
`{ "items": [...] }` page. We read `uid`, `name`, `lat`, `lon`, `type`,
`purpose`, `address`, `capacity`, and the realtime fields
`realtime_free_capacity`, `realtime_capacity`, `realtime_opening_status` and
`realtime_data_updated_at`. Static and realtime updates can arrive separately.

### Limits

Up to 500 sites and 500 readings per request; 2 MB per body. Each reading is
live for an hour. Keys are issued per publisher and can be paused at any time;
data that is false or misleading is removed.

## What drivers see

- Your latest reading, with how long ago it was taken.
- A reading counts as live for an hour; after that drivers aren't shown it as
  current.
- Occupancy you report **never** changes bookings. They are separate things.

## Talk to us

For bulk imports, or if you're not sure which route fits your system, write to
contact@parksby.io.
