curl --request GET \
--url https://api.getswitch.io/copilot/station-based/{provider}/calendar_events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/copilot/station-based/{provider}/calendar_events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/copilot/station-based/{provider}/calendar_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/copilot/station-based/{provider}/calendar_events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"event_forecasts": {
"event_multipliers": {
"Concert": {
"18": 0.82,
"19": 0.71,
"23": 0.64
},
"Sports": {
"15": 0.88,
"17": 0.79
}
}
},
"event_type_analysis": {
"impact_ranking": [
[
"Concert",
{
"ebike_ratio_impact_pct": -9.7,
"impact_magnitude": 62.1,
"metrics": {
"avg_vehicles_available": {
"event": 5.8,
"normal": 6.9
},
"capacity_stress": {
"event": 0.47,
"normal": 0.41
},
"ebike_ratio": {
"event": 0.28,
"normal": 0.31
},
"sample_size": 31200,
"shortage_rate": {
"event": 0.19,
"normal": 0.13
}
},
"shortage_rate_impact_pct": 46.2,
"vehicle_availability_impact_pct": -15.9
}
],
[
"Sports",
{
"ebike_ratio_impact_pct": -3.2,
"impact_magnitude": 22.6,
"metrics": {
"avg_vehicles_available": {
"event": 6.4,
"normal": 6.9
},
"capacity_stress": {
"event": 0.44,
"normal": 0.41
},
"ebike_ratio": {
"event": 0.3,
"normal": 0.31
},
"sample_size": 43100,
"shortage_rate": {
"event": 0.15,
"normal": 0.13
}
},
"shortage_rate_impact_pct": 15.4,
"vehicle_availability_impact_pct": -7.2
}
]
]
},
"events_covered": 2,
"events_in_period": [
{
"end_date": "2026-10-04",
"event_name": "City Marathon",
"event_type": "Sports",
"start_date": "2026-10-04",
"total_event_days": 1
},
{
"end_date": "2026-10-18",
"event_name": "Stadium Concert",
"event_type": "Concert",
"start_date": "2026-10-17",
"total_event_days": 2
}
],
"feasibility": "feasible",
"impact_summary": {
"overall_comparison": [
{
"avg_capacity_stress_mean": 0.41,
"avg_ebike_ratio_mean": 0.31,
"avg_shortage_rate_mean": 0.13,
"avg_vehicles_available_mean": 6.9,
"is_event_day": false,
"total_records_sum": 812400
},
{
"avg_capacity_stress_mean": 0.46,
"avg_ebike_ratio_mean": 0.29,
"avg_shortage_rate_mean": 0.17,
"avg_vehicles_available_mean": 6.1,
"is_event_day": true,
"total_records_sum": 74300
}
],
"percentage_changes": {
"avg_capacity_stress": 12.2,
"avg_ebike_ratio": -6.5,
"avg_shortage_rate": 30.8,
"avg_vehicles_available": -11.6
},
"total_event_days": 74300,
"total_normal_days": 812400
},
"message": "Calendar events analysis using optimized single-query approach with comprehensive impact assessment.",
"station_impact": {
"station_data": [
{
"ebike_ratio": 0.3,
"event_avg_ebike_ratio": 0.22,
"event_avg_shortage_rate": 0.38,
"event_avg_vehicles": 3.2,
"normal_avg_shortage_rate": 0.11,
"normal_avg_vehicles": 7.4,
"station_id": 412,
"station_latitude": 45.4781,
"station_longitude": 9.124,
"station_name": "San Siro Stadio"
}
]
},
"total_event_days": 31
}Get Calendar Event Impact Analysis
Measure how local events (concerts, sports, festivals) impact mobility demand. Returns event-day vs baseline comparisons, impact analysis by event type, station-level impact during events, and demand multiplier forecasts for future event planning.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions
- 404:
no_data_bindingwhen the provider or location is not enabled for your company, or no data for that location and period - 422: Invalid filter parameters
- 500: Internal server error
Required Auth Scopes:
copilot:analytics
curl --request GET \
--url https://api.getswitch.io/copilot/station-based/{provider}/calendar_events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/copilot/station-based/{provider}/calendar_events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/copilot/station-based/{provider}/calendar_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/copilot/station-based/{provider}/calendar_events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"event_forecasts": {
"event_multipliers": {
"Concert": {
"18": 0.82,
"19": 0.71,
"23": 0.64
},
"Sports": {
"15": 0.88,
"17": 0.79
}
}
},
"event_type_analysis": {
"impact_ranking": [
[
"Concert",
{
"ebike_ratio_impact_pct": -9.7,
"impact_magnitude": 62.1,
"metrics": {
"avg_vehicles_available": {
"event": 5.8,
"normal": 6.9
},
"capacity_stress": {
"event": 0.47,
"normal": 0.41
},
"ebike_ratio": {
"event": 0.28,
"normal": 0.31
},
"sample_size": 31200,
"shortage_rate": {
"event": 0.19,
"normal": 0.13
}
},
"shortage_rate_impact_pct": 46.2,
"vehicle_availability_impact_pct": -15.9
}
],
[
"Sports",
{
"ebike_ratio_impact_pct": -3.2,
"impact_magnitude": 22.6,
"metrics": {
"avg_vehicles_available": {
"event": 6.4,
"normal": 6.9
},
"capacity_stress": {
"event": 0.44,
"normal": 0.41
},
"ebike_ratio": {
"event": 0.3,
"normal": 0.31
},
"sample_size": 43100,
"shortage_rate": {
"event": 0.15,
"normal": 0.13
}
},
"shortage_rate_impact_pct": 15.4,
"vehicle_availability_impact_pct": -7.2
}
]
]
},
"events_covered": 2,
"events_in_period": [
{
"end_date": "2026-10-04",
"event_name": "City Marathon",
"event_type": "Sports",
"start_date": "2026-10-04",
"total_event_days": 1
},
{
"end_date": "2026-10-18",
"event_name": "Stadium Concert",
"event_type": "Concert",
"start_date": "2026-10-17",
"total_event_days": 2
}
],
"feasibility": "feasible",
"impact_summary": {
"overall_comparison": [
{
"avg_capacity_stress_mean": 0.41,
"avg_ebike_ratio_mean": 0.31,
"avg_shortage_rate_mean": 0.13,
"avg_vehicles_available_mean": 6.9,
"is_event_day": false,
"total_records_sum": 812400
},
{
"avg_capacity_stress_mean": 0.46,
"avg_ebike_ratio_mean": 0.29,
"avg_shortage_rate_mean": 0.17,
"avg_vehicles_available_mean": 6.1,
"is_event_day": true,
"total_records_sum": 74300
}
],
"percentage_changes": {
"avg_capacity_stress": 12.2,
"avg_ebike_ratio": -6.5,
"avg_shortage_rate": 30.8,
"avg_vehicles_available": -11.6
},
"total_event_days": 74300,
"total_normal_days": 812400
},
"message": "Calendar events analysis using optimized single-query approach with comprehensive impact assessment.",
"station_impact": {
"station_data": [
{
"ebike_ratio": 0.3,
"event_avg_ebike_ratio": 0.22,
"event_avg_shortage_rate": 0.38,
"event_avg_vehicles": 3.2,
"normal_avg_shortage_rate": 0.11,
"normal_avg_vehicles": 7.4,
"station_id": 412,
"station_latitude": 45.4781,
"station_longitude": 9.124,
"station_name": "San Siro Stadio"
}
]
},
"total_event_days": 31
}Authorizations
Path Parameters
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 station-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
Response
Event impact data retrieved. Returns system-wide impact summary, per-event-type analysis, station-level impact metrics, and demand multiplier forecasts.
Calendar events impact analysis response with comprehensive metrics.
System-wide impact summary comparing event vs normal days
{
"overall_comparison": [
{
"avg_vehicles_available": 12.5,
"is_event_day": false
},
{
"avg_vehicles_available": 10.8,
"is_event_day": true
}
],
"percentage_changes": { "avg_vehicles_available": -0.136 },
"total_event_days": 25,
"total_normal_days": 340
}
