Historical International Crude Oil Prices
Retrieve historical WTI and Brent crude oil prices for a selected date range.
Documentation
Select WTI or Brent crude oil and a date range to retrieve daily opening, closing, high, and low prices together with price changes and trading volume.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"code": "wti",
"beginDate": "20260701",
"endDate": "20260730"
}Response Example
{
"data": [
{
"day": "20260730",
"code": "wti",
"open_price": 76.58,
"close_price": 77.12,
"max": 77.56,
"min": 75.98,
"diff": 0.71,
"trade_num": 238560
}
]
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | wti |
| beginDate | string | 20260701 |
| endDate | string | 20260730 |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| data | array | {"day":"20260730","code":"wti","open_price":76.58,"close_price":77.12,"max":77.56,"min":75.98,"diff":0.71,"trade_num":238560} |
| data[] | object | {...} |
| data[].day | string | 20260730 |
| data[].code | string | wti |
| data[].open_price | number | 76.58 |
| data[].close_price | number | 77.12 |
| data[].max | number |