Discovery
No-key sample commodity prices
Public no-auth sample endpoint for agent discovery. Returns representative public prices only; organization-owned private rows are excluded.
get/v1/sample
Request
- Base URLhttps://api.oilpriceapi.com
- Authnone required
Query parameters
by_code'WTI_USD' | 'BRENT_CRUDE_USD' | 'NATURAL_GAS_USD'
Example:WTI_USD
Representative commodity code to sample.
measure'spot_price' | 'change_24h' | 'source_timestamp'
Example:spot_price
Sample measurement to return.
Response
Representative public sample prices
object required
Changes
No recorded changes to this operation across all 17 revisions of this API.