v1.0.0

API Documentation

Learn how to use the Car Price Predictor API

Navigation

Open Swagger UI

Interactive API documentation with live testing

API Reference

Complete API endpoint documentation

Base URL

https://api.carwiseiq.com
Checking...

Authentication

Currently, the API does not require authentication for development use. All endpoints are publicly accessible. In production, authentication may be required.

Example with Authorization Header:

headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
}

Rate Limits

Requests per minuteUnlimited

API is currently unlimited for development. Production limits may apply.

Try the API

Test endpoints directly from the documentation

Endpoints

Available API endpoints and their usage

Response Example

200
1{
2 "status": "healthy",
3 "message": "API is running",
4 "model_loaded": true,
5 "timestamp": "2025-01-01T00:00:00Z"
6}

Example Usage

Code examples in multiple programming languages

1const response = await fetch('https://api.carwiseiq.com/api/predict', {
2 method: 'POST',
3 headers: {
4 'Content-Type': 'application/json',
5 },
6 body: JSON.stringify({
7 features: {
8 year: 2020,
9 mileage: 30000,
10 engine_size: 2.5,
11 cylinders: 4,
12 make: 'Toyota',
13 model: 'Camry',
14 condition: 'Good',
15 fuel_type: 'Gasoline',
16 location: 'California',
17 },
18 }),
19});
20
21const data = await response.json();
22console.log('Predicted price:', data.predicted_price);

HTTP Response Codes

Standard HTTP status codes returned by the API

CodeNameDescription
200
OKRequest succeeded
201
CreatedResource created successfully
400
Bad RequestInvalid request parameters
401
UnauthorizedAuthentication required
403
ForbiddenAccess denied
404
Not FoundResource not found
422
Unprocessable EntityValidation error
500
Internal Server ErrorServer error occurred
503
Service UnavailableService temporarily unavailable