Return Total Count when using 'List Scenarios' endpoint

Hi Makers,

How do I get the Total Count of Scenarios within a team / organization?
Looking at the Make API reference (List scenarios | Make Developer Hub) I can see a property within the response that goes by the name ‘returnTotalCount’ and is set to false.
Including a ‘returnTotalCount’ query string (url parameter) set to ‘true’ doesn’t change the value of this property. Including different query parameters such as ‘pg[sortBy]’ , ‘pg[limit]’ , ‘pg[offset]’ work perfectly as expected but don’t influence one bit on the ‘returnTotalCount’ property. So essentially I can’t find anything within the endpoint documentation which allows me to fetch the Total Count of scenarios within the Team / Organization I’m providing…

Would love any piece of help if anyone’s already cracked it :slight_smile:

Cheers,

Welcome to the Make community!

There is no returnTotalCount parameter for List scenarios. I’m not sure where you got this from.

Yes, that is possible. You’ll need a minimum of two modules:

Set your limit to a higher number:

Screenshot_2025-02-24_220209

This is just an example. Your final solution may or may not look like this depending on your requirements.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Got it! So you say - “do it the old fashioned way” :wink:
It seemed to me kind of wasteful (from the API side) to query the API for ALL DATA each & every time - and this returnTotalCount property sounded promising.
To your question of where I got it from, as stated above it simply appears within the response when making the API call to the ‘list Scenarios’ endpoint:

But I dig your solution (assuming there’s no other choice) - Thanks so much @samliew !