OilPriceAPI Docs
Quick Start
API Reference
  • SDKs and languages
  • Tutorials
  • Articles
  • Documentation directory
  • Quick reference
  • API explorer
  • FAQ
  • Changelog
  • Status
  • Dashboard
GitHub
Quick Start
API Reference
  • SDKs and languages
  • Tutorials
  • Articles
  • Documentation directory
  • Quick reference
  • API explorer
  • FAQ
  • Changelog
  • Status
  • Dashboard
GitHub
  • Interactive Explorer

    • Interactive API Explorer
  • Price Data

    • API Reference
    • Get Latest Prices
    • Historical Prices
    • Batch Prices
    • Excel Latest Price Gateway
    • Price Widget Endpoints
    • Price Utility Endpoints
    • Demo API (No Authentication)
    • Natural Gas Intelligence
    • Natural gas hub price codes
    • Energy News Feed
  • Commodities

    • List Commodities
    • Get Commodity Details
    • Code Aliases
    • Denmark diesel list prices (OK Danmark)
    • Data Publication & Collection Schedules
  • AI Agents (MCP)

    • Get Market Brief
    • Subscriptions / Watches
    • Agent Subscriptions with MCP
  • Marine Fuels

    • Marine Fuel API
    • List Marine Fuel Ports
    • Get Port Details with Prices
    • Bunker Fuels
    • Maritime Fuels
  • Fuel Surcharges

    • Fuel Surcharge API
  • Premium Endpoints

    • All Prices API - One Call, All Commodities
    • Cushing Oil Storage Intelligence API
    • Drilling Intelligence API
    • Marine Fuels API
    • ICE Brent Futures API
    • Aviation Fuel Pilot
  • Spreads & Margins

    • Spreads & Margins
    • Crack Spreads
    • European Gasoil Crack
    • Basis Spreads
    • Refining Margins
    • Curve Structure
    • Physical Premiums
  • Market Indicators

    • Market Indicators
    • Fuel Switching
    • Price Context
    • Storage Analytics
    • CFTC Positioning
    • Market Annotations
  • Futures

    • Futures API
    • ICE Brent Futures
    • WTI Futures
    • Continuous Futures (Brent, WTI)
    • ICE Gas Oil Futures
    • NYMEX Natural Gas Futures
    • ICE EUA Carbon Futures
    • EU Carbon Futures
    • TTF Gas Futures
    • LNG JKM Futures
    • UK Carbon Futures
  • Dark Data (Premium)

    • Energy Intelligence API
    • Rig Counts
    • Well Permits
    • Well Production Beta
    • Drilling Intelligence (Public)
    • Oil Inventories
    • OPEC Production
    • Drilling Productivity
    • Forecasts (STEO)
  • Well Production (Beta)

    • Well Production Data
    • Well Production API Reference
  • Analytics

    • Analytics API
  • Webhooks API

    • Webhooks API Reference
    • Webhook Endpoint Reference
  • Alerts

    • Price Alerts API
  • Scheduled Deliveries

    • Scheduled Deliveries API
  • Account & Billing

    • Account API
    • API Keys
    • Subscriptions
    • Organizations

Historical Prices

Status: ✅ Available | 📈 Time-Series | 🔄 Multiple Intervals

Access historical price data for oil and commodity markets with customizable time ranges and intervals.

Endpoints

MethodEndpointDescription
GET/v1/prices/historicalCustom date range or relative window; daily buckets by default
GET/v1/prices/past_dayRaw spot price points for the past 24 hours, or one calendar day with at=
GET/v1/prices/past_weekRaw spot price points for the past 7 days
GET/v1/prices/past_monthRaw spot price points for the past 30 days
GET/v1/prices/past_yearDaily averages for the past 365 days (raw points with interval=raw)

/v1/prices/historical is the canonical endpoint for full archives. It requires by_code, defaults to interval=daily, and supports up to 500 rows per page. past_day, past_week and past_month default to raw collected points; past_year defaults to interval=daily (or to raw when as_of is set). Raw pages on the fixed-window endpoints are capped at 100 rows. Publication frequency varies by commodity; a raw point is not necessarily a real-time market tick.

Plan requirement

History needs a paid plan or an active trial. It is not part of the Free plan.

This applies to past_day, past_week, past_month, past_year and /v1/prices/historical (with its alias /v1/prices/history). /v1/prices/historical has required it since 2026-11-16 at 12:00 UTC; before that it was served to Free accounts.

Who has history access

AccountHistory
Paid plan (Developer, Starter, Professional, Scale)Yes
Active 7-day trialYes
Credit pack bought before 2026-11-12, credits remainingYes, while those credits last
Credit pack bought on or after 2026-11-12No. The credits still pay for requests, but they do not unlock history
Support credit grant with credits remainingYes
Free plan, trial ended or never startedNo: 402

On a paid plan, history depth follows the plan: Developer covers the last 365 days, Starter the last 5 years, and Professional and Scale the full archive. Trial access and access through an earlier credit pack or a support grant have no depth limit.

The 402 response

A request from an account without history access gets 402 Payment Required. A Free account calling /v1/prices/historical gets this body (abridged only where marked):

{
  "error": "Historical data requires paid access",
  "error_code": "UPGRADE_REQUIRED",
  "message": "Historical price data (past_day, past_week, past_month, past_year, historical, history) requires a paid plan. Latest prices (/v1/prices/latest) are available on the Free tier.",
  "recommended_plan": null,
  "reason": "not_entitled",
  "blocked": {
    "feature": "historical",
    "endpoint": "/v1/prices/historical",
    "requires_paid_plan": [
      "/v1/prices/past_day",
      "/v1/prices/past_week",
      "/v1/prices/past_month",
      "/v1/prices/past_year",
      "/v1/prices/historical",
      "/v1/prices/history"
    ]
  },
  "trial": null,
  "current_plan": {
    "name": "Free",
    "limit": 50,
    "features": ["Latest prices (/latest)"]
  },
  "upgrade": {
    "url": "https://www.oilpriceapi.com/pricing?utm_source=api&utm_medium=402&utm_campaign=historical_gate&ref=…",
    "recommended_plan": "Developer",
    "price": "$19/month",
    "features": ["…"]
  },
  "alternatives": [
    {
      "endpoint": "/v1/prices/latest",
      "description": "Get current prices (available on free tier)"
    }
  ]
}
  • Branch on error_code: "UPGRADE_REQUIRED". The top-level error string is kept for older clients; read message and reason for the explanation.
  • reason is trial_ended when the account had a trial that has ended, and not_entitled otherwise. With trial_ended, message starts with "Your 7-day trial has ended." and trial is an object with status: "expired", ended_at and a message.
  • blocked.endpoint is the path you called, so it reads /v1/prices/history when you used the alias.
  • upgrade.recommended_plan, upgrade.price and upgrade.features come from the live pricing table, so they change when pricing changes. Read them from the response rather than hardcoding them. The top-level recommended_plan is null unless the response carries a plan offer for an MCP client.
  • The same body comes back from past_day, past_week, past_month and past_year.
  • A refused history request does not use up a credit. If you are over your monthly allowance and a credit was set aside for the request, it is returned.
  • Treat the 402 as non-retryable. Retrying returns the same answer until the account gets a paid plan.

/v1/prices/latest stays available on the Free plan.

Authentication

See Authentication Guide for API key setup.

Custom Historical Parameters

These parameters apply to GET /v1/prices/historical:

ParameterTypeRequiredDescriptionDefaultExample
by_codestringYesOne code or a comma-separated list of up to 5—WTI_USD, JET_FUEL_USD
by_typestringNoStored price typeallspot_price
by_sourcestringNoOnly rows from this source labelalleia
start_datedateNoInclusive UTC start dateplan limit2025-01-01
end_datedateNoInclusive UTC end datenow2025-12-31
paststringNoRelative window when explicit dates are omitted—30d, 6m, 1y
intervalstringNoAggregation interval (see Interval Parameter for alias spellings)dailyraw, hourly, daily, weekly, monthly
pageintegerNoPage number11, 2, 3
per_pageintegerNoRows per page; values above 500 are clamped500100, 500

Unknown parameters: /v1/prices/historical rejects query parameters outside this table (and their accepted alias spellings) with 400UNKNOWN_PARAMETERS. days and limit are the common ones: use past=7d (or start_date/end_date) and per_page. The body lists what was rejected, every accepted name, and a suggestion where one applies:

{
  "error": {
    "code": "UNKNOWN_PARAMETERS",
    "message": "Unrecognized query parameters. Use start_date/end_date for explicit dates or past=7d for a relative window.",
    "status": 400,
    "request_id": "…",
    "docs": "https://docs.oilpriceapi.com/guides/error-codes#UNKNOWN_PARAMETERS",
    "unrecognized_parameters": ["days", "limit"],
    "allowed_parameters": ["by_code", "by_type", "by_source", "start_date", "end_date", "past", "interval", "page", "per_page", "…"],
    "suggestions": { "days": "past", "limit": "per_page" }
  }
}

A rejected request does not count against your quota. past_day, past_week, past_month and past_year apply the same check with their own parameter lists.

Code limit: /v1/prices/historical and /v1/prices/past_year accept at most 5 codes per request. A sixth returns 422 with error code TOO_MANY_COMMODITIES, max_codes: 5 and requested_count. Split longer lists into batches of 5. The 20-code batch limit applies to /v1/prices/latest, not to history.

Fixed-window parameters

These apply to past_day, past_week, past_month and past_year. Raw past_day points come newest first, so page 1 holds the most recent ones:

ParameterTypeRequiredDescriptionExample
by_codestringYesOne code or a comma-separated listWTI_USD
intervalstringNoAggregation interval (see below); default raw, except past_year, which defaults to daily (raw when as_of is set)1d, 1w
atdateNopast_day only. Return the points for one UTC calendar day instead of the trailing 24 hours. YYYY-MM-DD; an unparseable value returns 400 "Invalid at format". /v1/prices/YYYY-MM-DD is an alias that serves this lookup directly (no redirect), with the date landing in atat=2026-08-27
as_ofstringNoPoint-in-time view: rows as they stood at that instant, with later source revisions rolled back. ISO 8601 date or datetime, not in the future, and requires interval=raw (aggregates cannot be vintage-corrected row by row). Revisions are tracked from 2026-07-28; a vintage earlier than that returns the rows as first collectedas_of=2026-08-01T00:00:00Z

On past_year, an as_of request without interval returns raw rows, so the revisions are rolled back to the requested instant.

period on past_year

/v1/prices/past_year also accepts period=past_week, period=past_month or period=past_year (sent by older Node SDK releases) and serves that window. The request returns 400 with error code INVALID_PERIOD ("Use one of past_week, past_month or past_year without explicit dates.") when:

  • the value is anything else, including empty;
  • period is sent more than once, or as an array (period[]=);
  • it is combined with start_date or end_date (or startDate/endDate).

period is not accepted on the other window endpoints, where it returns UNKNOWN_PARAMETERS. Prefer calling past_week or past_month directly.

A vintage request echoes its parameters in two headers:

HeaderValue
X-Vintage-As-OfThe applied instant, UTC ISO 8601 (a bare date becomes its end of day)
X-Vintage-Revision-Coverage-Since2026-07-28 — no revisions before this date are recorded

Historical depth is entitlement-aware even when you omit all date bounds. Use GET /v1/commodities/{code} to see your_access, source cadence, coverage, and direct links to the canonical OpenAPI operation and this guide. Its data.history_available_from is the earliest date the API serves for that code, across raw and summarized history (null when unknown). That is the dataset start, not your plan's limit (which is your_access.history_available_from), and it does not promise an unbroken daily series from that date.

Interval Parameter

The interval parameter controls time-based aggregation for historical data. When specified, prices are averaged within each time bucket, reducing data transfer and improving performance for charting and dashboard applications.

IntervalDescriptionAggregationUse Case
rawNo aggregation (default on past_day, past_week, past_month)Individual price pointsFull granularity, detailed analysis
hourlyHourly aggregationAverage price per hourIntraday analysis, short-term trends
dailyDaily aggregationAverage price per dayDaily charts, week-over-week comparison
weeklyWeekly aggregationAverage price per weekMonthly/quarterly charts, medium-term trends
monthlyMonthly aggregationAverage price per monthYearly charts, long-term trends

Every historical endpoint accepts the same alias spellings per family, case-insensitively: 1h/h/hour/1hour for hourly; 1d/d/day/1day for daily; 1w/w/week/1week for weekly; 1m/m/month/1month for monthly. An unknown spelling on /v1/prices/historical returns 400 listing valid_intervals. Some endpoints support fewer families (futures history has no hourly bars); the error names what that endpoint accepts.

When an interval is supplied, each returned point has type set to the bucket average (e.g. daily_average), source set to aggregated, and an added price_type field.

Benefits:

  • Reduced Data Transfer: Fewer data points for the same time range (e.g., 30 days ≈ 30 daily averages vs. several thousand raw ~5–10 minute points)
  • Lower Rate Limit Usage: Aggregated responses use the same rate limit as raw data
  • Optimized for Charting: Pre-aggregated data is ideal for time-series visualizations
  • Same precision as /latest: Bucket averages are rounded to the code's stored precision, never fewer than 2 decimals. Most codes have 2; DIESEL_RETAIL_USD has 3, so a weekly EIA value of 6.127 stays 6.127 in a daily or weekly bucket

Response

Success (200) - Raw Data

data.prices is an array of raw spot points, roughly 5–10 minutes apart:

{
  "status": "success",
  "data": {
    "prices": [
      {
        "price": 67.84,
        "formatted": "$67.84",
        "currency": "USD",
        "code": "WTI_USD",
        "created_at": "2026-07-02T13:54:43.160Z",
        "updated_at": "2026-07-02T13:54:43.160Z",
        "type": "spot_price",
        "unit": "barrel",
        "source": "market_reporting"
      },
      {
        "price": 67.79,
        "formatted": "$67.79",
        "currency": "USD",
        "code": "WTI_USD",
        "created_at": "2026-07-02T13:46:11.402Z",
        "updated_at": "2026-07-02T13:46:11.402Z",
        "type": "spot_price",
        "unit": "barrel",
        "source": "market_reporting"
      }
    ]
  }
}

Success (200) - With Interval Aggregation

When using the interval parameter, points are bucket averages — type becomes the average type, source is aggregated, and a price_type field is added:

{
  "status": "success",
  "data": {
    "prices": [
      {
        "price": 67.94,
        "formatted": "$67.94",
        "currency": "USD",
        "code": "WTI_USD",
        "created_at": "2026-07-02T00:00:00.000Z",
        "type": "daily_average",
        "price_type": "daily_average",
        "source": "aggregated"
      },
      {
        "price": 68.41,
        "formatted": "$68.41",
        "currency": "USD",
        "code": "WTI_USD",
        "created_at": "2026-07-01T00:00:00.000Z",
        "type": "daily_average",
        "price_type": "daily_average",
        "source": "aggregated"
      }
    ]
  }
}

Response Fields

FieldTypeDescription
pricenumberPrice value at the code's stored precision (2 decimals for most codes, 3 for DIESEL_RETAIL_USD); bucket averages are rounded to that precision
formattedstringCurrency-formatted price with symbol
currencystringCurrency code (USD, EUR, GBP)
codestringCommodity code
created_atstringISO 8601 timestamp (UTC)
observed_atstringISO 8601 source observation timestamp when available; useful for daily official-source records
source_datestringDate-only source reference date when available, such as OPEC Basket daily values
updated_atstringISO 8601 timestamp of the last update (UTC) — raw points only
unitstringUnit of measure (e.g. barrel) — raw points only
typestringPrice type: spot_price for raw, or the bucket type (e.g. daily_average) for aggregated
price_typestringAdded only on aggregated points; mirrors the bucket average type
sourcestringData source: aggregated for interval data, or a source label (e.g. eia, market_reporting) for raw data

Alongside data.prices, a response may carry a data.metadata block:

FieldTypeDescription
metadata.instrument_disclosuresarrayPresent when a requested code carries an instrument disclosure, such as a calendar-month average swap (SINGAPORE_JET_KEROSENE_USD, SINGAPORE_MOGAS_92_USD) or the futures-tracking GASOLINE_RBOB_USD: one disclosure per instrument, not per row. Same shape as instrument_disclosure on Latest Prices. Do not average the swap series into a monthly figure
metadata.quarantineobjectPresent when verified-unreliable historical values were withheld from the response — see below
metadata.current_public_feedobjectOn /v1/prices/historical: the status of each requested code's live feed today, independent of the dates, source and type you asked for — see below

Current feed status (metadata.current_public_feed)

/v1/prices/historical reports whether each requested code is still publishing, so an old window does not hide a series that has stopped:

"metadata": {
  "current_public_feed": {
    "scope": "current_public_feed",
    "codes": [
      {
        "code": "WTI_USD",
        "data_status": "current",
        "last_price_at": "…",
        "checked_at": "…",
        "freshness": { "status": "current", "…": "…" }
      }
    ]
  }
}

data_status is one of current, delayed, stale, degraded, missing or unknown. unknown means freshness could not be established, not that the feed is down. This describes the feed now. It says nothing about gaps in the dates you requested.

Withheld values (metadata.quarantine)

A small number of dates carry values that were verified to be wrong at the source or at ingestion (for example an intraday scaling error contaminating a daily average). Those dates are excluded from every historical response rather than served; the stored rows are not deleted. When the exclusion touched your window the response says so:

{
  "status": "success",
  "data": {
    "prices": ["…"],
    "metadata": {
      "quarantine": {
        "applied": true,
        "excluded_dates_count": 1,
        "codes": ["BRENT_CRUDE_USD"],
        "entries": [
          { "code": "BRENT_CRUDE_USD", "date": "2021-03-11", "reason": "intraday scaling outlier contaminated the published daily aggregate" }
        ],
        "entries_truncated": false,
        "message": "Verified unreliable historical values were withheld from this response; no source rows were deleted.",
        "recovery": "…"
      }
    }
  }
}

entries[] lists the withheld code/date/reason triples; entries_truncated is true when the list was capped. The block is absent when nothing in your window was withheld.

Pagination

Historical endpoints return paginated results for performance. /v1/prices/historical defaults to and caps pages at 500 rows; fixed-window raw endpoints cap pages at 100 rows. Page through larger ranges with page=N. The total-count header is X-Total (not X-Total-Count).

HeaderDescriptionExample
X-TotalTotal number of records2016
X-Total-PagesTotal number of pages21
X-PageCurrent page number1
X-Per-PageApplied records per page500
X-Vintage-As-OfOnly with as_of=: the applied instant2026-08-01T23:59:59Z
X-Vintage-Revision-Coverage-SinceOnly with as_of=: first date with revision tracking2026-07-28

This endpoint does not send a Link header. Page through results with X-Total-Pages and page=N.

OPEC Reference Basket

Use OPEC_BASKET_USD for the official OPEC Reference Basket price. The series is sourced from OPEC's official daily XML archive, uses source: "opec.org", and carries source_date for the OPEC reference date.

curl "https://api.oilpriceapi.com/v1/prices/historical?by_code=OPEC_BASKET_USD&start_date=2003-01-01&interval=daily" \
  -H "Authorization: Token YOUR_API_KEY"

OPEC Basket historical data is available on paid plans through the normal historical endpoints. Plan historical-depth limits still apply.

Examples

Basic Usage

# Get past 24 hours of raw WTI data (all individual price points)
curl "https://api.oilpriceapi.com/v1/prices/past_day?by_code=WTI_USD" \
  -H "Authorization: Token YOUR_API_KEY"

# Get past week with pagination
curl "https://api.oilpriceapi.com/v1/prices/past_week?by_code=WTI_USD&page=1&per_page=50" \
  -H "Authorization: Token YOUR_API_KEY"

# Get CSV format
curl "https://api.oilpriceapi.com/v1/prices/past_year?by_code=WTI_USD&format=csv" \
  -H "Authorization: Token YOUR_API_KEY"

Using Interval Aggregation

# Get past month as daily averages (~30 points instead of thousands of raw points)
curl "https://api.oilpriceapi.com/v1/prices/past_month?by_code=BRENT_CRUDE_USD&interval=1d" \
  -H "Authorization: Token YOUR_API_KEY"

# Get past year as weekly averages for long-term trending
curl "https://api.oilpriceapi.com/v1/prices/past_year?by_code=WTI_USD&interval=1w" \
  -H "Authorization: Token YOUR_API_KEY"

# Get past week as hourly averages for intraday analysis
curl "https://api.oilpriceapi.com/v1/prices/past_week?by_code=NATURAL_GAS_USD&interval=1h" \
  -H "Authorization: Token YOUR_API_KEY"

# Get past year as monthly averages for annual trends
curl "https://api.oilpriceapi.com/v1/prices/past_year?by_code=BRENT_CRUDE_USD&interval=1m" \
  -H "Authorization: Token YOUR_API_KEY"

JavaScript/TypeScript

// Get past week with daily aggregation
async function getWeeklyPrices() {
  const response = await fetch(
    "https://api.oilpriceapi.com/v1/prices/past_week?by_code=WTI_USD&interval=1d",
    {
      headers: {
        Authorization: "Token YOUR_API_KEY",
      },
    },
  );

  const data = await response.json();
  return data.data.prices; // Returns ~7 daily averages
}

// Get optimized data for charting (monthly averages for past year)
async function getChartData(commodityCode = "WTI_USD") {
  const response = await fetch(
    `https://api.oilpriceapi.com/v1/prices/past_year?by_code=${commodityCode}&interval=1m`,
    {
      headers: { Authorization: "Token YOUR_API_KEY" },
    },
  );

  const data = await response.json();

  // Format for chart libraries (e.g., Chart.js, Recharts)
  return data.data.prices.map((price) => ({
    date: new Date(price.created_at),
    value: price.price,
    formatted: price.formatted,
  }));
}

// Handle pagination for raw (non-aggregated) data
async function getAllRawData(
  endpoint = "past_week",
  commodityCode = "WTI_USD",
) {
  let allData = [];
  let page = 1;
  let totalPages = 1;

  while (page <= totalPages) {
    const response = await fetch(
      `https://api.oilpriceapi.com/v1/prices/${endpoint}?by_code=${commodityCode}&page=${page}`,
      {
        headers: { Authorization: "Token YOUR_API_KEY" },
      },
    );

    totalPages = parseInt(response.headers.get("X-Total-Pages"));
    const data = await response.json();

    if (data.data?.prices) {
      allData.push(...data.data.prices);
    }

    page++;
  }

  return allData;
}

Python

import requests
from datetime import datetime

# Get past month as daily averages
def get_monthly_averages(commodity_code='WTI_USD'):
    url = 'https://api.oilpriceapi.com/v1/prices/past_month'
    headers = {'Authorization': 'Token YOUR_API_KEY'}
    params = {
        'by_code': commodity_code,
        'interval': '1d'  # Daily aggregation
    }

    response = requests.get(url, headers=headers, params=params)
    data = response.json()

    return data['data']['prices']

# Get past year with weekly aggregation for trending
def get_yearly_trend(commodity_code='BRENT_CRUDE_USD'):
    url = 'https://api.oilpriceapi.com/v1/prices/past_year'
    headers = {'Authorization': 'Token YOUR_API_KEY'}
    params = {
        'by_code': commodity_code,
        'interval': '1w'  # Weekly aggregation
    }

    response = requests.get(url, headers=headers, params=params)
    data = response.json()

    # Format for data analysis
    prices = []
    for price in data['data']['prices']:
        prices.append({
            'date': datetime.fromisoformat(price['created_at'].replace('Z', '+00:00')),
            'price': price['price'],
            'type': price['type']
        })

    return prices

Errors

CodeStatusDescription
UNAUTHORIZED401Missing or invalid API key (returned as error.code)
invalid_code400Unknown or retired commodity code (returned under data with status: "fail"). A retired code is refused even though its old rows are still stored
UPGRADE_REQUIRED402No history access on this account; see The 402 response
UNKNOWN_PARAMETERS400A query parameter this endpoint does not accept (returned as error.code)
TOO_MANY_COMMODITIES422More than 5 codes on /v1/prices/historical or /v1/prices/past_year
—400as_of rejected: "Invalid as_of: … Use ISO8601 — as_of=2026-06-02 or as_of=2026-06-02T00:00:00Z.", "as_of must not be in the future.", or "as_of requires interval=raw. Aggregated intervals cannot be vintage-corrected row-by-row." (under data.error)
—400at rejected on past_day: "Invalid at format" (under data.error)

Rate Limits

All plans share the same request rate limit of 60 requests per fixed 60-second window per API key. Plans differ by request quota (daily on Free, monthly on paid plans), not by a per-endpoint rate ladder. Bursts within the window are fine. See Rate Limiting for details.

PlanRequest QuotaRequest Rate Limit
Free50 / day60 per 60s window
Free Trial (7 days)10,00060 per 60s window
Developer10,000 / month60 per 60s window
Starter50,000 / month60 per 60s window
Professional250,000 / month60 per 60s window
Scale1,000,000 / month60 per 60s window

Current tier limits are machine-readable at GET https://api.oilpriceapi.com/v1/meta/limits (no key required); this table is rendered from it at build time. Read limits from the endpoint rather than hardcoding them.

Related Endpoints

  • Latest Prices - Current market prices
  • Commodities List - Available commodity codes
  • WebSocket Streaming - Real-time updates
Last Updated: 11/27/26, 6:48 PM
Prev
Get Latest Prices
Next
Batch Prices