Skip to main content

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": {
    "benchmark": {
      "code": "BENCHMARK_CODE",
      "price": null,
      "currency": "USD",
      "timestamp": "returned_by_api"
    }
  }
}

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 one benchmark request 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" \
  -H "Authorization: Token YOUR_API_TOKEN" \
  -H "Content-Type: application/json"

Choose the workflow you want next

Build from one working request