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}

symbolCountryCategoryLastDatePreviousPreviousDateFrequencypopularityStartUnitAdjustmentURLlastUpdate
A001RD3A086NBEAUnited StatesGross national product (implicit price deflator)117.885001/1/2022 12:00:00 AM110.130001/1/2021 12:00:00 AMYearly51/1/1929 12:00:00 AMIndex 2009=100NSA/united-states/gross-national-product-implicit-price-deflator-fed-data.html12/20/2023 7:44:50 PM
A001RV1Q225SBEAUnited StatesGross National Product (chain-type price index)3.600007/1/2023 12:00:00 AM1.700004/1/2023 12:00:00 AMQuarterly34/1/1947 12:00:00 AM% Chg. from Preceding PeriodSAAR/united-states/gross-national-product-chain-type-price-index-percent-change-from-preceding-period-saar-fed-data.html3/25/2024 9:47:11 AM
A006RA3Q086SBEAUnited StatesReal gross private domestic investment (chain-type quantity index)119.1600010/1/2023 12:00:00 AM118.681007/1/2023 12:00:00 AMQuarterly11/1/1947 12:00:00 AMIndex 2009=100SA/united-states/real-gross-private-domestic-investment-chain-type-quantity-index-index-2009-100-fed-data.html3/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.88500,"Date":"2022-01-01T00:00:00","Previous":110.13000,"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.60000,"Date":"2023-07-01T00:00:00","Previous":1.70000,"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.16000,"Date":"2023-10-01T00:00:00","Previous":118.68100,"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.88500,1/1/2022 12:00:00 AM,110.13000,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.60000,7/1/2023 12:00:00 AM,1.70000,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.16000,10/1/2023 12:00:00 AM,118.68100,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.88500</Last>
<Previous>110.13000</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.60000</Last>
<Previous>1.70000</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.16000</Last>
<Previous>118.68100</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}

symbolCountryCategoryLastDatePreviousPreviousDateFrequencypopularityStartUnitAdjustmentURLlastUpdate
ALLMARGATTNTennesseeAll Marginally Attached Workers for Tennessee29600.0000010/1/2023 12:00:00 AM23900.000007/1/2023 12:00:00 AMQuarterly110/1/2003 12:00:00 AM“Persons, 4-Qtr. Moving Average”NSA/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html3/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.00000,"Date":"2023-10-01T00:00:00","Previous":23900.00000,"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.00000,10/1/2023 12:00:00 AM,23900.00000,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.00000</Last>
<Previous>23900.00000</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"))

/fred/snapshot/state/{state}

symbolCountryCategoryLastDatePreviousPreviousDateFrequencypopularityStartUnitAdjustmentURLlastUpdate
ALLMARGATTNTennesseeAll Marginally Attached Workers for Tennessee29600.0000010/1/2023 12:00:00 AM23900.000007/1/2023 12:00:00 AMQuarterly110/1/2003 12:00:00 AM“Persons, 4-Qtr. Moving Average”NSA/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html3/25/2024 9:51:03 AM
BRTN47M647NCENTennesseeSNAP Benefits Recipients in Tennessee831118.000006/1/2022 12:00:00 AM874394.000006/1/2021 12:00:00 AMMonthly11/1/1981 12:00:00 AMPersonsNSA/united-states/snap-benefits-recipients-in-tennessee-persons-fed-data.html3/20/2024 2:53:53 PM
CIVLFTNTennesseeCivilian Labor Force for Tennessee3411200.0000010/1/2023 12:00:00 AM3375300.000007/1/2023 12:00:00 AMQuarterly110/1/2003 12:00:00 AM“Persons, 4-Qtr. Moving Average”NSA/united-states/civilian-labor-force-for-tennessee-fed-data.html3/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.00000,"Date":"2023-10-01T00:00:00","Previous":23900.00000,"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.00000,"Date":"2022-06-01T00:00:00","Previous":874394.00000,"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.00000,"Date":"2023-10-01T00:00:00","Previous":3375300.00000,"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.00000,10/1/2023 12:00:00 AM,23900.00000,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.00000,6/1/2022 12:00:00 AM,874394.00000,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.00000,10/1/2023 12:00:00 AM,3375300.00000,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.00000</Last>
<Previous>23900.00000</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.00000</Last>
<Previous>874394.00000</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.00000</Last>
<Previous>3375300.00000</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"))

/fred/snapshot/county/{state}

symbolCountryCategoryLastDatePreviousPreviousDateFrequencypopularityStartUnitAdjustmentURLlastUpdate
2020RATIO005001“Arkansas County, AR”“Income Inequality in Arkansas County, AR14.790261/1/2022 12:00:00 AM15.790371/1/2021 12:00:00 AMYearly11/1/2010 12:00:00 AMRatioNSA/united-states/income-inequality-in-arkansas-county-ar-fed-data.html3/25/2024 1:16:01 PM
2020RATIO005003“Ashley County, AR”“Income Inequality in Ashley County, AR”19.610481/1/2022 12:00:00 AM18.238971/1/2021 12:00:00 AMYearly11/1/2010 12:00:00 AMRatioNSA/united-states/income-inequality-in-ashley-county-ar-fed-data.html3/25/2024 1:16:02 PM
2020RATIO005005“Baxter County, AR”“Income Inequality in Baxter County, AR”11.856161/1/2022 12:00:00 AM12.605841/1/2021 12:00:00 AMYearly11/1/2010 12:00:00 AMRatioNSA/united-states/income-inequality-in-baxter-county-ar-fed-data.html3/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.79026,"Date":"2022-01-01T00:00:00","Previous":15.79037,"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.61048,"Date":"2022-01-01T00:00:00","Previous":18.23897,"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.85616,"Date":"2022-01-01T00:00:00","Previous":12.60584,"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.79026,1/1/2022 12:00:00 AM,15.79037,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.61048,1/1/2022 12:00:00 AM,18.23897,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.85616,1/1/2022 12:00:00 AM,12.60584,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.79026</Last>
<Previous>15.79037</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.61048</Last>
<Previous>18.23897</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.85616</Last>
<Previous>12.60584</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}

symbolCountryCategoryLastDatePreviousPreviousDateFrequencypopularityStartUnitAdjustmentURLlastUpdate
2020RATIO005109“Pike County, AR”“Income Inequality in Pike County, AR”17.616121/1/2022 12:00:00 AM14.441431/1/2021 12:00:00 AMYearly11/1/2010 12:00:00 AMRatioNSA/united-states/income-inequality-in-pike-county-ar-fed-data.html3/26/2024 12:01:06 PM
ARPILFN“Pike County, AR”“Civilian Labor Force in Pike County, AR”3957.000001/1/2024 12:00:00 AM3897.0000012/1/2023 12:00:00 AMMonthly11/1/1990 12:00:00 AMPersonsNSA/united-states/civilian-labor-force-in-pike-county-ar-thous-of-persons-m-nsa-fed-data.html3/20/2024 1:51:42 PM
ARPIPOP“Pike County, AR”“Resident Population in Pike County, AR”10.208001/1/2023 12:00:00 AM10.179001/1/2022 12:00:00 AMYearly11/1/1970 12:00:00 AMThous. of PersonsNSA/united-states/resident-population-in-pike-county-ar-thous-of-persons-a-na-fed-data.html3/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.61612,"Date":"2022-01-01T00:00:00","Previous":14.44143,"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.00000,"Date":"2024-01-01T00:00:00","Previous":3897.00000,"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.20800,"Date":"2023-01-01T00:00:00","Previous":10.17900,"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.61612,1/1/2022 12:00:00 AM,14.44143,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.00000,1/1/2024 12:00:00 AM,3897.00000,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.20800,1/1/2023 12:00:00 AM,10.17900,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.61612</Last>
<Previous>14.44143</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.00000</Last>
<Previous>3897.00000</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.20800</Last>
<Previous>10.17900</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"))

/fred/snapshot/url?&url={url}

symbolCountryCategoryLastDatePreviousPreviousDateFrequencypopularityStartUnitAdjustmentURLlastUpdate
ALLMARGATTNTennesseeAll Marginally Attached Workers for Tennessee29600.0000010/1/2023 12:00:00 AM23900.000007/1/2023 12:00:00 AMQuarterly110/1/2003 12:00:00 AM“Persons, 4-Qtr. Moving Average”NSA/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html3/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.00000,"Date":"2023-10-01T00:00:00","Previous":23900.00000,"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.00000,10/1/2023 12:00:00 AM,23900.00000,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.00000</Last>
<Previous>23900.00000</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

FieldTypeDescriptionExample
SymbolstringUnique symbol used by Trading Economics“ALLMARGATTN”
CountrystringName of country, state or county“Tennessee”
CategorystringIndicator category name“All Marginally Attached Workers for Tennessee”
LastnumberLatest released value27500.00000
DatestringRelease time and date in UTC“2022-07-01T00:00:00”
PreviousnumberValue for the previous period after the revision (if revision is applicable)25000.00000
PreviousDatestringRelease time and date in UTC of the previous value“2022-04-01T00:00:00”
FrequencystringFrequency of the indicator“Quarterly”
PopularitystringPopularity ranking1
StartstringIndicator start date“2003-10-01T00:00:00”
UnitstringUnit of the value“Persons, 4-Qtr. Moving Average”
AdjustmentstringAdjustment“NSA”
URLstringHyperlink at Trading Economics“/united-states/income-inequality-in-pike-county-ar-fed-data.html”
LastUpdatestringTime when new data was inserted or changed“2022-12-11T15:05:06.19”