Data

GET /api/1/vehicles/{id}/vehicle_data

A rollup of all the data_request endpoints plus vehicle configuration.
Note: all *_range values are in miles, irrespective of GUI configuration.

Response

1
{
2
"response": {
3
"id": 12345678901234567,
4
"user_id": 123,
5
"vehicle_id": 1234567890,
6
"vin": "5YJSA11111111111",
7
"display_name": "Nikola 2.0",
8
"option_codes": "AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0",
9
"color": null,
10
"access_type": "OWNER",
11
"tokens": ["abcdef1234567890", "1234567890abcdef"],
12
"state": "online",
13
"in_service": false,
14
"id_s": "12345678901234567",
15
"calendar_enabled": true,
16
"api_version": 13,
17
"backseat_token": null,
18
"backseat_token_updated_at": null,
19
"drive_state": {
20
"gps_as_of": 1607623884,
21
"heading": 5,
22
"latitude": 33.111111,
23
"longitude": -88.111111,
24
"native_latitude": 33.111111,
25
"native_location_supported": 1,
26
"native_longitude": -88.111111,
27
"native_type": "wgs",
28
"power": -9,
29
"shift_state": null,
30
"speed": null,
31
"timestamp": 1607623897515
32
},
33
"climate_state": {
34
"battery_heater": false,
35
"battery_heater_no_power": false,
36
"climate_keeper_mode": "off",
37
"defrost_mode": 0,
38
"driver_temp_setting": 21.1,
39
"fan_status": 0,
40
"inside_temp": 22.1,
41
"is_auto_conditioning_on": false,
42
"is_climate_on": false,
43
"is_front_defroster_on": false,
44
"is_preconditioning": false,
45
"is_rear_defroster_on": false,
46
"left_temp_direction": -66,
47
"max_avail_temp": 28.0,
48
"min_avail_temp": 15.0,
49
"outside_temp": 18.0,
50
"passenger_temp_setting": 21.1,
51
"remote_heater_control_enabled": false,
52
"right_temp_direction": -66,
53
"seat_heater_left": 0,
54
"seat_heater_right": 0,
55
"side_mirror_heaters": false,
56
"timestamp": 1607623897515,
57
"wiper_blade_heater": false
58
},
59
"charge_state": {
60
"battery_heater_on": false,
61
"battery_level": 59,
62
"battery_range": 149.92,
63
"charge_current_request": 40,
64
"charge_current_request_max": 40,
65
"charge_enable_request": true,
66
"charge_energy_added": 2.42,
67
"charge_limit_soc": 90,
68
"charge_limit_soc_max": 100,
69
"charge_limit_soc_min": 50,
70
"charge_limit_soc_std": 90,
71
"charge_miles_added_ideal": 10.0,
72
"charge_miles_added_rated": 8.0,
73
"charge_port_cold_weather_mode": null,
74
"charge_port_door_open": true,
75
"charge_port_latch": "Engaged",
76
"charge_rate": 28.0,
77
"charge_to_max_range": false,
78
"charger_actual_current": 40,
79
"charger_phases": 1,
80
"charger_pilot_current": 40,
81
"charger_power": 9,
82
"charger_voltage": 243,
83
"charging_state": "Charging",
84
"conn_charge_cable": "SAE",
85
"est_battery_range": 132.98,
86
"fast_charger_brand": "<invalid>",
87
"fast_charger_present": false,
88
"fast_charger_type": "<invalid>",
89
"ideal_battery_range": 187.4,
90
"managed_charging_active": false,
91
"managed_charging_start_time": null,
92
"managed_charging_user_canceled": false,
93
"max_range_charge_counter": 0,
94
"minutes_to_full_charge": 165,
95
"not_enough_power_to_heat": false,
96
"scheduled_charging_pending": false,
97
"scheduled_charging_start_time": null,
98
"time_to_full_charge": 2.75,
99
"timestamp": 1607623897515,
100
"trip_charging": false,
101
"usable_battery_level": 59,
102
"user_charge_enable_request": null
103
},
104
"gui_settings": {
105
"gui_24_hour_time": false,
106
"gui_charge_rate_units": "mi/hr",
107
"gui_distance_units": "mi/hr",
108
"gui_range_display": "Rated",
109
"gui_temperature_units": "F",
110
"show_range_units": true,
111
"timestamp": 1607623897515
112
},
113
"vehicle_state": {
114
"api_version": 13,
115
"autopark_state_v2": "standby",
116
"autopark_style": "standard",
117
"calendar_supported": true,
118
"car_version": "2020.48.10 f8900cddd03a",
119
"center_display_state": 0,
120
"df": 0,
121
"dr": 0,
122
"fd_window": 0,
123
"fp_window": 0,
124
"ft": 0,
125
"homelink_device_count": 2,
126
"homelink_nearby": true,
127
"is_user_present": false,
128
"last_autopark_error": "no_error",
129
"locked": false,
130
"media_state": { "remote_control_enabled": true },
131
"notifications_supported": true,
132
"odometer": 57869.762487,
133
"parsed_calendar_supported": true,
134
"pf": 0,
135
"pr": 0,
136
"rd_window": 0,
137
"remote_start": false,
138
"remote_start_enabled": true,
139
"remote_start_supported": true,
140
"rp_window": 0,
141
"rt": 0,
142
"sentry_mode": false,
143
"sentry_mode_available": true,
144
"smart_summon_available": true,
145
"software_update": {
146
"download_perc": 0,
147
"expected_duration_sec": 2700,
148
"install_perc": 1,
149
"status": "",
150
"version": ""
151
},
152
"speed_limit_mode": {
153
"active": false,
154
"current_limit_mph": 85.0,
155
"max_limit_mph": 90,
156
"min_limit_mph": 50,
157
"pin_code_set": false
158
},
159
"summon_standby_mode_enabled": false,
160
"sun_roof_percent_open": 0,
161
"sun_roof_state": "closed",
162
"timestamp": 1607623897515,
163
"valet_mode": false,
164
"valet_pin_needed": true,
165
"vehicle_name": null
166
},
167
"vehicle_config": {
168
"can_accept_navigation_requests": true,
169
"can_actuate_trunks": true,
170
"car_special_type": "base",
171
"car_type": "models2",
172
"charge_port_type": "US",
173
"default_charge_to_max": false,
174
"ece_restrictions": false,
175
"eu_vehicle": false,
176
"exterior_color": "White",
177
"has_air_suspension": true,
178
"has_ludicrous_mode": false,
179
"motorized_charge_port": true,
180
"plg": true,
181
"rear_seat_heaters": 0,
182
"rear_seat_type": 0,
183
"rhd": false,
184
"roof_color": "None",
185
"seat_type": 2,
186
"spoiler_type": "None",
187
"sun_roof_installed": 2,
188
"third_row_seats": "None",
189
"timestamp": 1607623897515,
190
"trim_badging": "p90d",
191
"use_range_badging": false,
192
"wheel_type": "AeroTurbine19"
193
}
194
}
195
}
Copied!

GET /api/1/vehicles/{id}/data

A "legacy" version of the data endpoint.

Response

Currently, this has the exact same response structure as the newer vehicle_data endpoint.

GET /api/1/vehicles/{id}/latest_vehicle_data

This is cached data, pushed by the vehicle on sleep, wake and around OTAs.

Response

1
{
2
"response": {
3
"access_type": "OWNER",
4
"api_version": 40,
5
"backseat_token": null,
6
"backseat_token_updated_at": null,
7
"calendar_enabled": true,
8
"charge_state": {
9
"battery_heater_on": false,
10
"battery_level": 39,
11
"battery_range": 127.34,
12
"charge_amps": 24,
13
"charge_current_request": 24,
14
"charge_current_request_max": 24,
15
"charge_enable_request": true,
16
"charge_energy_added": 49.85,
17
"charge_limit_soc": 100,
18
"charge_limit_soc_max": 100,
19
"charge_limit_soc_std": 90,
20
"charge_miles_added_ideal": 143.5,
21
"charge_miles_added_rated": 179.0,
22
"charge_port_cold_weather_mode": null,
23
"charge_port_color": "Off",
24
"charge_port_door_open": false,
25
"charge_port_latch": "Blocking",
26
"charge_rate": 0.0,
27
"charge_to_max_range": true,
28
"charger_actual_current": 0,
29
"charger_phases": null,
30
"charger_pilot_current": 24,
31
"charger_power": 0,
32
"charger_voltage": 0,
33
"charging_state": "Disconnected",
34
"conn_charge_cable": "<invalid>",
35
"est_battery_range": 66.31,
36
"fast_charger_brand": "<invalid>",
37
"fast_charger_present": false,
38
"fast_charger_type": "<invalid>",
39
"ideal_battery_range": 101.99,
40
"managed_charging_active": false,
41
"managed_charging_start_time": null,
42
"managed_charging_user_canceled": false,
43
"max_range_charge_counter": 1,
44
"minutes_to_full_charge": 0,
45
"not_enough_power_to_heat": false,
46
"off_peak_charging_enabled": false,
47
"off_peak_charging_times": "all_week",
48
"off_peak_hours_end_time": 360,
49
"preconditioning_enabled": false,
50
"preconditioning_times": "all_week",
51
"scheduled_charging_mode": "Off",
52
"scheduled_charging_pending": false,
53
"scheduled_charging_start_time": null,
54
"scheduled_departure_time": 1640930400,
55
"scheduled_departure_time_minutes": 420,
56
"supercharger_session_trip_planner": false,
57
"time_to_full_charge": 0.0,
58
"timestamp": 1652793898985,
59
"trip_charging": false,
60
"usable_battery_level": 39,
61
"user_charge_enable_request": null
62
},
63
"climate_state": {
64
"allow_cabin_overheat_protection": false,
65
"battery_heater": false,
66
"battery_heater_no_power": false,
67
"bioweapon_mode": false,
68
"cabin_overheat_protection": "Off",
69
"climate_keeper_mode": "off",
70
"defrost_mode": 0,
71
"driver_temp_setting": 28.0,
72
"fan_status": 0,
73
"hvac_auto_request": "Override",
74
"inside_temp": 33.0,
75
"is_auto_conditioning_on": false,
76
"is_climate_on": false,
77
"is_front_defroster_on": false,
78
"is_preconditioning": false,
79
"is_rear_defroster_on": false,
80
"left_temp_direction": -224,
81
"max_avail_temp": 28.0,
82
"min_avail_temp": 15.0,
83
"outside_temp": 22.5,
84
"passenger_temp_setting": 28.0,
85
"remote_heater_control_enabled": false,
86
"right_temp_direction": -224,
87
"seat_heater_left": 0,
88
"seat_heater_rear_left": 0,
89
"seat_heater_rear_right": 0,
90
"seat_heater_right": 0,
91
"seat_heater_third_row_left": 0,
92
"seat_heater_third_row_right": 0,
93
"side_mirror_heaters": false,
94
"steering_wheel_heater": false,
95
"supports_fan_only_cabin_overheat_protection": false,
96
"timestamp": 1652793898985,
97
"wiper_blade_heater": false
98
},
99
"color": null,
100
"display_name": "Nikola",
101
"drive_state": {
102
"gps_as_of": 1652793898,
103
"heading": 38,
104
"latitude": 42.0,
105
"longitude": 6.969694,
106
"native_latitude": 42.0,
107
"native_location_supported": 1,
108
"native_longitude": 6.969694,
109
"native_type": "wgs",
110
"power": 0,
111
"shift_state": "P",
112
"speed": null,
113
"timestamp": 1652793898985
114
},
115
"gui_settings": {
116
"gui_24_hour_time": true,
117
"gui_charge_rate_units": "km/hr",
118
"gui_distance_units": "km/hr",
119
"gui_range_display": "Rated",
120
"gui_temperature_units": "C",
121
"show_range_units": true,
122
"timestamp": 1652793898985
123
},
124
"id": 1234567891011120,
125
"id_s": "1234567891011120",
126
"in_service": false,
127
"option_codes": "AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0",
128
"state": "online",
129
"tokens": ["ab1234cd56ef7gh8", "ab1234cd56ef7gh8"],
130
"user_id": 123456,
131
"vehicle_config": {
132
"can_accept_navigation_requests": true,
133
"can_actuate_trunks": true,
134
"car_special_type": "base",
135
"car_type": "modelx",
136
"charge_port_type": "US",
137
"dashcam_clip_save_supported": true,
138
"default_charge_to_max": false,
139
"driver_assist": "ParkerPascal2_5",
140
"ece_restrictions": true,
141
"efficiency_package": "Default",
142
"eu_vehicle": false,
143
"exterior_color": "MetallicBlack",
144
"front_drive_unit": "Small",
145
"has_air_suspension": true,
146
"has_ludicrous_mode": true,
147
"has_seat_cooling": true,
148
"headlamp_type": "Led",
149
"interior_trim_type": "AllBlack",
150
"motorized_charge_port": true,
151
"plg": true,
152
"pws": false,
153
"rear_drive_unit": "Big",
154
"rear_seat_heaters": 3,
155
"rear_seat_type": 3,
156
"rhd": false,
157
"roof_color": "None",
158
"seat_type": 0,
159
"spoiler_type": "Passive",
160
"sun_roof_installed": 0,
161
"third_row_seats": "FuturisFoldFlat",
162
"timestamp": 1652793898986,
163
"trim_badging": "plaid",
164
"use_range_badging": false,
165
"utc_offset": 7200,
166
"wheel_type": "Turbine22"
167
},
168
"vehicle_id": 1413092341,
169
"vehicle_state": {
170
"api_version": 40,
171
"autopark_state_v2": "ready",
172
"autopark_style": "dead_man",
173
"calendar_supported": true,
174
"car_version": "2022.12.3.2 2d5530dd8ff7",
175
"center_display_state": 0,
176
"dashcam_clip_save_available": true,
177
"dashcam_state": "Recording",
178
"df": 0,
179
"dr": 0,
180
"fd_window": 0,
181
"feature_bitmask": "ff,0",
182
"fp_window": 0,
183
"ft": 0,
184
"homelink_device_count": 1,
185
"homelink_nearby": false,
186
"is_user_present": false,
187
"last_autopark_error": "no_error",
188
"locked": true,
189
"media_state": {
190
"remote_control_enabled": true
191
},
192
"notifications_supported": true,
193
"odometer": 1323.436653,
194
"parsed_calendar_supported": true,
195
"pf": 0,
196
"pr": 0,
197
"rd_window": 0,
198
"remote_start": false,
199
"remote_start_enabled": true,
200
"remote_start_supported": true,
201
"rp_window": 0,
202
"rt": 0,
203
"santa_mode": 0,
204
"sentry_mode": false,
205
"sentry_mode_available": true,
206
"service_mode": false,
207
"service_mode_plus": false,
208
"smart_summon_available": true,
209
"software_update": {
210
"download_perc": 0,
211
"expected_duration_sec": 2700,
212
"install_perc": 1,
213
"status": "",
214
"version": " "
215
},
216
"speed_limit_mode": {
217
"active": false,
218
"current_limit_mph": 90.0,
219
"max_limit_mph": 90,
220
"min_limit_mph": 50.0,
221
"pin_code_set": true
222
},
223
"summon_standby_mode_enabled": true,
224
"timestamp": 1652793898985,
225
"tpms_pressure_fl": 0.0,
226
"tpms_pressure_fr": 0.0,
227
"tpms_pressure_rl": 0.0,
228
"tpms_pressure_rr": 0.0,
229
"valet_mode": false,
230
"vehicle_name": "Nikola"
231
},
232
"vin": "7SA.."
233
}
234
}
Copied!