Gas Prices
GasPricesGas Prices: Gas Prices returns average retail gasoline, diesel and LPG prices from official weekly government surveys for the US, the UK, all 27 EU countries and the EU average. Pass a country, or a US state, region or city, to get the latest week with week-over-week and year-over-year changes, in any currency, per liter or per gallon. (Cost: 2 credits)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "GasPrices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | US only: a state code (CA, CO, FL, MA, MN, NY, OH, TX, WA), a region (eastcoast, midwest, gulfcoast, rockymountain, westcoast and the PADD 1 sub-regions) or a city (losangeles, chicago, houston, newyorkcity and more). Omit for the national average. Requires a paid plan. | |
| date | No | Date to look up (YYYY-MM-DD). Returns the survey week in effect on that date. Omit for the latest week. | |
| unit | No | Volume unit to price per: liter or gallon. Defaults to the source's unit (gallon for the US, liter elsewhere). | |
| country | No | Country to get prices for: US, GB, EU (the EU average) or any EU member code such as DE, FR or PL. Defaults to US. Countries other than US require a paid plan. | |
| currency | No | Currency to return prices in, as an ISO code (e.g. USD, EUR, GBP). Defaults to the country's own currency. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |