Getting total collection entries for pagination component

I’m working on a pagination component and need to know the total number of entries in a collection for a given request.
Thanks in advance

add limit and skip parameter to your query:


then you’ll get the following structure back:

  "data": [
    // list of items...
  "meta": {
    "total": 300

Thanks for your quick reply!