Skip to main content
3 of 6
deleted 95 characters in body
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60

Dev-Tip: 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