Cryptlex Forums

API: Count number of licenses with filters

C
cartesiam

Dear support,

Is there a way to count the number of licenses with filters? (a given reseller_id in my case)

One option is to list licenses with filters and go through all pages but it’s quite long and cpu consuming on your side.

Regards

A
Adnan KamiliCryptlex team

Hi,

When you make a GET request to fetch licenses, the total count is available in the Pagination-Count HTTP header. So you only need to make a single request.

Regards,
Adnan

C
cartesiam

Hello,

Thank you, works great.

← Back to all topics · 3 posts · 996 views · opened 2020-08-21