Skip to main content

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.

GET/3.0/economy/trade-grp

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

FieldTypeDescription
periodstringPeriod identifier (e.g., "Nov 2025")
importsobjectObject containing import values by commodity group (see below)
exportsobjectObject containing export values by commodity group (see below)

Import Commodity Groups

FieldTypeDescription
petroleum_groupnumberPetroleum group imports (US$)
agri_groupnumberAgriculture & other chemical imports (US$)
mahinery_groupnumberMachinery group imports (US$)
food_groupnumberFood group imports (US$)
textile_groupnumberTextile group imports (US$)
metal_groupnumberMetal group imports (US$)
transport_groupnumberTransport group imports (US$)
misc_groupnumberMiscellaneous group imports (US$)
all_othersnumberAll other imports (US$)

Export Commodity Groups

FieldTypeDescription
textile_groupnumberTextile group exports (US$)
food_groupnumberFood group exports (US$)
other_manufacturenumberOther manufacture exports (US$)
petroleum_groupnumberPetroleum group exports (US$)
all_othersnumberAll 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