Start Free Trial

Alteryx Designer Desktop Discussions

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

Downloading data using API

AryanMahak
5 - Atom

Hi Everyone,

I am very new to Alteryx and doing my first workflow using API. I need to download data from openflights.org.

Data is not coming in proper format and all records are not getting downloaded.

Here is the url used in Workflow.

 

https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat

 

Attached is my workflow.

Requesting the expert to help me to get the data.

 

Thanks!

Regards

Rajesh

 

2 REPLIES 2

Hi @AryanMahak 

 

Could you please in Text to column change the delimiter to \n (lower case n)?

 

christine_assaad_0-1611251294886.png

 

echuong1
Alteryx Alumni (Retired)

Your approach was correct! Use a "\n" as the delimiter in the first text to columns to split to rows. This represents a new line. From there, you can use a text to columns to separate out the individual columns. I chose to ignore delimiters in quotation marks, since a comma is pretty common. I then used a multi-field formula to remove the " from all fields. You can rename the columns in the Select at the end.

 

Hope this helps!

 

 

echuong1_1-1611251416272.png

 

Labels
Top Solution Authors