Free Trial

Alteryx Designer Desktop Discussions

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

JSON API Data Download Limitations

pbaba
7 - Meteor

I am trying to pull some data down through an API but I seem to be limited to 100 records of data (JSON Name 3) at a time. I believe I need to run an interative macro but I do not have the number of pages only number of total records. Does anyone know how I can get the full data set (or 883 records)? 

 

 

pbaba_0-1625252332214.png

 

8 REPLIES 8

Hi @pbaba 

 

Please check this post: https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Loop-through-API-calls-until-all-data-...

 

I believe it's related to pagination which could be handled using a macro as described above. Hope this helps. Cheers!

pbaba
7 - Meteor

The issue I have is that I do not have a way of knowing how many pages there are. There is a Cursor field but I am not sure if it plays a role with pagination.

danilang
19 - Altair
19 - Altair

Hi @pbaba 

 

The methods for handling pagination are API specific.  Sometimes there's a link to the next data chunk in the DownloadHeaders field.  Sometimes there is an offset parameter that you send in the URL.  Look into documentation of the specific API that you're calling. 

 

Dan 

pbaba
7 - Meteor

@danilang  Not sure if you can help me. This API Uses a cursor for pagination and I need to add cursor to the original URL as a prefix when I run the iterative macro so that it pulls subsequent data until all the data is pulled down. Any assistance you can provide is greatly appreciated

danilang
19 - Altair
19 - Altair

Hi @pbaba 

 

I did a quick search of the API documentation here and I can't find any details on the correct format of paginated requests.  You'll have to work with them to get more details

 

Dan

pbaba
7 - Meteor

@danilang  Please see attached documentation.

danilang
19 - Altair
19 - Altair

hi @pbaba 

 

There's nothing in this document that specifies the format of the payload if you want to start from a record other than 0.  You'll have to reach out to them.

 

Dan 

pbaba
7 - Meteor

@danilang Thank you very much for your insight. It is appreciated.

Labels
Top Solution Authors