API Reference
Complete reference for all DriveDecision API endpoints.
Base URL
https://api.drivedecision.com/v1Authentication
All API requests require authentication via Bearer token. Include your API key in the Authorization header:
bash
Authorization: Bearer YOUR_API_KEYEndpoints
Vehicles
Get vehicle information and listings
GET
/vehiclesList all makesGET
/vehicles/{make}List models for a makeGET
/vehicles/{make}/{model}Get model detailsGET
/vehicles/{make}/{model}/{year}Get specific yearComplaints
Access vehicle complaint records
GET
/complaints/{make}/{model}/{year}Get complaintsGET
/complaints/{make}/{model}/{year}/categoriesBy categoryGET
/complaints/{id}Single complaintStatistics
Aggregated reliability metrics
GET
/statistics/{make}/{model}Model statisticsGET
/statistics/{make}/{model}/trendsReliability trendsGET
/statistics/compareCompare vehiclesResponse Format
All responses follow a consistent JSON structure:
Success Response
{
"success": true,
"data": { ... },
"meta": {
"page": 1,
"limit": 20,
"total": 150,
"hasMore": true
}
}Error Response
{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded your rate limit. Please upgrade your plan.",
"retryAfter": 60
}
}Error Codes
| Code | HTTP | Description |
|---|---|---|
INVALID_API_KEY | 401 | API key is invalid or missing |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
NOT_FOUND | 404 | Resource not found |
INVALID_PARAMETER | 400 | Invalid request parameter |
QUOTA_EXCEEDED | 403 | Monthly quota exceeded |
INTERNAL_ERROR | 500 | Server error |