Cars API
The Cars API provides detailed information on thousands of vehicle models from over a hundred automakers.
Available endpoints:
- /v1/carmakes - Get a list of all car manufacturers
- /v1/carmodels - Get all models for a specific manufacturer
- /v1/cartrims - Get all trims for a specific make and model
- /v1/cardetails - Get detailed specifications for a specific make, model, and trim
- /v1/cars (deprecated) - Get detailed car information by various parameters
For electric vehicle (EV)-specific data, see the Electric Vehicle API.
From 9,240 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 379ms | 404ms | 479ms | 876ms | 1265ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/carmakes GET
Business, Professional, or annual subscriptions only
https://api.api-ninjas.com/v1/carmakes
Returns a list of all car makes (manufacturers).
Parameters
yearoptionalFilter manufacturers by year (e.g.
2018).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of strings, or an error if the request is unsuccessful.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/carmakesHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
/v1/carmodels GET
Business, Professional, or annual subscriptions only
https://api.api-ninjas.com/v1/carmodels
Returns a list of all car models for a given make (manufacturer). Use the /v1/carmakes endpoint to get the list of makes.
Parameters
makerequiredVehicle manufacturer (e.g.
audi).yearoptionalVehicle model year (e.g.
2018).
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of strings, or an error if the request is unsuccessful.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/carmodels?make=AudiHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
/v1/cartrims GET
Business, Professional, or annual subscriptions only
https://api.api-ninjas.com/v1/cartrims
Returns a list of all car trims for a given make and model.
Parameters
makerequiredVehicle manufacturer (e.g.
audi).modelrequiredVehicle model (e.g.
a4). You can find the list of models by calling the /v1/carmodels endpoint.limitoptionalHow many results to return. Must be between
1and100. Default is30.offsetoptionalNumber of results to skip. Used for pagination. Default is
0.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
makeManufacturer name (for example
Audi).modelModel name (for example
A4).generationGeneration description (for example
1 generation (B5)).generation_year_beginFirst production year of this generation as a string.
generation_year_endLast production year of this generation as a string (may be
null).serieBody style / series (for example
Sedan,Avant wagon 5-doors).trimTrim name (for example
1.6 AT (101 hp)).trim_start_production_yearFirst production year for this trim (number or
null).trim_end_production_yearLast production year for this trim (number or
null).car_typeHigh-level type of vehicle (for example
car).
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/cartrims?make=Audi&model=A4Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
/v1/cardetails GET
Business, Professional, or annual subscriptions only
https://api.api-ninjas.com/v1/cardetails
Returns detailed specifications matching a given make, model, and trim combination.
Parameters
makerequiredVehicle manufacturer (e.g.
audi).modelrequiredVehicle model (e.g.
a4). You can find the list of models by calling the /v1/carmodels endpoint.trimrequiredVehicle trim (e.g.
1.6 AT (101 hp)). You can find the list of trims by calling the /v1/cartrims endpoint.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.
makeManufacturer name (for example
Audi).modelModel name (for example
A4).trimTrim identifier (for example
1.6 AT (101 hp)).start_production_yearFirst production year for this trim.
end_production_yearLast production year for this trim (may be
null).specificationsAn object containing detailed specifications such as engine power, fuel consumption, dimensions, weight, seating capacity, and many other attributes (see sample response).
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/cardetails?make=Audi&model=A4&trim=1.6%20AT%20(101%20hp)Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
/v1/cars GETDeprecated
https://api.api-ninjas.com/v1/cars
Get car data from given parameters. Returns a list of car models (and their information) that satisfy the parameters.
Parameters
makerequiredVehicle manufacturer (e.g.
audi).modelrequiredVehicle model (e.g.
a4). You can find the list of models by calling the /v1/carmodels endpoint.trimrequiredVehicle trim (e.g.
1.6 AT (101 hp)). You can find the list of trims by calling the /v1/cartrims endpoint.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/cars?make=Audi&model=A4Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
Frequently Asked Questions
Can I use the Cars API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Cars API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Cars API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Cars API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I look up detailed specifications for a specific vehicle?
The Cars API uses a four-step drill-down: call /v1/carmakes for the list of manufacturers, then/v1/carmodelswith amaketo get models, then/v1/cartrimswithmakeandmodelto get trims, and finally/v1/cardetailswithmake,model, andtrimto retrieve full specs. The/v1/carmakes,/v1/carmodels,/v1/cartrims, and/v1/cardetailsendpoints require a Business, Professional, or annual subscription (see pricing).What specifications does the /v1/cardetails endpoint return?
Each result includesmake,model,trim,start_production_year,end_production_year, and aspecificationsobject holding dozens of attributes such as engine power, fuel consumption, dimensions, curb weight, and seating capacity. If a request is unsuccessful you will receive an error instead.How do I narrow down or paginate the list of trims for a model?
The/v1/cartrimsendpoint accepts alimitparameter (between1and100, default30) and anoffsetparameter (default0) for pagination, alongside the requiredmakeandmodelparameters. Each returned object includes fields likegeneration,serie,trim_start_production_year, andcar_type; sign up at register to get started.What are some use cases for the Cars API, and is the /v1/cars endpoint still supported?
It powers automotive marketplaces, vehicle comparison tools, fleet and insurance apps, and research projects needing specs across thousands of models from over a hundred automakers. Note that the older/v1/carsendpoint is deprecated in favor of the/v1/carmakes,/v1/carmodels,/v1/cartrims, and/v1/cardetailsendpoints; for EV-specific data see the Electric Vehicle API or the Motorcycles API for two-wheelers.