List States and Counties
Get all states and counties from Federal Reserve data
List states
List of all US states
te.getFedRStates(output_type = 'df')
data = te.getFred().then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/fred/states?c=guest:guest");
List counties
List of all counties per state
te.getFedRStates(county = 'arkansas', output_type='df')
data = te.getFred(counties = 'arkansas').then(function(data){
console.log(data)
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/fred/counties/arkansas?c=guest:guest");
Response fields
Field ‘List states’
Field | Type | Description | Example |
---|---|---|---|
Name | string | State name | “Arkansas” |
Field ‘List counties’
Field | Type | Description | Example |
---|---|---|---|
County | string | County name | “Little River County, AR” |