{"uid":"cap_5pUhoNclbH363RGSZqxT6","slug":"macrolens-trade-analysis-api-457dbf5e","name":"MacroLens Trade Analysis API","description":"AI-powered macro-economic analysis. FRED + World Bank data + MiMo LLM. 20 endpoints. x402 on Base.","url":"https://mascronlens.vercel.app/api/trade","method":"POST","headers":{},"bodySchema":{"type":"object","required":["start"],"properties":{"start":{"type":"string","description":"start"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.4","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.4/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.4","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.4","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y6qv66lFbQIt_T8wjXj3b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.4","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes international trade data using FRED and World Bank datasets, enhanced with AI-powered macro-economic insights via MiMo LLM","exampleAgentPrompt":"Can you pull me a MacroLens AI trade analysis starting from January 2020 and give me the key macro-economic takeaways on global trade flows and balances?","exampleUseCases":null,"resultDescription":"A JSON object with a success boolean and a data object containing AI-interpreted trade metrics and macro-economic insights drawn from FRED and World Bank trade datasets for the specified period","failureModes":["Missing required 'start' parameter returns validation error","Invalid date format in 'start' field causes parsing failure","FRED or World Bank upstream data unavailable leads to partial or failed response","Payment not received or insufficient USDC balance blocks access with 402 response","Date range too far in the past may have limited data coverage"],"whenToPreferThis":"Choose this endpoint when you need AI-synthesized macro-economic trade analysis combining authoritative FRED and World Bank data — particularly useful for investors, researchers, or analysts who want LLM-interpreted trade insights rather than raw data. Prefer over generic economic APIs when you want the MiMo LLM layer to contextualize and explain trade trends.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:00.275Z","isFirstParty":false}