MPG lookup for any US-market car since 1984: official test-cycle city, highway, and combin
MPG lookup for any US-market car since 1984: official test-cycle city, highway, and combined miles per gallon plus fuel type and CO2 per mile, by year/make/model or VIN. Multiple engine/transmission variants are returned with ids so you can query the exact one. Clean structured JSON.
5000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-03
updated
Provider
x402.forgemesh.io · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x850363a27F0aC6fEb9C7a3eC4C1d295262dF9432",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"make": "Honda",
"model": "Accord",
"model_year": "2020"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"attribution": "US DOE/EPA fuel economy database (public domain)",
"fuel_economy": {
"annual_fuel_cost_usd": 1600,
"city_mpg": 26,
"co2_tailpipe_g_per_mi": 302,
"combined_mpg": 29,
"fuel_type": "Regular",
"highway_mpg": 35
},
"matched_variant": {
"description": "2020 Honda Accord — Man 6-spd 1.5L",
"vehicle_id": 42069
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"make": {
"description": "e.g. Honda",
"type": "string"
},
"model": {
"description": "e.g. Accord",
"type": "string"
},
"model_year": {
"description": "4-digit year, 1984+",
"type": "string"
},
"vehicle_id": {
"description": "exact variant id from other_variants",
"type": "integer"
},
"vin": {
"description": "VIN — decoded automatically (alternative to make/model/model_year)",
"type": "string"
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"info": {
"required": false
},
"offer-receipt": {
"info": {
"offers": [
{
"acceptIndex": 0,
"format": "eip712",
"payload": {
"amount": "5000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "eip155:8453",
"payTo": "0x850363a27F0aC6fEb9C7a3eC4C1d295262dF9432",
"resourceUrl": "https://x402.forgemesh.io/car-mpg-lookup",
"scheme": "exact",
"validUntil": 1788443245,
"version": 1
},
"signature": "0x9d1e0c271c89431dffa3629c7ce9fdc54dc19199cd74ccba938ea73251c49c21042ef57673dfc7a615a54b5e42aac7d33446a6495914887377dc5d91c21510311b"
}
]
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"offers": {
"items": {
"properties": {
"acceptIndex": {
"type": "integer"
},
"format": {
"type": "string"
},
"payload": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"payTo": {
"type": "string"
},
"resourceUrl": {
"type": "string"
},
"scheme": {
"type": "string"
},
"validUntil": {
"type": "integer"
},
"version": {
"type": "integer"
}
},
"required": [
"version",
"resourceUrl",
"scheme",
"network",
"asset",
"payTo",
"amount"
],
"type": "object"
},
"signature": {
"type": "string"
}
},
"required": [
"format",
"signature"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"offers"
],
"type": "object"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}Use it
curl
curl "https://x402.forgemesh.io/car-mpg-lookup" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.forgemesh.io/car-mpg-lookup");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.forgemesh.io/car-mpg-lookup")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/14251.json, and this resource appears in /discovery/resources and /discovery/search.