{"uid":"cap_oP-i9kMCfTj_jmQFbeZhk","slug":"fathom-macroeconomic-data-api-category-tree-ee413e1e","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://fredthom.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.35","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.35/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pTNt_WTuDq88xJjbar6fd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.35","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the hierarchical category tree of FRED economic data categories, starting from a given parent category ID","exampleAgentPrompt":"Show me all the subcategories under FRED's root economic data category so I can figure out which branch contains inflation and price index data.","exampleUseCases":null,"resultDescription":"Returns an object with a source identifier, an array of child category objects (each with name and ID), and the parent category ID that was queried — enabling navigation of the FRED category hierarchy.","failureModes":["Invalid or non-existent categoryId returns empty children array or error","Network timeout on Vercel serverless cold start","Payment failure via x402 protocol returns 402 status without data","Malformed request body returns 400 error"],"whenToPreferThis":"Use this endpoint when you need to discover or navigate the FRED macroeconomic data category hierarchy before fetching actual time series data — particularly useful as a first step to identify which category IDs to use in subsequent series queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:48.103Z","isFirstParty":false}