Snapshot
The Snapshot endpoint offers a momentary view of data, capturing specific information at a particular point in time. It generally includes details such as date, units, and general information, providing a static representation of current data.
By country
Using Requests:
import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/fred/snapshot/country/united%20states?c={api_key}'
data = requests.get(url).json()
print(data)
Or using our package:
import tradingeconomics as te
te.login('your_api_key')
te.getFedRSnaps(country = 'united states')
Using Requests:
const axios = require('axios');
(async () => {
const api_key = 'YOUR_API_KEY'
const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/country/united%20states?c=${api_key}`)
console.log(response.data)
})()
Or using our package:
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getFred(country = 'united states').then(function(data){
console.log(data)
});
Using Requests:
using (var httpClient = new HttpClient())
{
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/country/united%20states?c=your_api_key"))
{
request.Headers.TryAddWithoutValidation("Upgrade-Insecure-Requests", "1");
var response = await httpClient.SendAsync(request);
if (response.IsSuccessStatusCode)
{
var content = await response.Content.ReadAsStringAsync();
Console.WriteLine(content);
}
}
}
The response data format can be configured by appending the &f= parameter to the URL request.
/fred/snapshot/country/{country}
symbol | Country | Category | Last | Date | Previous | PreviousDate | Frequency | popularity | Start | Unit | Adjustment | URL | lastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A001RD3A086NBEA | United States | Gross national product (implicit price deflator) | 117.8850 | 1/1/2022 12:00:00 AM | 110.1300 | 1/1/2021 12:00:00 AM | Yearly | 5 | 1/1/1929 12:00:00 AM | Index 2009=100 | NSA | /united-states/gross-national-product-implicit-price-deflator-fed-data.html | 12/20/2023 7:44:50 PM |
A001RV1Q225SBEA | United States | Gross National Product (chain-type price index) | 3.6000 | 7/1/2023 12:00:00 AM | 1.7000 | 4/1/2023 12:00:00 AM | Quarterly | 3 | 4/1/1947 12:00:00 AM | % Chg. from Preceding Period | SAAR | /united-states/gross-national-product-chain-type-price-index-percent-change-from-preceding-period-saar-fed-data.html | 3/25/2024 9:47:11 AM |
A006RA3Q086SBEA | United States | Real gross private domestic investment (chain-type quantity index) | 119.1600 | 10/1/2023 12:00:00 AM | 118.6810 | 7/1/2023 12:00:00 AM | Quarterly | 1 | 1/1/1947 12:00:00 AM | Index 2009=100 | SA | /united-states/real-gross-private-domestic-investment-chain-type-quantity-index-index-2009-100-fed-data.html | 3/25/2024 9:47:11 AM |
/fred/snapshot/country/{country}?f=json
[{"symbol":"A001RD3A086NBEA","Country":"United States","Category":"Gross national product (implicit price deflator)","Last":117.8850,"Date":"2022-01-01T00:00:00","Previous":110.1300,"PreviousDate":"2021-01-01T00:00:00","Frequency":"Yearly","popularity":5,"Start":"1929-01-01T00:00:00","Unit":"Index 2009=100","Adjustment":"NSA","URL":"/united-states/gross-national-product-implicit-price-deflator-fed-data.html","lastUpdate":"2023-12-20T19:44:50.977"},{"symbol":"A001RV1Q225SBEA","Country":"United States","Category":"Gross National Product (chain-type price index)","Last":3.6000,"Date":"2023-07-01T00:00:00","Previous":1.7000,"PreviousDate":"2023-04-01T00:00:00","Frequency":"Quarterly","popularity":3,"Start":"1947-04-01T00:00:00","Unit":"% Chg. from Preceding Period","Adjustment":"SAAR","URL":"/united-states/gross-national-product-chain-type-price-index-percent-change-from-preceding-period-saar-fed-data.html","lastUpdate":"2024-03-25T09:47:11.507"},{"symbol":"A006RA3Q086SBEA","Country":"United States","Category":"Real gross private domestic investment (chain-type quantity index)","Last":119.1600,"Date":"2023-10-01T00:00:00","Previous":118.6810,"PreviousDate":"2023-07-01T00:00:00","Frequency":"Quarterly","popularity":1,"Start":"1947-01-01T00:00:00","Unit":"Index 2009=100","Adjustment":"SA","URL":"/united-states/real-gross-private-domestic-investment-chain-type-quantity-index-index-2009-100-fed-data.html","lastUpdate":"2024-03-25T09:47:11.72"}]
/fred/snapshot/country/{country}?f=csv
symbol,Country,Category,Last,Date,Previous,PreviousDate,Frequency,popularity,Start,Unit,Adjustment,URL,lastUpdate
A001RD3A086NBEA,United States,Gross national product (implicit price deflator),117.8850,1/1/2022 12:00:00 AM,110.1300,1/1/2021 12:00:00 AM,Yearly,5,1/1/1929 12:00:00 AM,Index 2009=100,NSA,/united-states/gross-national-product-implicit-price-deflator-fed-data.html,12/20/2023 7:44:50 PM
A001RV1Q225SBEA,United States,Gross National Product (chain-type price index),3.6000,7/1/2023 12:00:00 AM,1.7000,4/1/2023 12:00:00 AM,Quarterly,3,4/1/1947 12:00:00 AM,% Chg. from Preceding Period,SAAR,/united-states/gross-national-product-chain-type-price-index-percent-change-from-preceding-period-saar-fed-data.html,3/25/2024 9:47:11 AM
A006RA3Q086SBEA,United States,Real gross private domestic investment (chain-type quantity index),119.1600,10/1/2023 12:00:00 AM,118.6810,7/1/2023 12:00:00 AM,Quarterly,1,1/1/1947 12:00:00 AM,Index 2009=100,SA,/united-states/real-gross-private-domestic-investment-chain-type-quantity-index-index-2009-100-fed-data.html,3/25/2024 9:47:11 AM
/fred/snapshot/country/{country}?f=xml
<ArrayOfFredSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Gross national product (implicit price deflator)</Category>
<Country>United States</Country>
<Date>2022-01-01T00:00:00</Date>
<Frequency>Yearly</Frequency>
<Last>117.8850</Last>
<Previous>110.1300</Previous>
<PreviousDate>2021-01-01T00:00:00</PreviousDate>
<Start>1929-01-01T00:00:00</Start>
<URL>/united-states/gross-national-product-implicit-price-deflator-fed-data.html</URL>
<Unit>Index 2009=100</Unit>
<lastUpdate>2023-12-20T19:44:50.977</lastUpdate>
<popularity>5</popularity>
<symbol>A001RD3A086NBEA</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>SAAR</Adjustment>
<Category>Gross National Product (chain-type price index)</Category>
<Country>United States</Country>
<Date>2023-07-01T00:00:00</Date>
<Frequency>Quarterly</Frequency>
<Last>3.6000</Last>
<Previous>1.7000</Previous>
<PreviousDate>2023-04-01T00:00:00</PreviousDate>
<Start>1947-04-01T00:00:00</Start>
<URL>/united-states/gross-national-product-chain-type-price-index-percent-change-from-preceding-period-saar-fed-data.html</URL>
<Unit>% Chg. from Preceding Period</Unit>
<lastUpdate>2024-03-25T09:47:11.507</lastUpdate>
<popularity>3</popularity>
<symbol>A001RV1Q225SBEA</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>SA</Adjustment>
<Category>Real gross private domestic investment (chain-type quantity index)</Category>
<Country>United States</Country>
<Date>2023-10-01T00:00:00</Date>
<Frequency>Quarterly</Frequency>
<Last>119.1600</Last>
<Previous>118.6810</Previous>
<PreviousDate>2023-07-01T00:00:00</PreviousDate>
<Start>1947-01-01T00:00:00</Start>
<URL>/united-states/real-gross-private-domestic-investment-chain-type-quantity-index-index-2009-100-fed-data.html</URL>
<Unit>Index 2009=100</Unit>
<lastUpdate>2024-03-25T09:47:11.72</lastUpdate>
<popularity>1</popularity>
<symbol>A006RA3Q086SBEA</symbol>
</FredSnapshot>
</ArrayOfFredSnapshot>
By symbol
/fred/snapshot/symbol/{symbol}
Using Requests:
import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/fred/snapshot/symbol/ALLMARGATTN?c={api_key}'
data = requests.get(url).json()
print(data)
Or using our package:
te.getFedRSnaps(symbol = 'ALLMARGATTN')
Using Requests:
const axios = require('axios');
(async () => {
const api_key = 'YOUR_API_KEY'
const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/symbol/ALLMARGATTN?c=${api_key}`)
console.log(response.data)
})()
Or using our package:
data = te.getFred(symbol = 'ALLMARGATTN').then(function(data){
console.log(data)
});
Using Requests:
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/symbol/ALLMARGATTN?c=your_api_key"))
/fred/snapshot/symbol/{symbol}
symbol | Country | Category | Last | Date | Previous | PreviousDate | Frequency | popularity | Start | Unit | Adjustment | URL | lastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ALLMARGATTN | Tennessee | All Marginally Attached Workers for Tennessee | 29600.0000 | 10/1/2023 12:00:00 AM | 23900.0000 | 7/1/2023 12:00:00 AM | Quarterly | 1 | 10/1/2003 12:00:00 AM | “Persons, 4-Qtr. Moving Average” | NSA | /united-states/all-marginally-attached-workers-for-tennessee-fed-data.html | 3/25/2024 9:51:03 AM |
/fred/snapshot/symbol/{symbol}?f=json
[{"symbol":"ALLMARGATTN","Country":"Tennessee","Category":"All Marginally Attached Workers for Tennessee","Last":29600.0000,"Date":"2023-10-01T00:00:00","Previous":23900.0000,"PreviousDate":"2023-07-01T00:00:00","Frequency":"Quarterly","popularity":1,"Start":"2003-10-01T00:00:00","Unit":"Persons, 4-Qtr. Moving Average","Adjustment":"NSA","URL":"/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html","lastUpdate":"2024-03-25T09:51:03.9"}]
/fred/snapshot/symbol/{symbol}?f=csv
symbol,Country,Category,Last,Date,Previous,PreviousDate,Frequency,popularity,Start,Unit,Adjustment,URL,lastUpdate
ALLMARGATTN,Tennessee,All Marginally Attached Workers for Tennessee,29600.0000,10/1/2023 12:00:00 AM,23900.0000,7/1/2023 12:00:00 AM,Quarterly,1,10/1/2003 12:00:00 AM,"Persons, 4-Qtr. Moving Average",NSA,/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html,3/25/2024 9:51:03 AM
/fred/snapshot/symbol/{symbol}?f=xml
<ArrayOfFredSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>All Marginally Attached Workers for Tennessee</Category>
<Country>Tennessee</Country>
<Date>2023-10-01T00:00:00</Date>
<Frequency>Quarterly</Frequency>
<Last>29600.0000</Last>
<Previous>23900.0000</Previous>
<PreviousDate>2023-07-01T00:00:00</PreviousDate>
<Start>2003-10-01T00:00:00</Start>
<URL>/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html</URL>
<Unit>Persons, 4-Qtr. Moving Average</Unit>
<lastUpdate>2024-03-25T09:51:03.9</lastUpdate>
<popularity>1</popularity>
<symbol>ALLMARGATTN</symbol>
</FredSnapshot>
</ArrayOfFredSnapshot>
By state
Using Requests:
import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/fred/snapshot/state/tennessee?c={api_key}'
data = requests.get(url).json()
print(data)
Or using our package:
te.getFedRSnaps(state = 'tennessee')
Using Requests:
const axios = require('axios');
(async () => {
const api_key = 'YOUR_API_KEY'
const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/state/tennessee?c=${api_key}`)
console.log(response.data)
})()
Or using our package:
data = te.getFred(state = 'tennessee').then(function(data){
console.log(data)
});
Using Requests:
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/state/tennessee?c=your_api_key"))
symbol | Country | Category | Last | Date | Previous | PreviousDate | Frequency | popularity | Start | Unit | Adjustment | URL | lastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ALLMARGATTN | Tennessee | All Marginally Attached Workers for Tennessee | 29600.0000 | 10/1/2023 12:00:00 AM | 23900.0000 | 7/1/2023 12:00:00 AM | Quarterly | 1 | 10/1/2003 12:00:00 AM | “Persons, 4-Qtr. Moving Average” | NSA | /united-states/all-marginally-attached-workers-for-tennessee-fed-data.html | 3/25/2024 9:51:03 AM |
BRTN47M647NCEN | Tennessee | SNAP Benefits Recipients in Tennessee | 831118.0000 | 6/1/2022 12:00:00 AM | 874394.0000 | 6/1/2021 12:00:00 AM | Monthly | 1 | 1/1/1981 12:00:00 AM | Persons | NSA | /united-states/snap-benefits-recipients-in-tennessee-persons-fed-data.html | 3/20/2024 2:53:53 PM |
CIVLFTN | Tennessee | Civilian Labor Force for Tennessee | 3411200.0000 | 10/1/2023 12:00:00 AM | 3375300.0000 | 7/1/2023 12:00:00 AM | Quarterly | 1 | 10/1/2003 12:00:00 AM | “Persons, 4-Qtr. Moving Average” | NSA | /united-states/civilian-labor-force-for-tennessee-fed-data.html | 3/25/2024 9:42:23 AM |
/fred/snapshot/state/{state}?f=json
[{"symbol":"ALLMARGATTN","Country":"Tennessee","Category":"All Marginally Attached Workers for Tennessee","Last":29600.0000,"Date":"2023-10-01T00:00:00","Previous":23900.0000,"PreviousDate":"2023-07-01T00:00:00","Frequency":"Quarterly","popularity":1,"Start":"2003-10-01T00:00:00","Unit":"Persons, 4-Qtr. Moving Average","Adjustment":"NSA","URL":"/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html","lastUpdate":"2024-03-25T09:51:03.9"},{"symbol":"BRTN47M647NCEN","Country":"Tennessee","Category":"SNAP Benefits Recipients in Tennessee","Last":831118.0000,"Date":"2022-06-01T00:00:00","Previous":874394.0000,"PreviousDate":"2021-06-01T00:00:00","Frequency":"Monthly","popularity":1,"Start":"1981-01-01T00:00:00","Unit":"Persons","Adjustment":"NSA","URL":"/united-states/snap-benefits-recipients-in-tennessee-persons-fed-data.html","lastUpdate":"2024-03-20T14:53:53.55"},{"symbol":"CIVLFTN","Country":"Tennessee","Category":"Civilian Labor Force for Tennessee","Last":3411200.0000,"Date":"2023-10-01T00:00:00","Previous":3375300.0000,"PreviousDate":"2023-07-01T00:00:00","Frequency":"Quarterly","popularity":1,"Start":"2003-10-01T00:00:00","Unit":"Persons, 4-Qtr. Moving Average","Adjustment":"NSA","URL":"/united-states/civilian-labor-force-for-tennessee-fed-data.html","lastUpdate":"2024-03-25T09:42:23.187"}]
/fred/snapshot/state/{state}?f=csv
symbol,Country,Category,Last,Date,Previous,PreviousDate,Frequency,popularity,Start,Unit,Adjustment,URL,lastUpdate
ALLMARGATTN,Tennessee,All Marginally Attached Workers for Tennessee,29600.0000,10/1/2023 12:00:00 AM,23900.0000,7/1/2023 12:00:00 AM,Quarterly,1,10/1/2003 12:00:00 AM,"Persons, 4-Qtr. Moving Average",NSA,/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html,3/25/2024 9:51:03 AM
BRTN47M647NCEN,Tennessee,SNAP Benefits Recipients in Tennessee,831118.0000,6/1/2022 12:00:00 AM,874394.0000,6/1/2021 12:00:00 AM,Monthly,1,1/1/1981 12:00:00 AM,Persons,NSA,/united-states/snap-benefits-recipients-in-tennessee-persons-fed-data.html,3/20/2024 2:53:53 PM
CIVLFTN,Tennessee,Civilian Labor Force for Tennessee,3411200.0000,10/1/2023 12:00:00 AM,3375300.0000,7/1/2023 12:00:00 AM,Quarterly,1,10/1/2003 12:00:00 AM,"Persons, 4-Qtr. Moving Average",NSA,/united-states/civilian-labor-force-for-tennessee-fed-data.html,3/25/2024 9:42:23 AM
/fred/snapshot/state/{state}?f=xml
<ArrayOfFredSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>All Marginally Attached Workers for Tennessee</Category>
<Country>Tennessee</Country>
<Date>2023-10-01T00:00:00</Date>
<Frequency>Quarterly</Frequency>
<Last>29600.0000</Last>
<Previous>23900.0000</Previous>
<PreviousDate>2023-07-01T00:00:00</PreviousDate>
<Start>2003-10-01T00:00:00</Start>
<URL>/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html</URL>
<Unit>Persons, 4-Qtr. Moving Average</Unit>
<lastUpdate>2024-03-25T09:51:03.9</lastUpdate>
<popularity>1</popularity>
<symbol>ALLMARGATTN</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>SNAP Benefits Recipients in Tennessee</Category>
<Country>Tennessee</Country>
<Date>2022-06-01T00:00:00</Date>
<Frequency>Monthly</Frequency>
<Last>831118.0000</Last>
<Previous>874394.0000</Previous>
<PreviousDate>2021-06-01T00:00:00</PreviousDate>
<Start>1981-01-01T00:00:00</Start>
<URL>/united-states/snap-benefits-recipients-in-tennessee-persons-fed-data.html</URL>
<Unit>Persons</Unit>
<lastUpdate>2024-03-20T14:53:53.55</lastUpdate>
<popularity>1</popularity>
<symbol>BRTN47M647NCEN</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Civilian Labor Force for Tennessee</Category>
<Country>Tennessee</Country>
<Date>2023-10-01T00:00:00</Date>
<Frequency>Quarterly</Frequency>
<Last>3411200.0000</Last>
<Previous>3375300.0000</Previous>
<PreviousDate>2023-07-01T00:00:00</PreviousDate>
<Start>2003-10-01T00:00:00</Start>
<URL>/united-states/civilian-labor-force-for-tennessee-fed-data.html</URL>
<Unit>Persons, 4-Qtr. Moving Average</Unit>
<lastUpdate>2024-03-25T09:42:23.187</lastUpdate>
<popularity>1</popularity>
<symbol>CIVLFTN</symbol>
</FredSnapshot>
</ArrayOfFredSnapshot>
By counties of a state
Using Requests:
import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/fred/snapshot/county/arkansas?c={api_key}'
data = requests.get(url).json()
print(data)
Or using our package:
te.getFedRCounty(state='arkansas')
Using Requests:
const axios = require('axios');
(async () => {
const api_key = 'YOUR_API_KEY'
const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/county/arkansas?c=${api_key}`)
console.log(response.data)
})()
Or using our package:
data = te.getFred(county = 'arkansas').then(function(data){
console.log(data)
});
Using Requests:
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/county/arkansas?c=your_api_key"))
symbol | Country | Category | Last | Date | Previous | PreviousDate | Frequency | popularity | Start | Unit | Adjustment | URL | lastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2020RATIO005001 | “Arkansas County, AR” | “Income Inequality in Arkansas County, AR | 14.7902 | 1/1/2022 12:00:00 AM | 15.7903 | 1/1/2021 12:00:00 AM | Yearly | 1 | 1/1/2010 12:00:00 AM | Ratio | NSA | /united-states/income-inequality-in-arkansas-county-ar-fed-data.html | 3/25/2024 1:16:01 PM |
2020RATIO005003 | “Ashley County, AR” | “Income Inequality in Ashley County, AR” | 19.6104 | 1/1/2022 12:00:00 AM | 18.2389 | 1/1/2021 12:00:00 AM | Yearly | 1 | 1/1/2010 12:00:00 AM | Ratio | NSA | /united-states/income-inequality-in-ashley-county-ar-fed-data.html | 3/25/2024 1:16:02 PM |
2020RATIO005005 | “Baxter County, AR” | “Income Inequality in Baxter County, AR” | 11.8561 | 1/1/2022 12:00:00 AM | 12.6058 | 1/1/2021 12:00:00 AM | Yearly | 1 | 1/1/2010 12:00:00 AM | Ratio | NSA | /united-states/income-inequality-in-baxter-county-ar-fed-data.html | 3/25/2024 1:16:02 PM |
/fred/snapshot/county/{state}?f=json
[{"symbol":"2020RATIO005001","Country":"Arkansas County, AR","Category":"Income Inequality in Arkansas County, AR","Last":14.7902,"Date":"2022-01-01T00:00:00","Previous":15.7903,"PreviousDate":"2021-01-01T00:00:00","Frequency":"Yearly","popularity":1,"Start":"2010-01-01T00:00:00","Unit":"Ratio","Adjustment":"NSA","URL":"/united-states/income-inequality-in-arkansas-county-ar-fed-data.html","lastUpdate":"2024-03-25T13:16:01.83"},{"symbol":"2020RATIO005003","Country":"Ashley County, AR","Category":"Income Inequality in Ashley County, AR","Last":19.6104,"Date":"2022-01-01T00:00:00","Previous":18.2389,"PreviousDate":"2021-01-01T00:00:00","Frequency":"Yearly","popularity":1,"Start":"2010-01-01T00:00:00","Unit":"Ratio","Adjustment":"NSA","URL":"/united-states/income-inequality-in-ashley-county-ar-fed-data.html","lastUpdate":"2024-03-25T13:16:02.247"},{"symbol":"2020RATIO005005","Country":"Baxter County, AR","Category":"Income Inequality in Baxter County, AR","Last":11.8561,"Date":"2022-01-01T00:00:00","Previous":12.6058,"PreviousDate":"2021-01-01T00:00:00","Frequency":"Yearly","popularity":1,"Start":"2010-01-01T00:00:00","Unit":"Ratio","Adjustment":"NSA","URL":"/united-states/income-inequality-in-baxter-county-ar-fed-data.html","lastUpdate":"2024-03-25T13:16:02.667"}]
/fred/snapshot/county/{state}?f=csv
symbol,Country,Category,Last,Date,Previous,PreviousDate,Frequency,popularity,Start,Unit,Adjustment,URL,lastUpdate
2020RATIO005001,"Arkansas County, AR","Income Inequality in Arkansas County, AR",14.7902,1/1/2022 12:00:00 AM,15.7903,1/1/2021 12:00:00 AM,Yearly,1,1/1/2010 12:00:00 AM,Ratio,NSA,/united-states/income-inequality-in-arkansas-county-ar-fed-data.html,3/25/2024 1:16:01 PM
2020RATIO005003,"Ashley County, AR","Income Inequality in Ashley County, AR",19.6104,1/1/2022 12:00:00 AM,18.2389,1/1/2021 12:00:00 AM,Yearly,1,1/1/2010 12:00:00 AM,Ratio,NSA,/united-states/income-inequality-in-ashley-county-ar-fed-data.html,3/25/2024 1:16:02 PM
2020RATIO005005,"Baxter County, AR","Income Inequality in Baxter County, AR",11.8561,1/1/2022 12:00:00 AM,12.6058,1/1/2021 12:00:00 AM,Yearly,1,1/1/2010 12:00:00 AM,Ratio,NSA,/united-states/income-inequality-in-baxter-county-ar-fed-data.html,3/25/2024 1:16:02 PM
/fred/snapshot/county/{state}?f=xml
<ArrayOfFredSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Income Inequality in Arkansas County, AR</Category>
<Country>Arkansas County, AR</Country>
<Date>2022-01-01T00:00:00</Date>
<Frequency>Yearly</Frequency>
<Last>14.7902</Last>
<Previous>15.7903</Previous>
<PreviousDate>2021-01-01T00:00:00</PreviousDate>
<Start>2010-01-01T00:00:00</Start>
<URL>/united-states/income-inequality-in-arkansas-county-ar-fed-data.html</URL>
<Unit>Ratio</Unit>
<lastUpdate>2024-03-25T13:16:01.83</lastUpdate>
<popularity>1</popularity>
<symbol>2020RATIO005001</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Income Inequality in Ashley County, AR</Category>
<Country>Ashley County, AR</Country>
<Date>2022-01-01T00:00:00</Date>
<Frequency>Yearly</Frequency>
<Last>19.6104</Last>
<Previous>18.2389</Previous>
<PreviousDate>2021-01-01T00:00:00</PreviousDate>
<Start>2010-01-01T00:00:00</Start>
<URL>/united-states/income-inequality-in-ashley-county-ar-fed-data.html</URL>
<Unit>Ratio</Unit>
<lastUpdate>2024-03-25T13:16:02.247</lastUpdate>
<popularity>1</popularity>
<symbol>2020RATIO005003</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Income Inequality in Baxter County, AR</Category>
<Country>Baxter County, AR</Country>
<Date>2022-01-01T00:00:00</Date>
<Frequency>Yearly</Frequency>
<Last>11.8561</Last>
<Previous>12.6058</Previous>
<PreviousDate>2021-01-01T00:00:00</PreviousDate>
<Start>2010-01-01T00:00:00</Start>
<URL>/united-states/income-inequality-in-baxter-county-ar-fed-data.html</URL>
<Unit>Ratio</Unit>
<lastUpdate>2024-03-25T13:16:02.667</lastUpdate>
<popularity>1</popularity>
<symbol>2020RATIO005005</symbol>
</FredSnapshot>
</ArrayOfFredSnapshot>
By county
Using Requests:
import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/fred/snapshot/county/Pike%20County,%20AR?c={api_key}'
data = requests.get(url).json()
print(data)
Or using our package:
te.getFedRCounty(county='Pike County, AR')
Using Requests:
const axios = require('axios');
(async () => {
const api_key = 'YOUR_API_KEY'
const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/county/Pike%20County,%20AR?c=${api_key}`)
console.log(response.data)
})()
Or using our package:
data = te.getFred(county = 'Pike County, AR').then(function(data){
console.log(data)
});
Using Requests:
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/county/Pike%20County,%20AR?c=your_api_key"))
/fred/snapshot/county/{county}
symbol | Country | Category | Last | Date | Previous | PreviousDate | Frequency | popularity | Start | Unit | Adjustment | URL | lastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2020RATIO005109 | “Pike County, AR” | “Income Inequality in Pike County, AR” | 17.6161 | 1/1/2022 12:00:00 AM | 14.4414 | 1/1/2021 12:00:00 AM | Yearly | 1 | 1/1/2010 12:00:00 AM | Ratio | NSA | /united-states/income-inequality-in-pike-county-ar-fed-data.html | 3/26/2024 12:01:06 PM |
ARPILFN | “Pike County, AR” | “Civilian Labor Force in Pike County, AR” | 3957.0000 | 1/1/2024 12:00:00 AM | 3897.0000 | 12/1/2023 12:00:00 AM | Monthly | 1 | 1/1/1990 12:00:00 AM | Persons | NSA | /united-states/civilian-labor-force-in-pike-county-ar-thous-of-persons-m-nsa-fed-data.html | 3/20/2024 1:51:42 PM |
ARPIPOP | “Pike County, AR” | “Resident Population in Pike County, AR” | 10.2080 | 1/1/2023 12:00:00 AM | 10.1790 | 1/1/2022 12:00:00 AM | Yearly | 1 | 1/1/1970 12:00:00 AM | Thous. of Persons | NSA | /united-states/resident-population-in-pike-county-ar-thous-of-persons-a-na-fed-data.html | 3/26/2024 9:37:55 AM |
/fred/snapshot/county/{county}?f=json
[{"symbol":"2020RATIO005109","Country":"Pike County, AR","Category":"Income Inequality in Pike County, AR","Last":17.6161,"Date":"2022-01-01T00:00:00","Previous":14.4414,"PreviousDate":"2021-01-01T00:00:00","Frequency":"Yearly","popularity":1,"Start":"2010-01-01T00:00:00","Unit":"Ratio","Adjustment":"NSA","URL":"/united-states/income-inequality-in-pike-county-ar-fed-data.html","lastUpdate":"2024-03-26T12:01:06.383"},{"symbol":"ARPILFN","Country":"Pike County, AR","Category":"Civilian Labor Force in Pike County, AR","Last":3957.0000,"Date":"2024-01-01T00:00:00","Previous":3897.0000,"PreviousDate":"2023-12-01T00:00:00","Frequency":"Monthly","popularity":1,"Start":"1990-01-01T00:00:00","Unit":"Persons","Adjustment":"NSA","URL":"/united-states/civilian-labor-force-in-pike-county-ar-thous-of-persons-m-nsa-fed-data.html","lastUpdate":"2024-03-20T13:51:42.757"},{"symbol":"ARPIPOP","Country":"Pike County, AR","Category":"Resident Population in Pike County, AR","Last":10.2080,"Date":"2023-01-01T00:00:00","Previous":10.1790,"PreviousDate":"2022-01-01T00:00:00","Frequency":"Yearly","popularity":1,"Start":"1970-01-01T00:00:00","Unit":"Thous. of Persons","Adjustment":"NSA","URL":"/united-states/resident-population-in-pike-county-ar-thous-of-persons-a-na-fed-data.html","lastUpdate":"2024-03-26T09:37:55.96"}]
/fred/snapshot/county/{county}?f=csv
symbol,Country,Category,Last,Date,Previous,PreviousDate,Frequency,popularity,Start,Unit,Adjustment,URL,lastUpdate
2020RATIO005109,"Pike County, AR","Income Inequality in Pike County, AR",17.6161,1/1/2022 12:00:00 AM,14.4414,1/1/2021 12:00:00 AM,Yearly,1,1/1/2010 12:00:00 AM,Ratio,NSA,/united-states/income-inequality-in-pike-county-ar-fed-data.html,3/26/2024 12:01:06 PM
ARPILFN,"Pike County, AR","Civilian Labor Force in Pike County, AR",3957.0000,1/1/2024 12:00:00 AM,3897.0000,12/1/2023 12:00:00 AM,Monthly,1,1/1/1990 12:00:00 AM,Persons,NSA,/united-states/civilian-labor-force-in-pike-county-ar-thous-of-persons-m-nsa-fed-data.html,3/20/2024 1:51:42 PM
ARPIPOP,"Pike County, AR","Resident Population in Pike County, AR",10.2080,1/1/2023 12:00:00 AM,10.1790,1/1/2022 12:00:00 AM,Yearly,1,1/1/1970 12:00:00 AM,Thous. of Persons,NSA,/united-states/resident-population-in-pike-county-ar-thous-of-persons-a-na-fed-data.html,3/26/2024 9:37:55 AM
/fred/snapshot/county/{county}?f=xml
<ArrayOfFredSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Income Inequality in Pike County, AR</Category>
<Country>Pike County, AR</Country>
<Date>2022-01-01T00:00:00</Date>
<Frequency>Yearly</Frequency>
<Last>17.6161</Last>
<Previous>14.4414</Previous>
<PreviousDate>2021-01-01T00:00:00</PreviousDate>
<Start>2010-01-01T00:00:00</Start>
<URL>/united-states/income-inequality-in-pike-county-ar-fed-data.html</URL>
<Unit>Ratio</Unit>
<lastUpdate>2024-03-26T12:01:06.383</lastUpdate>
<popularity>1</popularity>
<symbol>2020RATIO005109</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Civilian Labor Force in Pike County, AR</Category>
<Country>Pike County, AR</Country>
<Date>2024-01-01T00:00:00</Date>
<Frequency>Monthly</Frequency>
<Last>3957.0000</Last>
<Previous>3897.0000</Previous>
<PreviousDate>2023-12-01T00:00:00</PreviousDate>
<Start>1990-01-01T00:00:00</Start>
<URL>/united-states/civilian-labor-force-in-pike-county-ar-thous-of-persons-m-nsa-fed-data.html</URL>
<Unit>Persons</Unit>
<lastUpdate>2024-03-20T13:51:42.757</lastUpdate>
<popularity>1</popularity>
<symbol>ARPILFN</symbol>
</FredSnapshot>
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>Resident Population in Pike County, AR</Category>
<Country>Pike County, AR</Country>
<Date>2023-01-01T00:00:00</Date>
<Frequency>Yearly</Frequency>
<Last>10.2080</Last>
<Previous>10.1790</Previous>
<PreviousDate>2022-01-01T00:00:00</PreviousDate>
<Start>1970-01-01T00:00:00</Start>
<URL>/united-states/resident-population-in-pike-county-ar-thous-of-persons-a-na-fed-data.html</URL>
<Unit>Thous. of Persons</Unit>
<lastUpdate>2024-03-26T09:37:55.96</lastUpdate>
<popularity>1</popularity>
<symbol>ARPIPOP</symbol>
</FredSnapshot>
</ArrayOfFredSnapshot>
By URL
Using Requests:
import requests
api_key = 'YOUR_API_KEY'
url = f'https://api.tradingeconomics.com/fred/snapshot/url?url=/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html&c={api_key}'
data = requests.get(url).json()
print(data)
Or using our package:
te.getFedRSnaps(url = '/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html')
Using Requests:
const axios = require('axios');
(async () => {
const api_key = 'YOUR_API_KEY'
const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/url?url=/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html&c=${api_key}`)
console.log(response.data)
})()
Or using our package:
data = te.getFred(URL = '/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html').then(function(data){
console.log(data)
});
Using Requests:
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/url?url=/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html&c=your_api_key"))
symbol | Country | Category | Last | Date | Previous | PreviousDate | Frequency | popularity | Start | Unit | Adjustment | URL | lastUpdate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ALLMARGATTN | Tennessee | All Marginally Attached Workers for Tennessee | 29600.0000 | 10/1/2023 12:00:00 AM | 23900.0000 | 7/1/2023 12:00:00 AM | Quarterly | 1 | 10/1/2003 12:00:00 AM | “Persons, 4-Qtr. Moving Average” | NSA | /united-states/all-marginally-attached-workers-for-tennessee-fed-data.html | 3/25/2024 9:51:03 AM |
/fred/snapshot/url?url={url}&f=json
[{"symbol":"ALLMARGATTN","Country":"Tennessee","Category":"All Marginally Attached Workers for Tennessee","Last":29600.0000,"Date":"2023-10-01T00:00:00","Previous":23900.0000,"PreviousDate":"2023-07-01T00:00:00","Frequency":"Quarterly","popularity":1,"Start":"2003-10-01T00:00:00","Unit":"Persons, 4-Qtr. Moving Average","Adjustment":"NSA","URL":"/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html","lastUpdate":"2024-03-25T09:51:03.9"}]
/fred/snapshot/url?url={url}&f=csv
symbol,Country,Category,Last,Date,Previous,PreviousDate,Frequency,popularity,Start,Unit,Adjustment,URL,lastUpdate
ALLMARGATTN,Tennessee,All Marginally Attached Workers for Tennessee,29600.0000,10/1/2023 12:00:00 AM,23900.0000,7/1/2023 12:00:00 AM,Quarterly,1,10/1/2003 12:00:00 AM,"Persons, 4-Qtr. Moving Average",NSA,/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html,3/25/2024 9:51:03 AM
/fred/snapshot/url?url={url}&f=xml
<ArrayOfFredSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
<FredSnapshot>
<Adjustment>NSA</Adjustment>
<Category>All Marginally Attached Workers for Tennessee</Category>
<Country>Tennessee</Country>
<Date>2023-10-01T00:00:00</Date>
<Frequency>Quarterly</Frequency>
<Last>29600.0000</Last>
<Previous>23900.0000</Previous>
<PreviousDate>2023-07-01T00:00:00</PreviousDate>
<Start>2003-10-01T00:00:00</Start>
<URL>/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html</URL>
<Unit>Persons, 4-Qtr. Moving Average</Unit>
<lastUpdate>2024-03-25T09:51:03.9</lastUpdate>
<popularity>1</popularity>
<symbol>ALLMARGATTN</symbol>
</FredSnapshot>
</ArrayOfFredSnapshot>
Pagination
Get a list of indicators of a country by page (‘pages’ parameter starts at 0. Pagination is only used on endpoints where it is not possible to use start and end dates and exceeds the limits of rows.)
/fred/snapshot/country/{country}/p={page number}
Get the number of pages of data for a specific country
/fred/snapshot/country/{country}/info=pagination
Note: Pagination is only available for the United States (max 10000 rows per page)
Response fields
Field | Type | Description | Example |
---|---|---|---|
Symbol | string | Unique symbol used by Trading Economics | “ALLMARGATTN” |
Country | string | Name of country, state or county | “Tennessee” |
Category | string | Indicator category name | “All Marginally Attached Workers for Tennessee” |
Last | number | Latest released value | 27500.0000 |
Date | string | Release time and date in UTC | “2022-07-01T00:00:00” |
Previous | number | Value for the previous period after the revision (if revision is applicable) | 25000.0000 |
PreviousDate | string | Release time and date in UTC of the previous value | “2022-04-01T00:00:00” |
Frequency | string | Frequency of the indicator | “Quarterly” |
Popularity | string | Popularity ranking | 1 |
Start | string | Indicator start date | “2003-10-01T00:00:00” |
Unit | string | Unit of the value | “Persons, 4-Qtr. Moving Average” |
Adjustment | string | Adjustment | “NSA” |
URL | string | Hyperlink at Trading Economics | “/united-states/income-inequality-in-pike-county-ar-fed-data.html” |
LastUpdate | string | Time when new data was inserted or changed | “2022-12-11T15:05:06.19” |