Catalog/carbon-ev-vs-ice

Calculators

EV vs combustion car CO2 comparison API

Compare annual use-phase CO2e of an electric vehicle (annualKm x kWh/100km / 100 x grid intensity) against a combustion car (annualKm x L/100km / 100 x fuel factor) over N years. Returns each vehicle's annual and total kg CO2e, the kg saved, the reduction percent, which is cleaner, and tree equivalents saved. Answers 'is an EV cleaner than my gas car','how much CO2 does switching to an EV save','EV emissions on a dirty grid','5-year EV vs ICE footprint'.

Price$0.01per request
MethodPOST
Route/v1/calc/carbon-ev-vs-ice
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
carbonevelectric-vehicleiceemissionsco2transportcomparison
API URLhttps://x402.hexl.dev/v1/calc/carbon-ev-vs-ice
Integration docs
Example request
{
  "annualKm": 15000
}
Example response
{
  "annualKm": 15000,
  "years": 1,
  "evKwhPer100km": 18,
  "gridKgCO2PerKwh": 0.4,
  "iceL100km": 7.5,
  "fuelType": "gasoline",
  "evAnnualKgCO2e": 1080,
  "iceAnnualKgCO2e": 2598.75,
  "evTotalKgCO2e": 1080,
  "iceTotalKgCO2e": 2598.75,
  "savedKgCO2e": 1518.75,
  "reductionPercent": 58.44,
  "cleaner": "EV",
  "equivalentTreesSaved": 72.32
}
Input schema
{
  "type": "object",
  "required": [
    "annualKm"
  ],
  "properties": {
    "annualKm": {
      "type": "number",
      "examples": [
        15000
      ]
    },
    "evKwhPer100km": {
      "type": "number",
      "default": 18
    },
    "gridKgCO2PerKwh": {
      "type": "number",
      "default": 0.4,
      "description": "grid CO2 intensity kg/kWh"
    },
    "iceL100km": {
      "type": "number",
      "default": 7.5
    },
    "fuelType": {
      "type": "string",
      "enum": [
        "gasoline",
        "diesel",
        "lpg",
        "e85"
      ],
      "default": "gasoline"
    },
    "years": {
      "type": "number",
      "default": 1
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}