Forums/Community/Zendesk API

Answered

Get User List only returns 15 users

Joe Workman
asked this on August 17, 2010 10:28

I was playing around with the curl API calls for getting the list of users in my zendesk system. I have a few hundred users, however, its only returning 15. Why is that?

 

I would also love to be able to get the number of tickets that are associated with each user. Is the only way to get that data is to get the ticket data for each user and them extract the count attribute? I really don't  need all the ticket data, just would like to get the count. Downloading all of the ticket data for every user seems like a waste or resources (for you and me). 

 

Comments

User photo
Steven Yan
Product Manager
Check Answer

Hi Joe, we've updated our API now so that by default, collections are 100 items per page:

http://developer.zendesk.com/introduction.html#collections

You can also see alltickets per user via this API call:

http://developer.zendesk.com/tickets.html#listing-tickets

See GET /api/v2/users/{user_id}/tickets/requested.json

April 26, 2012 15:03