Wholesale & Retail Price Indices
Retrieve Pakistan's Wholesale Price Index (WPI) and Sensitive Price Indicator (SPI) data, measuring inflation at the wholesale level and short-term price movements in essential commodities.
Description
This endpoint retrieves wholesale and retail price indices for Pakistan, including the Wholesale Price Index (WPI) and Sensitive Price Indicator (SPI). The WPI measures inflation at the wholesale/producer level showing price dynamics upstream from consumers, while the SPI measures weekly price movements in essential commodities critical to household consumption. Both indicators are sourced from the Pakistan Bureau of Statistics (PBS) and provide essential insights into price dynamics at different supply chain levels, guiding policy responses to inflation pressures.
Request
Authentication
- Type: Bearer Token
- Required: Yes
Parameters
This endpoint does not accept any query parameters.
Response
Success Response (200)
{
"status": "ok",
"message": "",
"data": [
{
"period": "Nov 2025",
"wpi_yoy": 6.2,
"wpi_mom": 0.5,
"spi_yoy": 8.1,
"spi_mom": 1.2
},
{
"period": "Oct 2025",
"wpi_yoy": 6.2,
"wpi_mom": 0.5,
"spi_yoy": 8.1,
"spi_mom": 1.2
},
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
period | string | Period identifier (e.g., "Nov 2025") |
wpi_yoy | number | Year-over-year WPI inflation rate (percentage) |
wpi_mom | number | Month-over-month WPI inflation rate (percentage) |
spi_yoy | number | Year-over-year SPI inflation rate (percentage) |
spi_mom | number | Month-over-month SPI inflation rate (percentage) |
Error Responses
For detailed Common Error responses, see the Error Handling.
Invalid Index Type (400)
{
"status": "error",
"message": "Invalid index type. Use 'wpi', 'spi', or 'both'"
}
Invalid Date Range (400)
{
"status": "error",
"message": "Invalid date range provided"
}
Examples
Get Latest WPI and SPI Data
curl -X GET "https://csapis.com/3.0/economy/spi-wpi" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases
- Supply Chain Analysis: Track wholesale price changes through the supply chain
- Commodity Monitoring: Monitor price movements in essential commodities via SPI
- Producer Inflation Tracking: Understand inflation at the producer/wholesale level via WPI
- Early Warning System: Use weekly SPI data as an early indicator of retail inflation
- Policy Decisions: Central bank and government use these indices for policy formulation
- Business Planning: Businesses use WPI/SPI for cost planning and pricing strategy
- Economic Analysis: Include wholesale and retail price trends in economic reports