# Number crunching via API - pull some stats

**URL:** <https://forum.mautic.org/t/number-crunching-via-api-pull-some-stats/35865>\
**Category:** Development\
**Tags:** development\
**Created:** [June 15, 2025, 1:47pm UTC](https://forum.mautic.org/t/number-crunching-via-api-pull-some-stats/35865 "2025-06-15T13:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [June 15, 2025, 1:47pm UTC](https://forum.mautic.org/t/number-crunching-via-api-pull-some-stats/35865/1 "2025-06-15T13:47:50Z")

</div>

I try to pull some stats from several instances. There is the /stats/ endpoint in the API, but it lacks some nunmbers.

So I used this way: GET /contacts?minimal=true&limit=1

Which gives me the total number. As I’m not interested in the rest, I can reduce the body by the minimal flag and by using limit. When I set limit=0, I get all records. When I set it to 1, at least only get 1.

But I want to get no contacts at all. Shouldn’t limit=0 in this case deliver zero records? If I don’t want to limit, I just don’t use the parameter at all?

Is there another value possible, that really returns 0 records in the response?
