Skip to main content
6 of 6
edited tags
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60

How to get the count of a query efficiently

To get the count of a query without returning results, simply specify pagesize=0.

http://api.stackoverflow.com/0.9/users?filter=mike&sort=name&pagesize=0

{
  "total": 1161,
  "page": 1,
  "pagesize": 0,
  "users": []
}
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60