{"uid":"cap_sCCp3M3CPbf4kOkTjLmru","slug":"bea-us-trade-balance-data-fad1248b","name":"BEA US Trade Balance Data","description":"Crypto ETF flows, institutional fund data, and US macroeconomic events.","url":"https://x402-sand.vercel.app/api/bea/trade?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","const":"GET"},"queryParams":{"type":"object","properties":{"year":{"type":"string","description":"Example value: 2026"},"indicator":{"type":"string","description":"Example value: BalGds"}},"additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{}},"additionalProperties":false}},"additionalProperties":false},"responseSchema":{"type":"json","example":{"data":[],"success":true,"endpoint":"/api/bea/trade"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_g8lC3wmeDpK-w0wkzuc0n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches US Bureau of Economic Analysis (BEA) trade balance and macroeconomic indicator data for a specified year and indicator type.","exampleAgentPrompt":"Can you pull the US balance of goods trade data from the BEA for 2024 using the BalGds indicator?","exampleUseCases":[{"title":"Macro research trade deficit analysis","prompt":"I need the US trade balance of goods data from the BEA for 2023 — use the BalGds indicator so I can analyze the trade deficit trend."},{"title":"Crypto ETF macro context lookup","prompt":"Pull the BEA trade balance indicator for 2025 so I can understand the macro backdrop for current crypto ETF inflows."},{"title":"Year-over-year trade comparison","prompt":"Get me BEA trade data for both 2022 and 2023 using the BalGds indicator so I can compare the year-over-year change in the US trade balance."}],"resultDescription":"Returns a JSON object with a success flag, the endpoint path, and a data array containing BEA trade indicator records for the requested year and indicator — typically including time series values for the specified macroeconomic trade metric.","failureModes":["Empty data array returned if the year or indicator code is invalid or not available","Missing required query params may return an error or empty result","BEA upstream data may be delayed or unavailable for very recent periods","Invalid indicator string (e.g. misspelled 'BalGds') returns no matching records"],"whenToPreferThis":"Use this endpoint when you need structured US macroeconomic trade data sourced directly from the BEA, particularly balance of goods or other trade indicators by year. Prefer this over general financial data APIs when you specifically need official government BEA figures for macro research, ETF context, or institutional analysis pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T06:33:48.240Z","isFirstParty":false,"canonicalSlug":"bea-us-trade-balance-data-fad1248b"}