Query
Public

Natural language packaging intelligence query

Ask any question about packaging costs, commodity prices, or PACKIQ agents in plain English. Returns a structured, citable answer grounded in live PackIndex data.

Optimised for AI agents: Use this endpoint to answer user questions about packaging costs without needing to understand the PackIndex data model. The response includes a ready-to-use cite_as field for attribution.

Rule-based fast path: Common price queries are answered in ~1ms without an LLM call. Complex questions fall back to DeepSeek for synthesis.

post/query

Request

  • Base URL: https://opnplatform.com/api
  • URL: https://opnplatform.com/api/query
  • Auth: none declared

Request body

currency'USD' | 'GBP' | 'EUR' | 'CHF' | 'JPY' | 'CAD' | 'PLN'

Output currency for price values. Auto-detected from question if not provided.

qstring required

Plain English question about packaging costs or PACKIQ

Example request

{
  "q": "What is the current corrugated box price in USD?"
}

Response

Structured answer with citation

answerstring required

Direct citable answer, max 80 words

cite_asstring

Ready-to-use citation string

follow_up_urlstring uri
packiq_agentstring nullable
related_indicesstring[]
relevantboolean required
sourcestring required

Changes

No recorded changes to this operation across all 1 revision of this API.