Home Projects Foreign Trade Analysis
📦 Foreign Trade PSA WITS API 2015 - Q1 2026

Philippine Foreign Trade Analysis

A decade of imports, exports, and a chronic trade deficit

Eleven years of Philippine trade flows from World Bank's WITS API (2015-2023) plus PSA monthly highlights through Q1 2026. The Philippines has run a goods trade deficit every year — peaking at -USD 67B in 2022 — driven by import-heavy electronics manufacturing inputs and consumer goods. China dominates imports (23% share); the US tops exports.

$200.9B
2024 Total Trade
-$54.3B
2024 Trade Deficit
53.4%
Electronics Share of Exports
23.1%
China Share of Imports
Data Sources
World Bank WITS API · PSA Monthly Highlights · Metrobank Wealth Insights, PNA citing PSA
Coverage
Annual 2015 - 2024 (full year) · 2025 (exports) · Q1 2026 (totals) · Partner countries 2023
Tech Stack
cURL SDMX JSON Python Chart.js
Key Takeaways

The Philippines is a chronically import-heavy manufacturing economy: every year for 11 years has been a trade deficit, electronics dominate exports at 53%, and the China-as-#1-import-source / US-as-#1-export-destination split has been stable for years.

  • Trade deficit hit a record -USD 67B in 2022 driven by post-COVID import surge; 2024 narrowed to -USD 54B but is still 5× larger than 2015's -USD 12B.
  • Electronics + manufactured goods = 79.7% of all exports in 2024 — making PH highly exposed to global semiconductor and consumer-electronics cycles.
  • China supplies 23% of all imports (USD 31B in 2023), more than 2× any other partner. Indonesia is #2 (largely coal and palm oil).
  • USA is the #1 export destination at USD 11.4B (16%), then China and Japan close behind. The export side is more diversified than the import side.
  • Q1 2026 shows exports growing faster than imports (+12.7% vs +8.9%) — first sustained signal of a narrowing trade gap since 2020.

Eleven Years of Deficit

Imports have outpaced exports every single year. The gap widens with growth and narrows with crisis — but never closes.

2022 Peak Deficit
Post-COVID import surge
-$66.95B
2024 Total Trade
Imports + exports combined
$200.87B
Imports / Exports
2024 ratio
1.74×
2025 Export Growth
vs 2024 — strong rebound
+15.2%

Imports vs Exports (USD Billions)

Annual goods trade · 2015-2024 · Imports persistently above exports

Trade Balance

Exports minus imports — always negative

Q1 2026 vs Q1 2025

Exports growing faster than imports — narrowing the gap

Who Trades With the Philippines

The asymmetry is striking: imports concentrate heavily in China + ASEAN; exports are split more evenly across the US, China, Japan, and Hong Kong.

Top Export Destinations (2023)

Where Philippine goods are sold · USD billions

Top Import Sources (2023)

Where Philippine goods come from · USD billions

Partner Country Detail (2023)

PH's bilateral trade — exports to and imports from major partner countries

Country Exports to (USD B) Imports from (USD B) Net Position
United States11.439.11+2.32
China10.6530.93-20.28
Japan10.4310.92-0.49
Hong Kong8.77+8.77
Singapore3.527.39-3.87
South Korea3.488.88-5.40
Indonesia12.28-12.28
Thailand2.938.19-5.26
Malaysia6.23-6.23

Electronics Run the Show

Over half of all Philippine goods exports are electronic products — making the country tightly coupled to global chip and consumer-electronics cycles.

2024 Export Composition

USD 73.27B total · share by category

Concentration Risk

Manufactured goods + electronics share over time

What the Data Shows

Five takeaways for trade policy, supply-chain analysts, and anyone modeling PH macro.

The deficit is structural

11 years, 11 deficits, no exceptions. PH's manufacturing base depends on imported components (electronics inputs from China/Korea/Japan, fuel, capital goods). Closing the gap requires either currency depreciation or import-substitution — neither is happening at scale.

USA is a net positive partner

PH runs a +USD 2.3B surplus with the United States — the only major partner where exports beat imports. Hong Kong adds another +USD 8.8B. Together they finance a chunk of the China deficit.

China deficit is the whole story

The -USD 20.3B deficit with China alone is 33% of the total trade deficit. If China imports were balanced 1:1, PH would still have a deficit but only -USD 34B — a fundamentally different macroeconomic picture.

Electronics is a single bet

53.4% of exports in one category creates concentration risk. The 2023 export dip (-USD 6B vs 2022) tracked the global semiconductor inventory correction. Diversification into agribusiness or services would smooth this out.

2026 may be a turning point

Q1 2026 exports +12.7% YoY vs imports +8.9% YoY. If the spread holds, the trade deficit could narrow for the first time since 2020 (when COVID killed both sides). Watch the Q2 print closely.

How This Was Built

Open APIs and named PSA press releases. Reproducible end-to-end.

🌐

WITS World Bank API

SDMX JSON via wits.worldbank.org/API/V1/SDMX/V21. Two queries: total trade (reporter=phl, partner=wld, indicators MPRT-TRD-VL + XPRT-TRD-VL) and partner breakdown (partner=all). Annual 2015-2023.

📰

PSA via news (2024-2026)

PSA's monthly highlights are PDF-only on the agency site. 2024 full-year + 2025 + Q1 2026 figures sourced from PSA-cited articles in Metrobank Wealth Insights, PNA, and the Congress Policy Brief.

🧮

SDMX parsing

WITS returns SDMX-JSON with separate dimension and observation arrays. Two indicators are returned per query (imports + exports) under the same "All Products" label — order matters: series 0 is imports (higher values), series 1 is exports.

📅

Coverage cutoff

2024 is the last full year. 2025 has total exports only (USD 84.4B); 2026 has only Q1 totals. Partner-country breakdown is 2023 (latest in WITS).

⚠️

Currency caveat

All figures are USD as reported. PSA publishes in USD; PHP equivalents would be ~PHP 11.5T total trade in 2024. Currency swings (USD strength 2022-2024) affect dollar-denominated values independently of physical trade volume.

📦

Files in the repo

ph_trade_annual.csv, ph_export_partners_2023.csv, ph_import_partners_2023.csv, ph_export_composition_2024.csv, ph_trade_recent.csv, plus the raw WITS JSON responses for reproducibility.