GET /api/v1/index.json
API index. What this API is, its license and attribution, the sections it covers, and every endpoint.
Example: https://mondaydiesel.com/api/v1/index.json
Sample response
{
"api": "Monday Diesel Data API",
"version": "v1",
"docs": "https://mondaydiesel.com/api",
"data_as_of": "2026-11-09",
"data_as_of_label": "Nov 9, 2026",
"data_pulled_at": "2026-11-11T00:15:05.839Z",
"generated_at": "2026-11-11T18:51:15.096Z",
"attribution": "Credit Monday Diesel (mondaydiesel.com) with a visible link to the page the figure came from; every record carries its page_url.",
"name": "Monday Diesel Data API",
"description": "Free JSON for every number published on Monday Diesel (mondaydiesel.com): the DOE number, regions, spot, crude oil, cost per mile, price history. The Monday diesel number for people who get paid by the mile.",
"publisher": {
"name": "Monday Diesel",
"url": "https://mondaydiesel.com"
},
"auth": "none",
"cors": "*",
"format": "application/json; charset=utf-8",
"license": "Free to use and republish with attribution; no key or sign-up. The underlying figures are public records from the agencies named in each series' provenance; Monday Diesel collects, checks and publishes them.",
"update_policy": "Static files rebuilt every time the site rebuilds with new data. data_as_of in each response is the newest observation it holds; data_pulled_at is when the site last pulled its sources.",
"counts": {
"series": 14,
"stats": 9
},
"sections": [
{
"key": "number",
"label": "The DOE number",
"series": 1,
"example": "https://mondaydiesel.com/api/v1/series/number/doe-diesel-price.json"
},
{
"key": "region",
"label": "Regions",
"series": 9,
"example": "https://mondaydiesel.com/api/v1/series/region/california.json"
},
{
"key": "spot",
"label": "Spot",
"series": 1,
"example": "https://mondaydiesel.com/api/v1/series/spot/gulf-coast.json"
},
{
"key": "crude",
"label": "Crude oil",
"series": 1,
"example": "https://mondaydiesel.com/api/v1/series/crude/diesel-vs-crude.json"
},
{
"key": "costpermile",
"label": "Cost per mile",
"series": 1,
"example": "https://mondaydiesel.com/api/v1/series/costpermile/diesel-cost-per-mile.json"
},
{
"key": "diesel-price-history",
"label": "Price history",
"series": 1,
"example": "https://mondaydiesel.com/api/v1/series/diesel-price-history/chart.json"
}
],
"endpoints": [
{
"method": "GET",
"path": "/api/v1/index.json",
"url": "https://mondaydiesel.com/api/v1/index.json",
"description": "What this API is, its license and attribution, the sections it covers, and every endpoint."
},
{
"method": "GET",
"path": "/api/v1/latest.json",
"url": "https://mondaydiesel.com/api/v1/latest.json",
"description": "The newest reading of every data page on Monday Diesel (14 series): the headline value as the site shows it, the newest point of each charted line with its date, whether it is current, and links to its page and full history."
},
{
"method": "GET",
"path": "/api/v1/stats.json",
"url": "https://mondaydiesel.com/api/v1/stats.json",
"description": "The 9 headline numbers on the mondaydiesel.com/stats page, each as a quotable sentence with its data date and a ready-made citation."
},
{
"method": "GET",
"path": "/api/v1/series/{section}/{slug}.json",
"url": "https://mondaydiesel.com/api/v1/series/number/doe-diesel-price.json",
"description": "Everything behind one data page: every charted point (date + value), the historical band where the page draws one, the page's tables exactly as shown, its source and citation. Find each series_url in latest.json."
},
{
"method": "GET",
"path": "/api/v1/openapi.json",
"url": "https://mondaydiesel.com/api/v1/openapi.json",
"description": "A machine-readable OpenAPI 3.1 description of these endpoints."
}
]
}