Crude against the pump
Brent by month next to a country's pump price, to see how much of a litre is crude.
Every plan2 callsUses: Benchmark history, Pump prices
1
Brent, averaged by month
Benchmark history averages by week, month or year, with the high and low of each.
curl -G "https://api.oilapi.net/v1/benchmarks/brent" \ -d interval=month \ -d from=2020-01-01 \ -H "X-API-Key: YOUR_API_KEY"
2
The pump price, in dollars
Ask the country's price over the same months in US dollars.
curl -G "https://api.oilapi.net/v1/prices/retail" \ -d country=gb \ -d fuel=diesel \ -d from=2020-01-01 \ -d currency=usd \ -H "X-API-Key: YOUR_API_KEY"
3
Put them on one scale
A barrel is 158.99 litres: divide Brent by it for the crude in each litre. The rest is tax, refining, transport and margin.