# Fred This is a Ruby wrapper for the St. Louis Federal Reserve Economic Data [FRED API](https://api.stlouisfed.org/). ## Installation As a gem: gem install fred ## Get a FRED API key Sign up for a FRED API key: [https://api.stlouisfed.org/api_key.html](https://api.stlouisfed.org/api_key.html) ## Usage ### Instantiate a client fred = Fred::Client.new(api_key: 'your_api_key') ### or set FRED_API_KEY in your environment export FRED_API_KEY=your_api_key fred = Fred::Client.new ### or configure once Fred.configure do |config| config.api_key = 'your_api_key' end fred = Fred::Client.new #### Examples fred.category(nil, category_id: '125') => #>> fred.series(nil, series_id: 'GNPA') => #>> fred.series('observations', series_id: 'GNPA') => #, ...]>> ## Copyright Contact me if you have any suggestions and feel free to fork it! Copyright (c) 2009 Johnny Khai Nguyen, released under the MIT license