Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Problem with Alteryx and FRED API

tuomassalminen
6 - Meteoroid

Hi,

 

I have tried to download large amount of macro economic and industrial indicators from FRED (https://fred.stlouisfed.org/) Economic Research of St. Louis FED. My workflow is basic, just creating bunch of URL:s in the right format for the API, feeding those to the download tool and lastly parsing the XML data to a more usable format.

 

Everything works well with 50-100ish data series but for larger amounts (200-1000 series) the workflow returns null values. Has someone used this particular API and knows if there is some sort of hard cap for amount of requests per workflow? Has anyone noticed similar issues when dealing with other (REST) APIs?

6 REPLIES 6
grossal
15 - Aurora
15 - Aurora

Hi @tuomassalminen,

 

I don't know FRED, but sometimes it helps if you add a user-agent to the download tool. 

 (You can find out the user agent of your browser by googling it or just copy mine)

 

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

 

 

2020-06-12 13-43-46.png

 

The API documentation just mentions "1000 records per request" as a cap, but nothing else.

 

Let me know if the User-Agent helped.

 

 

Best

Alex

danilang
19 - Altair
19 - Altair

Hi  @tuomassalminen 

 

From looking at the FRED api documentation for downloading observations, it looks like there's a limit of 100000 per request. 

danilang_0-1591981283531.png

 

To request the next group use the offset=100001 parameter

 

Dan

tuomassalminen
6 - Meteoroid

Hi,

 

Thank you both for the replies. I will try adding the user-agent just in case. It seems like there's clear limitations on the size of the requests (how many observations) and frequency of requests. I will try again by tweaking the parameters and will follow-up.

 

I also received an answer from FRED. They responded by saying that the API has a rate limit of 120 request per minute.

 

bmack
5 - Atom

@danilang

 

On this subject, I'm having trouble with the URL setup and where to input my API

 

bmack_0-1670002919132.png

 You can see that no data is downloaded.

 

THanks

apathetichell
18 - Pollux

@bmack- attach a text to columns tool. split that field to rows. use /n as your delimiter.

 

matthew_foster
5 - Atom

I encountered the same issue.  I placed a Throttle tool just before the download tool and throttled to 100 records per minute. Each record in my case was 1 FRED Series, so this kept me under the 120 series per minute limit that FRED allows.

Labels