Skip to content
Docs
Get API key
Federal Reserve

Federal Reserve States and Counties

Use the following API endpoints to list all states and counties from Federal Reserve data.

Federal Reserve Economic Data (FRED), maintained by the Federal Reserve Bank of St. Louis, is a vast database with over 816,000 economic time series covering banking, business, consumer price indexes, employment, GDP, interest rates, and more. These data are compiled from various sources including government agencies like the U.S. Census Bureau and the Bureau of Labor Statistics, offering a comprehensive resource for economic analysis and policymaking.

List states

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/states?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
import tradingeconomics as te
te.login('your_api_key')
te.getFedRStates()

The response data format can be configured by appending the &f= parameter to the URL request.

Text
https://api.tradingeconomics.com/fred/states?c={your_api_key}&f=json
JSON
[
  {
    "name": "Arkansas"
  },
  {
    "name": "Illinois"
  },
  {
    "name": "Indiana"
  }
]

List counties

Using Requests:

Python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/counties/arkansas?c={your_api_key}'
data = requests.get(url).json()
print(data)

Or using our package:

Python
te.getFedRStates(county = 'arkansas')
Text
https://api.tradingeconomics.com/fred/counties/{state}?c={your_api_key}&f=json
JSON
[
  {
    "county": "Randolph County, AR"
  },
  {
    "county": "Chicot County, AR"
  },
  {
    "county": "Pine Bluff, AR"
  }
]

Response fields

Field ‘List states’

FieldTypeDescriptionExample
NamestringState name“Arkansas”

Field ‘List counties’

FieldTypeDescriptionExample
CountystringCounty name“Little River County, AR”