Skip to main content
GET
Get Zone Shortage Mapping

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Path Parameters

provider
string
required

Identifier of the mobility provider whose data you analyse, e.g. acme-bikes. It must be the provider of a data source enabled for your company's zone-based analytics; any other value is refused with 404 no_data_binding (kind: source). Your SWITCH contact tells you the provider identifiers and locations enabled for your company.

Query Parameters

geolabel
string
required

Location to analyse, e.g. milan: one of the locations (or their geolabels) that your company's zone-based analytics are enabled for with this provider. Any other value is refused with 404 no_data_binding (kind: location).

start_date
string<date-time>
required

First day of the analysis period (ISO 8601, e.g. 2026-10-01T00:00:00Z). Only the date part is used, as a UTC day.

end_date
string<date-time>
required

Last day of the analysis period, included (ISO 8601, e.g. 2026-10-31T00:00:00Z). Only the date part is used, as a UTC day.

start_hour
integer | null

First hour of the day to include (0-23, UTC), both bounds included. Applied only together with end_hour, and only by trip volume and shortage mapping.

Required range: 0 <= x <= 23
end_hour
integer | null

Last hour of the day to include (0-23, UTC). Applied only together with start_hour, and only by trip volume and shortage mapping.

Required range: 0 <= x <= 23
zoning_system_id
string
default:geohash7

Zoning system the zones belong to. Defaults to geohash7 (geohash cells, whose size precision sets).

precision
integer | null

Geohash precision to aggregate to (4-7). Only valid when zoning_system_id='geohash7', where it defaults to 7. Passing it with any other zoning system returns HTTP 400.

Required range: 4 <= x <= 7

Response

Shortage mapping retrieved. Hourly patterns, zone shortage, history.

hourly_patterns
HourlyZoneShortage · object[]
required
zone_shortage
ZoneShortageData · object[]
required
historical_availability
ZoneHistoricalAvailability · object[]
required