{
  "x402Version": 2,
  "id": 29242,
  "slug": "29242",
  "resource": "https://api.agentstools.dev/energy/petroleum",
  "description": "US petroleum prices and stocks from the EIA: retail gasoline and diesel by PADD region (weekly), WTI and Brent crude spot (daily), and weekly crude/gasoline/distillate inventories. Returns latest value, change vs prior period, short history, and a region-vs-US spread.",
  "type": "http",
  "serviceName": "energy-petroleum",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "history": 8,
            "metric": "gas_prices",
            "region": "west_coast"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "as_of": "2026-06-29",
            "change": {
              "change": -0.08,
              "change_pct": -1.78
            },
            "latest": {
              "period": "2026-06-29",
              "units": "$/GAL",
              "value": 4.42
            },
            "metric": "gas_prices",
            "region": "west_coast",
            "regional_spread": {
              "spread": 0.59,
              "vs": "us"
            },
            "unit": "$/gal"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "history": {
                    "description": "Number of recent data points to include",
                    "maximum": 120,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "metric": {
                    "description": "Which petroleum series to return (default gas_prices)",
                    "enum": [
                      "gas_prices",
                      "diesel_prices",
                      "crude_wti",
                      "crude_brent",
                      "crude_stocks",
                      "gasoline_stocks",
                      "distillate_stocks"
                    ],
                    "type": "string"
                  },
                  "region": {
                    "description": "PADD region for retail gasoline/diesel (default us)",
                    "enum": [
                      "us",
                      "east_coast",
                      "midwest",
                      "gulf_coast",
                      "rocky_mountain",
                      "west_coast"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "energy",
    "petroleum",
    "oil",
    "gasoline",
    "diesel",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:08:58.424Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:08:58.194Z"
  },
  "metadata": {
    "serviceName": "energy-petroleum",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "history": 8,
              "metric": "gas_prices",
              "region": "west_coast"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "as_of": "2026-06-29",
              "change": {
                "change": -0.08,
                "change_pct": -1.78
              },
              "latest": {
                "period": "2026-06-29",
                "units": "$/GAL",
                "value": 4.42
              },
              "metric": "gas_prices",
              "region": "west_coast",
              "regional_spread": {
                "spread": 0.59,
                "vs": "us"
              },
              "unit": "$/gal"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "history": {
                      "description": "Number of recent data points to include",
                      "maximum": 120,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "metric": {
                      "description": "Which petroleum series to return (default gas_prices)",
                      "enum": [
                        "gas_prices",
                        "diesel_prices",
                        "crude_wti",
                        "crude_brent",
                        "crude_stocks",
                        "gasoline_stocks",
                        "distillate_stocks"
                      ],
                      "type": "string"
                    },
                    "region": {
                      "description": "PADD region for retail gasoline/diesel (default us)",
                      "enum": [
                        "us",
                        "east_coast",
                        "midwest",
                        "gulf_coast",
                        "rocky_mountain",
                        "west_coast"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "as_of": "2026-06-29",
    "change": {
      "change": -0.08,
      "change_pct": -1.78
    },
    "latest": {
      "period": "2026-06-29",
      "units": "$/GAL",
      "value": 4.42
    },
    "metric": "gas_prices",
    "region": "west_coast",
    "regional_spread": {
      "spread": 0.59,
      "vs": "us"
    },
    "unit": "$/gal"
  }
}