{"uid":"cap_BWHRJ3xGpq8K1x33CEfIH","slug":"api-strale-io-8fc7aaa6","name":"Country Trade Data Lookup","description":"Get trade data for a country: top exports/imports, trade balance, trading partners. World Bank API + embedded data.","url":"https://api.strale.io/x402/country-trade-data","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["country_code"],"properties":{"year":{"type":"number"},"country_code":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"year":2022,"country_code":"DE"}}},"response":{"note":"Product breakdown and partner data are estimates based on 2023 published trade statistics.","year":2022,"_meta":{"payment":{"method":"x402","price_usd":0.21600000000000003,"settlement_id":"0x11e815da56895c571417c8c6d673569eee12708e55528824810934b28d6e45f0"},"capability":"country-trade-data","latency_ms":358,"provenance":{"source":"api.worldbank.org","fetched_at":"2026-06-05T23:53:39.980Z"}},"data_source":"World Bank API + embedded product data","top_exports":[{"product":"Automobiles","value_usd":195000000000,"share_percent":11.5},{"product":"Vehicle parts","value_usd":72000000000,"share_percent":4.3},{"product":"Pharmaceuticals","value_usd":68000000000,"share_percent":4},{"product":"Machinery","value_usd":55000000000,"share_percent":3.3},{"product":"Medical instruments","value_usd":30000000000,"share_percent":1.8}],"top_imports":[{"product":"Crude petroleum","value_usd":55000000000,"share_percent":3.7},{"product":"Petroleum gas","value_usd":45000000000,"share_percent":3},{"product":"Automobiles","value_usd":68000000000,"share_percent":4.6},{"product":"Vehicle parts","value_usd":42000000000,"share_percent":2.8},{"product":"Pharmaceuticals","value_usd":40000000000,"share_percent":2.7}],"country_code":"DE","country_name":"Germany","top_partners":[{"type":"export","country":"United States","trade_value_usd":170000000000},{"type":"export","country":"France","trade_value_usd":120000000000},{"type":"import","country":"China","trade_value_usd":160000000000},{"type":"import","country":"Netherlands","trade_value_usd":115000000000},{"type":"import","country":"Poland","trade_value_usd":95000000000}],"total_exports_usd":1916859170749,"total_imports_usd":1813049636002,"trade_balance_usd":103809534747}},"exampleRequest":{"year":2022,"country_code":"DE"},"tags":["x402"],"displayCostAmount":"0.216001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.216001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__hfL3TeNDfz-qE1TstIU0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.216","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns top exports, top imports, trade balance, and key trading partners for a given country using World Bank data.","exampleAgentPrompt":"Pull up the trade data for Germany — I want to see its top exports, top imports, trade balance, and main trading partners. Use country code DE and get the most recent available year.","exampleUseCases":[{"title":"Analyze Brazil's trade balance","prompt":"Can you pull up Brazil's trade data for me? I want to know whether it's running a trade surplus or deficit, what its biggest exports and imports are, and which countries it trades with the most. Use the most recent year available."},{"title":"Identify Japan's top import categories","prompt":"Look up Japan's trade profile — specifically what it imports the most. Also grab the trade balance and main trading partners while you're at it. Use country code JP and the latest data you can find."},{"title":"Compare trading partners for France","prompt":"Get me the trade overview for France — I want to see who its biggest trading partners are, what it's exporting and importing, and what the overall trade balance looks like. Pull the most recent available data."}],"resultDescription":"Returns structured trade data for the specified country including top export and import categories, trade balance figures, and a breakdown of key trading partner countries, sourced from the World Bank API and embedded datasets.","failureModes":["Invalid or unsupported country_code returns an error","No data available for the requested year returns empty or fallback response","World Bank API unavailability may cause degraded results","Missing required country_code parameter returns validation error"],"whenToPreferThis":"Use this endpoint when you need a concise, structured trade profile for a specific country — including exports, imports, balance, and partners — without having to query and aggregate World Bank data yourself. Ideal for economic research agents, trade analysis dashboards, or any workflow needing country-level trade summaries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:06:48.629Z","isFirstParty":false}