← Back to Dashboard

Smartcar

VehicleActiveUnknownAuth: OAuthDoc: HTML
Swagger DocumentationVisit Website ↗

Description

Lock and unlock vehicles and get data like odometer reading and location. Works on most new cars

✨ AI Summary

Access vehicle data like odometer and location, and control functions such as locking/unlocking, compatible with most new cars.

Code Example

import requests

vehicle_id = 'YOUR_VEHICLE_ID'
access_token = 'YOUR_ACCESS_TOKEN'

headers = {
    'Authorization': f'Bearer {access_token}',
    'Content-Type': 'application/json',
    'sc-unit-system': 'metric' # Or 'imperial'
}

url = f'https://api.smartcar.com/v2.0/vehicles/{vehicle_id}/odometer'

response = requests.get(url, headers=headers)

if response.status_code == 200:
    print(response.json())
else:
    print(f"Error: {response.status_code}, {response.text}")

Live Health Metrics

Last 50 checks (10 min intervals)