# FRED API

Category: [Finance](https://free-web-services.com/web-services/unit-convertors/fiinance/)  
Page: https://free-web-services.com/web-services/unit-convertors/fiinance/fred-api.html  
Documentation: https://fred.stlouisfed.org/docs/api/fred/

The FRED API from the Federal Reserve Bank of St. Louis gives economic data series such as GDP, inflation and interest rates, for example to chart unemployment over time. Requests are GET calls with an api_key parameter, and the answers are XML or JSON. Free with a free API key. Apps must show FRED's notice that they are not endorsed by the bank, and series owned by third parties may need their permission.

- API key: Needed, free
- Pricing: Free with a free API key.
- Formats: JSON, XML
- Interface: REST, HTTP-GET
- Provider: fred.stlouisfed.org

Example request:

```sh
curl 'https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json&api_key=YOUR_API_KEY'
```

Replace YOUR_API_KEY with your own key.

