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/related

Description

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.

Example

Request (HTTP GET)

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.

Response

<?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

Parameters

api_key

Read API Keys for more information.

category_id

The id for a category.