|
Economic Research from the Federal Reserve Bank of St. Louis |
Get the related categories for a category. A related category is a one-way relation between 2 categories that is not part of a parent-child category hierarchy. Most categories do not have related categories.
http://api.stlouisfed.org/fred/category/related?category_id=32073&api_key=abcdefghijklmnopqrstuvwxyz123456
Note that API key 'abcdefghijklmnopqrstuvwxyz123456' is for demonstration purposes only. Use a registered API key instead.
<?xml version="1.0" encoding="utf-8" ?> <categories> <category id="149" name="Arkansas" parent_id="27281"/> <category id="150" name="Illinois" parent_id="27281"/> <category id="151" name="Indiana" parent_id="27281"/> <category id="152" name="Kentucky" parent_id="27281"/> <category id="153" name="Mississippi" parent_id="27281"/> <category id="154" name="Missouri" parent_id="27281"/> <category id="193" name="Tennessee" parent_id="27281"/> </categories>
The category tag's notes attribute is optional.
Category ID 32073 has the parent-child category hierarchy:
Categories > Regional Data > Federal Reserve Districts > St. Louis > States in District
This category uses a related category to link to category ID 154 'Missouri' with hierarchy:
Categories > Regional Data > States > Missouri
Read API Keys for more information.
The id for a category.