{"uid":"cap_kEUJx02ONPaGjCQuMo4uT","slug":"fathom-macroeconomic-data-api-category-tree-40a9e515","name":"Fathom Macroeconomic Data API — Category Tree","description":"Free macroeconomic data API powered by FRED. 816,000+ economic time series. GDP, inflation, unemployment, interest rates, and more.","url":"https://fathom-opal.vercel.app/api/category-tree","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"categoryId":{"type":"string","description":"Parent category ID (default: 0 for root)"}}},"responseSchema":{"type":"object","required":["source"],"properties":{"source":{"type":"string"},"children":{"type":"array","items":{"type":"object"}},"parent_id":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_alr_PdkBjSaltS_mRNBgh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the hierarchical category tree of FRED macroeconomic data categories, starting from a given parent category ID","exampleAgentPrompt":"Show me all the subcategories under the root FRED economic data category so I can see what macroeconomic topics are available to explore.","exampleUseCases":[{"title":"Exploring root economic data taxonomy","prompt":"What top-level economic data categories does FRED offer? Start from the root and show me what's available."},{"title":"Drilling into inflation data subcategories","prompt":"I want to explore what subcategories exist under the inflation category in FRED's macroeconomic data — can you pull the category tree for that section?"},{"title":"Building a data category picker","prompt":"I'm building a dashboard and need the full list of child categories under FRED's 'Money, Banking, & Finance' category — can you fetch that category tree for me?"}],"resultDescription":"Returns a JSON object containing the data source identifier, a list of child category objects (each with category IDs and names), and the parent category ID used in the request. This enables navigation of FRED's hierarchical category structure.","failureModes":["Invalid or non-existent categoryId returns an empty children array or error","Network timeout on Vercel-hosted endpoint under high load","Payment failure via x402 protocol prevents request from completing","Malformed request body (e.g. wrong data types) may return a 400 error","Root category (ID 0) may return a very large list that is slow to process"],"whenToPreferThis":"Use this endpoint when you need to programmatically navigate or display the hierarchical structure of FRED macroeconomic data categories — for example, to build a category picker, discover what data series exist, or drill into a specific economic domain. Prefer this over directly querying time series if you first need to understand what categories of data are available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:48:14.075Z","isFirstParty":false}