First-call proof

Make your first API request in under 10 minutes

Start with one benchmark request and a clean response shape. Once you have that working, you can use the same workflow in spreadsheets, alerts, widgets, or your own internal tools.

Representative benchmark example

Use this example to understand the response shape and first-call workflow. Exact values and freshness depend on the benchmark and current service state.

{
  "status": "success",
  "data": {
    "code": "BRENT_CRUDE_USD",
    "price": 78.41,
    "currency": "USD",
    "created_at": "2026-03-09T12:00:00.000Z",
    "type": "spot_price"
  }
}

1. Copy your API key

Use your dashboard key in the Authorization header. Do not paste API keys into public code, shared documents, or logs.

2. Run one request

Start with /v1/prices/latest?by_code=BRENT_CRUDE_USD and keep the first call focused on a single success path.

3. Confirm JSON

Check that the response is valid JSON before adding spreadsheets, alerts, widgets, or internal tools.

Run one request

Confirm a valid JSON response

Keep the first call narrow: send one request, confirm the response shape, then decide which workflow should come next.

curl "https://api.oilpriceapi.com/v1/prices/latest?by_code=BRENT_CRUDE_USD" \
  -H "Authorization: Token YOUR_API_KEY"

No key yet

Use the supported demo route

OilPriceAPI does not issue special test keys. Use the keyless demo endpoint or fixtures for automated tests, and keep customer keys out of CI.

curl "https://api.oilpriceapi.com/v1/demo/prices"

New accounts receive a 7-day core commodity api trial with 10,000 requests and no credit card. Afterward, Free includes 50 requests per day. Dataset access and limits vary by plan, source, and account entitlement.

Choose the workflow you want next

Build from one working request