API batch not complete

Your software
My Mautic version is: 4.4.12

We created a python script to process all email published stats data and inject it into Google sheet weekly using API.

When we first test the script, it would only process 27 emails that were published and end the script on exactly the 27th email. If we run the script again it would not process the remaining email or just processing the first 27 skipping it since it’s already in Google sheet then script ends for some reason.

Is it a cap in API or is there a reason why script think there is only a total of 27 email to process from API call?

Any help will be greatly appreciated.

Is the API paginating the results or something? I think script just simply think there no more email to process and ends. We wrote a simple script to count how many emails and it’s 30 every time script ran then ends.

I believe I got this issue resolve … It was pagination issue and after making change to the script now it seeing all email in the data.