Electric Vehicle API

The Electric Vehicle API provides dozens of detailed datapoints on electric vehicles including range, battery capacity, charging time and performance metrics.

Available endpoints:

For non-EV-specific data on all cars, see the Cars API.

(4.6)

From 3,156 users

4,100+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
276ms287ms327ms659ms1199ms

Didn't find what you were looking for? Suggest an improvement


/v1/electricvehicle GET

https://api.api-ninjas.com/v1/electricvehicle

Get electric vehicle data from given parameters. Returns a list of electric vehicles that satisfy the parameters.

Parameters

At least one parameter (other than limit and offset) is required.

  • make  optional

    Vehicle manufacturer (e.g. tesla or nissan).

  • model  optional

    Vehicle model (e.g. model3 or leaf).

  • min_year  optional

    Minimum vehicle model year (e.g. 2020).

  • max_year  optional

    Maximum vehicle model year (e.g. 2023).

  • min_range  optional

    Minimum range in kilometers (e.g. 250).

  • max_range  optional

    Maximum range in kilometers (e.g. 400).

  • limit  optional premium only

    How many results to return. Must be between 1 and 10. Default is 1.

  • offset  optional premium only

    Number of results to skip. Used for pagination. Default is 0.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • make

    Manufacturer name (for example Tesla).

  • model

    Model name (for example Model 3).

  • year_start

    First model year this configuration is available.

  • battery_capacity

    Nominal battery capacity in kWh (for example 60.0 kWh).

  • battery_useable_capacity

    Usable battery capacity in kWh.

  • charge_power

    AC charging power rating (for example 11 kW AC).

  • charge_power_max

    Maximum DC fast-charging power (for example 170 kW DC).

  • electric_range

    Rated electric range in kilometers (for example 420 km).

  • total_power

    Total drivetrain power (for example 208 kW (283 PS)).

  • vehicle_consumption

    Energy consumption in Wh/km (for example 112 Wh/km).

  • length, width, height

    Exterior dimensions in millimeters.

  • seats

    Seating capacity (for example 5 people).

Additional fields provide more detailed battery, charging, performance, and body specifications (see sample response).

Sample Request Live Demo!

make
model
min_year
max_year
min_range

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/electricvehicle?make=Tesla&model=Model%203

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/electricvehicle?make=Tesla&model=Model%203" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.


/v1/electricvehiclemakes GET

Business, Professional, or annual subscriptions only only

https://api.api-ninjas.com/v1/electricvehiclemakes

Returns a list of all electric vehicle makes (manufacturers).

Parameters

  • year  optional

    Filter manufacturers by year (e.g. 2023).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of strings, or an error if the request is unsuccessful.

Sample Request Live Demo!

year

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/electricvehiclemakes

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

/v1/electricvehiclemodels GET

Business, Professional, or annual subscriptions only only

https://api.api-ninjas.com/v1/electricvehiclemodels

Returns a list of all electric vehicle models for a given make (manufacturer).

Parameters

  • make  required

    Vehicle manufacturer (e.g. tesla).

  • year  optional

    Vehicle model year (e.g. 2023).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of strings, or an error if the request is unsuccessful.

Sample Request

make
year

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/electricvehiclemodels?make=Tesla

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON