v2

latestOpenAPI 3.0.4Commercial License2026-08-0718678294.5 KB
Demo (No Auth)

Get demo prices (No authentication required)

Start here - no API key needed!

Returns the latest prices for free-tier commodities. Perfect for testing the API before signing up or for embedding in documentation examples.

Available commodities:

  • Brent Crude Oil (BRENT_CRUDE_USD)
  • WTI Crude Oil (WTI_USD)
  • Natural Gas Henry Hub (NATURAL_GAS_USD)
  • Gold (GOLD_USD)
  • Gold AM/PM Fix (GOLD_AM_USD, GOLD_AM_GBP, GOLD_AM_EUR, GOLD_PM_USD, GOLD_PM_GBP, GOLD_PM_EUR)
  • Silver (SILVER_USD)
  • Silver Fix (SILVER_FIX_USD, SILVER_FIX_GBP, SILVER_FIX_EUR)
  • EUR/USD (EUR_USD)
  • USD/NOK (USD_NOK)
  • EUR/NOK (EUR_NOK)
  • GBP/USD (GBP_USD)
  • Heating Oil (HEATING_OIL_USD)
  • Gasoline RBOB (GASOLINE_USD)
  • Diesel (DIESEL_USD)

Rate limit: 20 requests per hour per IP

Need more? Get a free API key for full access.

get/v1/demo/prices

Response

Demo price data with code examples

statusstring

Example response

{
  "status": "success",
  "data": {
    "prices": [
      {
        "code": "BRENT_CRUDE_USD",
        "name": "Brent Crude Oil",
        "price": 75.42,
        "currency": "USD",
        "source": "OilPriceAPI"
      }
    ],
    "meta": {
      "demo_mode": true,
      "rate_limit": "20 requests per hour",
      "signup_url": "https://www.oilpriceapi.com/signup",
      "documentation_url": "https://docs.oilpriceapi.com"
    }
  }
}