First-call proof

Make your first API request in under 10 minutes

Run a real request from this page first. The demo route answers without a key and without an account, so you can see the response shape before you decide anything. Once that is working, the same workflow drives spreadsheets, alerts, widgets, or your own internal tools.

Try the API

No API key required

Rate limited per IP
curl --fail-with-body --max-time 10 \
  "https://api.oilpriceapi.com/v1/demo/prices"

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