Indices
Monthly price history for any index
Returns monthly price history for any PackIndex code (L1, L2, or L3). Covers all 385 indices — corrugated, flexible, rigid, polymers, metals, aromatics, fibre, energy, glass, closures, pharma, and more. History depth is gated by plan:
| Plan | History depth | API param |
|---|---|---|
| Free / unauthenticated | 3 months | — |
| Essential | 12 months | ?months=12 |
| Professional | 24 months | ?months=24 |
| Intelligence | 24 months | ?months=24 |
Include Authorization: Bearer opn_<key> to unlock your plan depth. Useful for sparklines, trend charts, year-on-year analysis, and feeding the prediction / simulation engine.
get/indices/{code}/history
Request
- Base URL: https://opnplatform.com/api
- URL: https://opnplatform.com/api/indices/{code}/history
- Auth: one of:
- HTTP bearer
- none
Path parameters
codestring required
PackIndex code — any L1/L2/L3 code. E.g. CORR, PVC, LME_AL, BOPP, FBB
Query parameters
monthsinteger
Months of history to return. Capped by plan (free=3, essential=12, professional=24, intelligence=24).
Response
Monthly price history
Example response
{
"category_id": "CORR",
"history": [
{
"change_pct": 1.2,
"index_date": "2025-06-01",
"index_value": 0.472,
"unit": "$/unit"
},
{
"change_pct": 1.48,
"index_date": "2025-07-01",
"index_value": 0.479,
"unit": "$/unit"
},
{
"change_pct": 0.62,
"index_date": "2026-05-01",
"index_value": 0.486,
"unit": "$/unit"
}
],
"months": 12
}Changes
No recorded changes to this operation across all 1 revision of this API.