Federal Reserve Economic Data

Terms of Use

fred/release/sources



Description

Get the sources for a release of economic data.

Examples

This request can return either XML or JSON by setting the file_type parameter to xml or json. Note that the default value of file_type is xml. The API key 'abcdefghijklmnopqrstuvwxyz123456' is for demonstration purposes only. Use a registered API key instead.

XML

Request (HTTPS GET)

https://api.stlouisfed.org/fred/release/sources?release_id=51&api_key=abcdefghijklmnopqrstuvwxyz123456

Response


<sources realtime_start="2013-08-13" realtime_end="2013-08-13">
    <source id="18" realtime_start="2013-08-13" realtime_end="2013-08-13" name="U.S. Department of Commerce: Bureau of Economic Analysis" link="http://www.bea.gov/"/>
    <source id="19" realtime_start="2013-08-13" realtime_end="2013-08-13" name="U.S. Department of Commerce: Census Bureau" link="http://www.census.gov/"/>
</sources>

The source tag's link and notes attributes are optional.

JSON

Request (HTTPS GET)

https://api.stlouisfed.org/fred/release/sources?release_id=51&api_key=abcdefghijklmnopqrstuvwxyz123456&file_type=json

Response


{
    "realtime_start": "2013-08-14",
    "realtime_end": "2013-08-14",
    "sources": [
        {
            "id": 18,
            "realtime_start": "2013-08-14",
            "realtime_end": "2013-08-14",
            "name": "U.S. Department of Commerce: Bureau of Economic Analysis",
            "link": "http://www.bea.gov/"
        },
        {
            "id": 19,
            "realtime_start": "2013-08-14",
            "realtime_end": "2013-08-14",
            "name": "U.S. Department of Commerce: Census Bureau",
            "link": "http://www.census.gov/"
        }
    ]
}

Parameters

api_key

Read API Keys for more information.

file_type

A key or file extension that indicates the type of file to send.

release_id

The id for a release.

realtime_start

The start of the real-time period. For more information, see Real-Time Periods.

realtime_end

The end of the real-time period. For more information, see Real-Time Periods.


Back to Top