Hi, I wrote a python programm to retrieve and update records directly through the API. The output is 1000 records max but my data object contains more records. In the Knack-knowledge database it reads:
Note that at this time, to retrieve more than 1000 records, you will need to programmatically loop through your object utilizing our Pagination, until all required records are retrieved.
Since I am a newbie at both - Knack and Python - I would appreciate if someone could help me how to do that!
Hey Sofie. I have a few apps where I work on similar processes as yours except that I mostly work with Javascript. I’m going to leave the code snippet for my nodejs function below for you to see how I achieve this. You should be able to adopt from that.
@Sofie,
as you know there is a limit of 1000 records to retrieve per api call, so assuming you are mentioning rows_per_page=1000. and in your initial call you might have page=1 in your query string.
now to retrieve remaining or more than thousand records, you need to make an another ajax call with url something like this: https://api.knack.com/v1/objects/[your object name]/records?page=2&rows_per_page=1000
which will retrieve remaining or next set of records.