Price by Commodity
Retrieve national average commodity prices.
GET/3.0/commodities/prices
Description
This endpoint provides national average prices for essential commodities across Pakistan. The data aggregates prices reported by the Pakistan Bureau of Statistics (PBS) and provincial market committees, offering a comprehensive view of commodity pricing at the national level.
Request
Authentication
- Type: Bearer Token
- Required: Yes
Parameters
This endpoint does not accept any query parameters.
Response
Success Response (200)
{
"status": "ok",
"message": "",
"data": [
{
"date": "2025-02-06",
"commodity": "wheat",
"unit": "kg",
"price": 2450,
"change_percent": 1.2
},
{
"date": "2025-02-06",
"commodity": "rice_basmati",
"unit": "kg",
"price": 8500,
"change_percent": -0.5
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
date | string | Date of the price data (YYYY-MM-DD) |
commodity | string | Commodity name or code (e.g., wheat, rice_basmati) |
unit | string | Unit of measurement (kg, liter, dozen, etc.) |
price | number | National average price (PKR per unit) |
change_percent | number | Percentage change from previous period |
Error Responses
For detailed Common Error responses, see the Error Handling.
Examples
Get Latest National Commodity Prices
curl -X GET "https://csapis.com/3.0/commodities/prices" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases
- Inflation Tracking: Monitor essential commodity prices for inflation analysis
- Supply Chain Management: Track price trends for procurement planning
- Agricultural Planning: Analyze commodity prices for farming decisions
- Policy Research: Research commodity price trends for economic analysis
- Food Security: Monitor essential food item prices and availability