Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Retrieving Data from API

kat53191
6 - Meteoroid

Hello,

 

I am new to pulling data through API's using Alteryx.  I am trying to retrieve data from the following location:

 

https://data.bts.gov/Research-and-Statistics/Trips-by-Distance/w96p-f2qv

 

Looking at the description there should be 2.14M rows of data.  For some reason I am only getting 1000 rows of data so I'm assuming there is some row limit?  Would someone be able to take a look and let me know what I am doing wrong?

 

Thanks,
Katie

 

3 REPLIES 3

Hi @kat53191 

 

Looking at the API documentation https://dev.socrata.com/docs/paging.html

It seems to be a Paging limitation. If no limit is specified, the default is 1000 records

christine_assaad_0-1605212876302.png

 

You can adjust the payload limit. I set it to 2000 and it returned 2000 records

christine_assaad_1-1605212950777.pngchristine_assaad_2-1605212981749.png

 

kat53191
6 - Meteoroid

@christine_assaad

 

Thank you so much! I kept trying that in the Header tab and didn't realize it was supposed to go into the payload limit (which makes way more sense).  One other question, is there a way that unlimited could be passed?  Or with API limits do I need to specify the amount?

 

Thanks again,
Katie

Hey @kat53191 

 

I tested it with 1M records and it worked. The Doc is saying 50K for 2.0 endpoint and unlimited for 2.1

 

Below is a nice post about how to loop thru pages when making API calls that you may find useful 🙂

 

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Need-to-build-Iteration-Macro-to-pagin...

 

Cheers!

Labels