{"uid":"cap_n37ldbGCEjlzrrvPfnJZt","slug":"world-bank-trade-history-by-country-5400a609","name":"World Bank Trade History by Country","description":"Country trade history from World Bank WDI: imports and exports of goods and services in current USD and as % of GDP. ISO3 country, last 1-10 complete years, independent latest values, units, nulls, source update date and CC BY attribution. Annual national-account totals, not bilateral flows, product-level trade, tariffs or shipments; USD values are not inflation-adjusted.","url":"https://economy.openverbs.com/v1/trade?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"years":{"type":"integer","default":5,"maximum":10,"minimum":1,"description":"Last N complete calendar years in UTC, resolved before payment. Missing observations are not filled."},"country":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 3166 alpha-3 code for one of 215 World Bank-supported countries/territories, e.g. BRA, IND or ZAF. No region aggregates."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2MZ7hhzzQ7pL2mfj6PyoX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns annual imports and exports of goods and services (current USD and % of GDP) for a given ISO3 country over the last 1–10 complete years, sourced from World Bank WDI.","exampleAgentPrompt":"Pull the last 8 years of World Bank trade data for Brazil — I want annual imports and exports both in current USD and as a share of GDP.","exampleUseCases":[{"title":"Country trade openness research","prompt":"Can you get me the last 5 years of import and export data for India from the World Bank — both the dollar totals and the share of GDP?"},{"title":"Decade-long export trend analysis","prompt":"I want to look at how Germany's exports have changed over the past 10 years. Fetch the World Bank trade history for DEU so I can see the current USD values and GDP percentages year by year."},{"title":"Emerging market trade comparison","prompt":"Get me 3 years of World Bank trade figures for South Africa — imports and exports in current USD and as percent of GDP — so I can compare it against other emerging markets."}],"resultDescription":"Returns a time series (up to 10 annual observations) for the requested country containing: imports of goods and services in current USD, exports of goods and services in current USD, imports as % of GDP, exports as % of GDP — plus metadata such as units, null flags for missing observations, source update date, and CC BY attribution. Values are nominal (not inflation-adjusted). No bilateral flows, product-level breakdowns, tariffs, or shipment data.","failureModes":["Invalid or unsupported ISO3 country code returns an error (no region aggregates like EU or WLD accepted)","Requested years out of range (less than 1 or more than 10) returns a validation error","Recent years with missing World Bank observations are returned as null rather than filled or interpolated","Payment failure (x402) if USDC balance is insufficient","Network timeout if World Bank WDI upstream is slow"],"whenToPreferThis":"Choose this endpoint when you need official World Bank WDI annual aggregate trade totals (imports/exports in USD or % of GDP) for a single country. It is ideal for macroeconomic analysis, country risk profiling, and development research. Prefer it over bilateral trade databases when you need national-account-level figures rather than product, tariff, or partner-specific flows. Use sibling endpoints on economy.openverbs.com for GDP, inflation, labor, or population data from the same WDI source.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:30:18.588Z","isFirstParty":false,"canonicalSlug":"world-bank-trade-history-by-country-5400a609"}