# Federal Reserve Snapshot of Latest Values

> Use the following API endpoints to obtain Federal Reserve snapshot data.

Source: https://docs.tradingeconomics.com/federal_reserve/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

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/snapshot/country/united%20states?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.getFedRSnaps(country = 'united states')
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/country/united%20states?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getFred(country = 'united states').then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
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.

**JSON**

```text
https://api.tradingeconomics.com/fred/snapshot/country/{country}?c={your_api_key}&f=json
```

```json
[
  {
    "symbol": "A001RD3A086NBEA",
    "Country": "United States",
    "Category": "Gross national product (implicit price deflator)",
    "Last": 117.885,
    "Date": "2022-01-01T00:00:00",
    "Previous": 110.13,
    "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.6,
    "Date": "2023-07-01T00:00:00",
    "Previous": 1.7,
    "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.16,
    "Date": "2023-10-01T00:00:00",
    "Previous": 118.681,
    "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"
  }
]
```

**CSV**

```text
https://api.tradingeconomics.com/fred/snapshot/country/{country}?c={your_api_key}&f=csv
```

```bash
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
```

**HTML**

```text
https://api.tradingeconomics.com/fred/snapshot/country/{country}?c={your_api_key}
```

| 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 |

## By symbol

```text
https://api.tradingeconomics.com/fred/snapshot/symbol/{symbol}?c={your_api_key}
```

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/snapshot/symbol/ALLMARGATTN?c={your_api_key}'
data = requests.get(url).json()
print(data)
```

*Or using our package:*
```python
te.getFedRSnaps(symbol = 'ALLMARGATTN')
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/symbol/ALLMARGATTN?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getFred(symbol = 'ALLMARGATTN').then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/symbol/ALLMARGATTN?c=your_api_key"))
```

**JSON**

```text
https://api.tradingeconomics.com/fred/snapshot/symbol/{symbol}?c={your_api_key}&f=json
```

```json
[
  {
    "symbol": "ALLMARGATTN",
    "Country": "Tennessee",
    "Category": "All Marginally Attached Workers for Tennessee",
    "Last": 29600.0,
    "Date": "2023-10-01T00:00:00",
    "Previous": 23900.0,
    "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"
  }
]
```

**CSV**

```text
https://api.tradingeconomics.com/fred/snapshot/symbol/{symbol}?c={your_api_key}&f=csv
```

```bash
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
```

**HTML**

```text
https://api.tradingeconomics.com/fred/snapshot/symbol/{symbol}?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 |

## By state

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/snapshot/state/tennessee?c={your_api_key}'
data = requests.get(url).json()
print(data)
```

*Or using our package:*
```python
te.getFedRSnaps(state = 'tennessee')
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/state/tennessee?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getFred(state = 'tennessee').then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/state/tennessee?c=your_api_key"))
```

**JSON**

```text
https://api.tradingeconomics.com/fred/snapshot/state/{state}?c={your_api_key}&f=json
```

```json
[
  {
    "symbol": "ALLMARGATTN",
    "Country": "Tennessee",
    "Category": "All Marginally Attached Workers for Tennessee",
    "Last": 29600.0,
    "Date": "2023-10-01T00:00:00",
    "Previous": 23900.0,
    "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.0,
    "Date": "2022-06-01T00:00:00",
    "Previous": 874394.0,
    "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.0,
    "Date": "2023-10-01T00:00:00",
    "Previous": 3375300.0,
    "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"
  }
]
```

**CSV**

```text
https://api.tradingeconomics.com/fred/snapshot/state/{state}?c={your_api_key}&f=csv
```

```bash
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
```

**HTML**

```text
https://api.tradingeconomics.com/fred/snapshot/state/{state}?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 |

## By counties of a state

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/snapshot/county/arkansas?c={your_api_key}'
data = requests.get(url).json()
print(data)
```

*Or using our package:*
```python
te.getFedRCounty(state='arkansas') 
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/county/arkansas?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getFred(county = 'arkansas').then(function(data){
    console.log(data)        
});
```

**C#**
*Using Requests:*
```c#
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/county/arkansas?c=your_api_key"))
```

**JSON**

```text
https://api.tradingeconomics.com/fred/snapshot/county/{state}?c={your_api_key}&f=json
```

```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"
  }
]
```

**CSV**

```text
https://api.tradingeconomics.com/fred/snapshot/county/{state}?c={your_api_key}&f=csv
```

```bash
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
```

**HTML**

```text
https://api.tradingeconomics.com/fred/snapshot/county/{state}?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 |

## By county

**PYTHON**
*Using Requests:*
```python
import requests
your_api_key = 'your_api_key'
url = f'https://api.tradingeconomics.com/fred/snapshot/county/Pike%20County,%20AR?c={your_api_key}'
data = requests.get(url).json()
print(data)
```

*Or using our package:*
```python
te.getFedRCounty(county='Pike County, AR')
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_api_key = 'your_api_key'
    const response = await axios.get(`https://api.tradingeconomics.com/fred/snapshot/county/Pike%20County,%20AR?c=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getFred(county = 'Pike County, AR').then(function(data){
  console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
using (var request = new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/fred/snapshot/county/Pike%20County,%20AR?c=your_api_key"))
```

**JSON**

```text
https://api.tradingeconomics.com/fred/snapshot/county/{county}?c={your_api_key}&f=json
```

```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.0,
    "Date": "2024-01-01T00:00:00",
    "Previous": 3897.0,
    "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.208,
    "Date": "2023-01-01T00:00:00",
    "Previous": 10.179,
    "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"
  }
]
```

**CSV**

```text
https://api.tradingeconomics.com/fred/snapshot/county/{county}?c={your_api_key}&f=csv
```

```bash
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
```

**HTML**

```text
https://api.tradingeconomics.com/fred/snapshot/county/{county}?c={your_api_key}
```

| 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 |

## By URL

**PYTHON**
*Using Requests:*
```python
import requests
your_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={your_api_key}'
data = requests.get(url).json()
print(data)
```

*Or using our package:*
```python
te.getFedRSnaps(url = '/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html')
```

**JS**
*Using Requests:*
```js
const axios = require('axios');
(async () => {
    const your_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=${your_api_key}`)
    console.log(response.data)
})()
```
*Or using our package:*
```javascript
data = te.getFred(URL = '/united-states/all-marginally-attached-workers-for-tennessee-fed-data.html').then(function(data){
    console.log(data)     
});
```

**C#**
*Using Requests:*
```c#
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"))
```

**JSON**

```text
https://api.tradingeconomics.com/fred/snapshot/url?c={your_api_key}&url={url}&f=json
```

```json
[
  {
    "symbol": "ALLMARGATTN",
    "Country": "Tennessee",
    "Category": "All Marginally Attached Workers for Tennessee",
    "Last": 29600.0,
    "Date": "2023-10-01T00:00:00",
    "Previous": 23900.0,
    "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"
  }
]
```

**CSV**

```text
https://api.tradingeconomics.com/fred/snapshot/url?c={your_api_key}&url={url}&f=csv
```

```bash
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
```

**HTML**

```text
https://api.tradingeconomics.com/fred/snapshot/url?c={your_api_key}&url={url}
```

| 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 |

## 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.)

```text
https://api.tradingeconomics.com/fred/snapshot/country/{country}/{page number}?c={your_api_key}
```

Get the number of pages of data for a specific country

```text
https://api.tradingeconomics.com/fred/snapshot/country/{country}?c={your_api_key}&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 the country, state, or county where the indicator is measured                | "Tennessee"                                                        |
| Category     | string | Name of the indicator category                                                        | "All Marginally Attached Workers for Tennessee"                    |
| Last         | number | Most recently released value of the indicator                                        | 27500.0000                                                        |
| Date         | string | Date and time when the latest value was released (UTC)                               | "2022-07-01T00:00:00"                                              |
| Previous     | number | Value of the indicator for the previous period (after any revisions)                 | 25000.0000                                                        |
| PreviousDate | string | Date and time corresponding to the previous value (UTC)                               | "2022-04-01T00:00:00"                                              |
| Frequency    | string | How often the data is released                                                       | "Quarterly"                                                        |
| Popularity   | string | Popularity ranking or relevance of the indicator                                      | 1                                                                  |
| Start        | string | Date when the indicator series began                                                 | "2003-10-01T00:00:00"                                              |
| Unit         | string | Unit of measurement for the indicator                                               | "Persons, 4-Qtr. Moving Average"                                   |
| Adjustment   | string | Type of seasonal adjustment applied, if any                                         | "NSA"                                                              |
| URL          | string | Hyperlink to the Trading Economics page for the indicator                             | "/united-states/income-inequality-in-pike-county-ar-fed-data.html" |
| LastUpdate   | string | Date and time when the data was last updated                   | "2022-12-11T15:05:06.19"                                           |

