St. Louis Fed | Economic Research | EconDISC® | FRED® | GeoFRED® | ALFRED® | CASSIDI® | FRASER® | Liber8® | APIs | Fed System
Economic Research from the Federal Reserve Bank of St. Louis
  Home | API Keys | FRED® API
Contact Us | Terms of Use | Privacy | Legal  

fred/category/children

Description

Get the child categories for a specified parent category.

Example

Request (HTTP GET)

For category_id 13 (U.S. Trade & International Transactions):

http://api.stlouisfed.org/fred/category/children?category_id=13&api_key=abcdefghijklmnopqrstuvwxyz123456

Note that API key 'abcdefghijklmnopqrstuvwxyz123456' is for demonstration purposes only. Use a registered API key instead.

Response

<?xml version="1.0" encoding="utf-8" ?>
<categories>
  <category id="16" name="Exports" parent_id="13"/>
  <category id="17" name="Imports" parent_id="13"/>
  <category id="3000" name="Income Payments & Receipts" parent_id="13"/>
  <category id="125" name="Trade Balance" parent_id="13"/>
  <category id="127" name="U.S. International Finance" parent_id="13"/>
</categories>

The category tag's notes attribute is optional.

Parameters

api_key

Read API Keys for more information.

category_id

The id for a category.