How get the number of records with filters applied on SuiteCRM API v8

Hello everyone! I’m trying to find out how to get the number of records with filters applied using the SuiteCRM API v8. I’ve tried [mention methods you’ve tried], but I’m still unable to find an effective solution. Does anyone know how I can quickly and accurately count the number of filtered records? Any help would be greatly appreciated!

I don’t see any count functions, but you could do something like this:

/Api/V8/module/Cases?&page[size]=1&page[number]=1

And it returns:

{
    "meta": {
        "total-pages": 58,
        "records-on-this-page": 1
    },
    "data": [
        {
            "type": "Case",
            "id": "c66f57b0-f774-e521-e9e5-59b85eaa725f",
            "attributes": {
                "name": "Need assistance with large customization",
                "date_entered": "2017-09-12T22:25:00-04:00",
                "date_modified": "2020-11-19T01:05:00-05:00",
                "modified_user_id": "1",

There are 58 records.

Thank you so much for your help!

1 Like