DR Oil Prices API API Reference

An API that allows to retrieve the oil prices of the Dominican Republic, each Friday the prices of the following week are available for querying.

API Endpoint
https://fy2imwzr1f.execute-api.us-west-2.amazonaws.com/dev
Contact: alphaelena@gmail.com
Schemes: https
Version: 1.1

Paths

GET /oil-prices

startDate: number
in startDate

Allows to narrow down the list of retrieved oil prices, given a starting date in number of milliseconds elapsed since January 1, 1970 00:00:00 UTC

endDate: number
in endDate

Allows to narrow down the list of retrieved oil prices, given a ending date in number of milliseconds elapsed since January 1, 1970 00:00:00 UTC

200 OK

Success response

Response Content-Types: application/json
Response Example (200 OK)
[
  {
    "date": "string",
    "title": "string",
    "price": "number",
    "currency": "string",
    "timeMeasured": "number"
  }
]

Schema Definitions

OilPrices: array

object
date: string

The date the oil price was measured, format:mm/dd//yyyy

title: string
price: number
currency: string
timeMeasured: number

The date the oil price was measured, format:number of milliseconds elapsed since January 1, 1970 00:00:00 UTC

Example
[
  {
    "date": "string",
    "title": "string",
    "price": "number",
    "currency": "string",
    "timeMeasured": "number"
  }
]