# Fuel Economy Unit Converter

> Fuel Economy Unit Converter is a paid API for AI agents from units-convert.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Converts a fuel economy value between US mpg, UK mpg, km/L, and L/100km, optionally calculating trip fuel usage and cost.

## Facts

- Endpoint: GET https://units-convert.x402tookit.com/fuel-economy?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fuel-economy-unit-converter-48b3ce66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pHhWn0Cb71uF5gPqiat6m

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fuel-economy-unit-converter-48b3ce66
```

Example prompt: My car gets 32 US mpg — can you convert that to litres per 100 km and UK mpg, and also tell me how many litres of fuel I'd need for a 150-mile trip if gas costs $3.80 per gallon?

## When to prefer this

Choose this endpoint when you need to programmatically convert a fuel economy figure across all four standard units in a single call, especially when you also want optional trip fuel and cost calculations bundled in. It is purpose-built for automotive/travel contexts and handles the mpg_us vs mpg_uk distinction (which many general unit converters conflate).

## Known failure modes

- Missing required 'value' or 'unit' query parameters returns an error
- Unsupported unit string (not one of mpg_us, mpg_uk, km_per_l, l_per_100km) returns an error
- Non-numeric value for fuel economy or trip parameters returns a validation error
- Negative or zero fuel economy value may return an error or unexpected result
- Payment failure (x402) prevents the request from being fulfilled

## How this service works

Convert fuel economy between US mpg, UK mpg, km per litre and litres per 100 km, with optional trip fuel and cost.

## Output

Returns the input fuel economy value expressed in all four units (US mpg, UK mpg, km/L, L/100km), plus optionally the total trip fuel consumption in litres and US gallons and the estimated trip fuel cost in USD if distance and price were provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "unit"
     ],
     "properties": {
      "unit": {
       "type": "string",
       "description": "mpg_us, mpg_uk, km_per_l or l_per_100km"
      },
      "value": {
       "type": "number",
       "description": "The fuel-economy figure"
      },
      "distance_miles": {
       "type": "number",
       "description": "Trip length in miles for fuel and cost"
      },
      "price_per_gallon_us": {
       "type": "number",
       "description": "Fuel price per US gallon"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "mpgUk": {
       "type": [
        "null",
        "number"
       ]
      },
      "mpgUs": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "kmPerLiter": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "tripLiters": {
       "type": [
        "null",
        "number"
       ]
      },
      "tripCostUsd": {
       "type": [
        "null",
        "number"
       ]
      },
      "tripGallonsUs": {
       "type": [
        "null",
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fuel-economy-unit-converter-48b3ce66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from units-convert.x402tookit.com](https://www.zero.xyz/host/units-convert.x402tookit.com/llms.txt)
