Api Endpoint

GW8 Fuel Surcharge

[Truck fuel: EIA diesel surcharge] U.S. EIA weekly on-highway diesel for the U.S. or a PADD (default Rocky Mountain, PADD 4): price per gallon, week-over-week change, and per-mile surcharge max(0, current - base) / mpg, plus the EIA release date. Public weekly page, no API key. Cached until the next Monday/Tuesday release. Source: U.S. EIA. ?padd=4&base=5.5&mpg=6. $0.005 USDC.

Open interactive test console

Offering

Provider
micro-saas-agent.onrender.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://micro-saas-agent.onrender.com/api/truck/fuel-surcharge
MIME type
application/json
First seen
2026-11-21T18:13:11.599Z
Last seen
Tags
eia, diesel, fuel-surcharge, truck, X402

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0xB4527dccaC81eB73d4988A51a4cb1FBBF2C3CaBd"
  }
]

Observed health

Status
Healthy
Latest latency
48 ms
Average latency
42 ms
HTTP status
402
Last checked
Reachability
100% over 3 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "padd": {
          "type": "string",
          "description": "us or a PADD. Default 4 (Rocky Mountain).",
          "example": "4"
        },
        "base": {
          "type": "string",
          "pattern": "^[0-9]+(\\.[0-9]+)?$",
          "description": "Required. Base (pegged) diesel price, USD per gallon, 0 to 100. Without base and mpg the call is rejected and not charged.",
          "example": "5.5"
        },
        "mpg": {
          "type": "string",
          "pattern": "^[0-9]+(\\.[0-9]+)?$",
          "description": "Required. Truck miles per gallon, above 0 and at most 100.",
          "example": "6"
        }
      },
      "additionalProperties": false,
      "description": "Query parameters for this paid call."
    }
  },
  "required": [
    "type",
    "method",
    "queryParams"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "description": "[Truck fuel: EIA diesel surcharge] U.S. EIA weekly on-highway diesel for the U.S. or a PADD (default Rocky Mountain, PADD 4): price per gallon, week-over-week change, and per-mile surcharge max(0, current - base) / mpg, plus the EIA release date. Public weekly page, no API key. Cached until the next Monday/Tuesday release. Source: U.S. EIA. ?padd=4&base=5.5&mpg=6. $0.005 USDC.",
  "properties": {
    "type": {
      "type": "string",
      "const": "json"
    },
    "example": {
      "type": "object",
      "description": "EIA weekly on-highway diesel and a per-mile fuel surcharge. surchargePerMile = max(0, pricePerGallon - basePerGallon) / mpg. Source: U.S. EIA.",
      "additionalProperties": true,
      "required": [
        "padd",
        "region",
        "pricePerGallon",
        "weekOverWeek",
        "surchargePerMile",
        "releaseDate",
        "source"
      ],
      "properties": {
        "padd": {
          "type": "string",
          "description": "us or padd1, padd1a, padd1b, padd1c, padd2, padd3, padd4, padd5. Default padd4."
        },
        "region": {
          "type": "string",
          "description": "EIA region label for the requested PADD."
        },
        "pricePerGallon": {
          "type": "number",
          "description": "Current weekly U.S. on-highway diesel, dollars per gallon."
        },
        "previousPricePerGallon": {
          "type": "number",
          "description": "Prior week on-highway diesel, dollars per gallon."
        },
        "weekOverWeek": {
          "type": "number",
          "description": "Current week minus the previous week, dollars per gallon."
        },
        "weekEnding": {
          "type": "string",
          "description": "Week the EIA diesel price covers, YYYY-MM-DD."
        },
        "releaseDate": {
          "type": "string",
          "description": "EIA diesel release date (YYYY-MM-DD)."
        },
        "basePerGallon": {
          "type": "number",
          "description": "Caller base diesel price, dollars per gallon."
        },
        "mpg": {
          "type": "number",
          "description": "Miles per gallon used to turn the diesel gap into a per-mile surcharge."
        },
        "surchargePerMile": {
          "type": "number",
          "description": "max(0, current - base) / mpg, dollars per mile."
        },
        "source": {
          "type": "string",
          "const": "Source: U.S. EIA",
          "description": "Source line. Source: U.S. EIA."
        }
      }
    }
  },
  "required": [
    "type",
    "example"
  ]
}