how to get total page of students list,teacher list,users list???

vinhnq
Community Novice

Dear Pro,

if I use API to show json array every lists below:

https://lsts.instructure.com/api/v1/accounts/1/users?per_page=100&page=1&role_filter_id=4&sort=usern...  --> list of teachers having 106 rows, if run this link just show 100 account of teachers. If want to show more then I must type page=2 such as:

https://lsts.instructure.com/api/v1/accounts/1/users?per_page=100&page=2&role_filter_id=4&sort=usern...

how to do for know in teachers account having how much total rows = total page => I set pagination on php to click [1] [2] [3]......[n]

please tell me, thank pro!

====================================================