Commodity Groups
Retrieve Pakistan's trade data organized by commodity groups, including imports by country and exports by commodity classifications, enabling detailed supply chain analysis.
Description
This endpoint retrieves trade data disaggregated by commodity and product groups, showing which commodities Pakistan imports (by source country) and which it exports (by product category). This includes major commodity classifications such as textiles, machinery, chemicals, minerals, agricultural products, and others. Understanding commodity-level trade patterns is crucial for supply chain management, import dependence assessment, export competitiveness analysis, tariff negotiations, and sectoral economic assessment. Data is sourced from the State Bank of Pakistan (SBP) and the Pakistan Bureau of Statistics (PBS).
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",
"imports": {
"petroleum_group": 1245632.50,
"agri_group": 98765.30,
"mahinery_group": 2156789.45,
"food_group": 456234.20,
"textile_group": 789456.75,
"metal_group": 567890.10,
"transport_group": 234567.89,
"misc_group": 123456.40,
"others": 98765.25
},
"exports": {
"textile_group": 456789.50,
"food_group": 345678.90,
"other_manufacture": 234567.30,
"petroleum_group": 123456.75,
"others": 98765.40
}
},
{
"period": "Oct 2025",
"imports": {
"petroleum_group": 1198765.30,
"agri_group": 87654.20,
"mahinery_group": 2089567.30,
"food_group": 412345.60,
"textile_group": 756789.45,
"metal_group": 534567.80,
"transport_group": 198765.43,
"misc_group": 112345.90,
"others": 87654.10
},
"exports": {
"textile_group": 398765.20,
"food_group": 312345.60,
"other_manufacture": 198765.80,
"petroleum_group": 105432.40,
"others": 76543.25
}
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
period | string | Period identifier (e.g., "Nov 2025") |
imports | object | Object containing import values by commodity group (see below) |
exports | object | Object containing export values by commodity group (see below) |
Import Commodity Groups
| Field | Type | Description |
|---|---|---|
petroleum_group | number | Petroleum group imports (US$) |
agri_group | number | Agriculture & other chemical imports (US$) |
mahinery_group | number | Machinery group imports (US$) |
food_group | number | Food group imports (US$) |
textile_group | number | Textile group imports (US$) |
metal_group | number | Metal group imports (US$) |
transport_group | number | Transport group imports (US$) |
misc_group | number | Miscellaneous group imports (US$) |
all_others | number | All other imports (US$) |
Export Commodity Groups
| Field | Type | Description |
|---|---|---|
textile_group | number | Textile group exports (US$) |
food_group | number | Food group exports (US$) |
other_manufacture | number | Other manufacture exports (US$) |
petroleum_group | number | Petroleum group exports (US$) |
all_others | number | All other exports (US$) |
Error Responses
For detailed Common Error responses, see the Error Handling.
Examples
Get Latest Commodity Trade Data
curl -X GET "https://csapis.com/3.0/economy/trade-grp" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Use Cases## Use Cases
- Supply Chain Analysis: Track import sources by commodity type
- Export Strategy: Monitor export performance by product category
- Tariff Planning: Analyze commodity-wise trade for tariff negotiations
- Sector Analysis: Understand specific industry trade patterns
- Market Diversification: Identify geographic concentration in imports/exports
- Industrial Policy: Assess sectoral trade competitiveness