Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Managed to connect to API URL but unable to download data

Georgia_H
8 - Asteroid

Hi,

 

I am new to Alteryx using Text Input tool to call API. I have tried looking for solutions within the community but to no avail. It works fine if i directly read in the .JSON files (saved from Postman).

Please help! Thanks.

9 REPLIES 9
AkimasaKajitani
17 - Castor
17 - Castor

Hi @Georgia_H 

 

I don't know the specifications of your using API, so it's hard for me to answer accuracy.

But do you set the headers or body correctly in the Download tool as well as the PostMan?

 

In my experience, the API key was often set in the header.

 

Georgia_H
8 - Asteroid

Hello, i have no issue reading in the .JSON files output from Postman using Files in from Alteryx. But this is not what i want to achieve.

 

I want to directly call the API URL from Alteryx and download the files so that I can massage them before writing into my reporting database.

 

My concern is why am i not able to retrieve data out from download tool. I have attached the screenshots for your reference. Please let me know what else you need from me. API key was set in the Text_Input tool. Thanks in advance.

 

Georgia_H_0-1610613901293.png

 

AkimasaKajitani
17 - Castor
17 - Castor

Do you have the screenshot of Download tool's output?

I want to check the Download Header's error. It is needed to know the cause of the error.

 

AkimasaKajitani_0-1610614938886.png

 

Georgia_H
8 - Asteroid

Georgia_H_0-1610615273871.png

 

 

Georgia_H_1-1610615331827.png

 

AkimasaKajitani
17 - Castor
17 - Castor

Thanks.

I think that the Download tool setting is no problem.

 

Which tools does this error output? 

AkimasaKajitani_0-1610615729396.png

 

Georgia_H
8 - Asteroid

I am getting a new error now after trial and error. I suspect the TextToColumn tool and JSON Parse tool are causing the issues. What could be the issue?

 

Georgia_H_4-1610616830185.png

 

 

Georgia_H_0-1610616497884.png

 

 

 

AkimasaKajitani
17 - Castor
17 - Castor

I think the problem is on the API side, because you got the "Internal Server Error".

Have you changed the settings of the download tool?

smoskowitz
12 - Quasar

One problem I have had is that Postman automatically can create the headers and within that header the is usually an Authentication method or an Accept method. 

 

Alteryx doesn't appear to be able to automatically figure that out. What I do is is look at postman for an Authentication header and it should have a Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(assuming you are using Basic auth.

smoskowitz_0-1610656534078.png

smoskowitz_1-1610656571794.png

 

 

 

I hope this helps. 

 

Seth

Georgia_H
8 - Asteroid

Hi Seth,

From Postman, under the Authorization tab, I could only see below: Type: "Inherit auth from parent"

Georgia_H_0-1610686511584.png

What should I fill up under Headers in Alteryx Download tool? Thanks in advance.

Labels