Get historical marine fuel prices
Changed onRetrieve the latest collection of each marine-fuel assessment, newest first. The response keeps distinct sources, currencies and price types separate. Undated rows retain their collection time. Up to 1,000 observations are returned after deduplication; metadata.truncated indicates omitted matches. metadata.period describes returned as_of values, while requested_period records the query window. Neither a successful response nor truncated=false promises complete daily coverage. Results are cached for 30 minutes.
Request
- Base URLhttps://api.oilpriceapi.com
- AuthAPI key in header Authorization
Query parameters
Port code
Marine grade (VLSFO, HFO_380, HFO_180, MGO_05S, MGO_01S) or full marine series code; comma-separated lists are accepted. Unknown entries return 400.
Rolling history window in days
Response
Historical marine fuel data
Example response
{
"status": "success",
"data": {
"metadata": {
"limit": 1000
}
}
}Changes
- info
added the non-success response with the status
- info
- breaking
the
response's property type changed fromarraytoobjectfor status - warning
deleted the
queryrequest parameterinterval - warning
deleted the
queryrequest parameterperiod - info
added the new optional
queryrequest parameterdays - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking