title: Visual Studio Team Services (was Visual Studio Online): API only returns 100 results
body: <p>I'm developing a Git dashboard in which we can select repositories, and get branch stats based on the selected repositories. </p>
  
  <p>The problem I'm facing is the API only returns 100 results. </p>
  
  <p><strong>Endpoint</strong></p>
  
  <pre><code>https://{instance}/defaultcollection/git/repositories/{repository}/stats/branches[/{name}]?api-version={version}
  </code></pre>
  
  <p>Found here: <a href="https://www.visualstudio.com/integrate/api/git/stats" rel="nofollow noreferrer">Stats documentation</a></p>
  
  <p>The limit also exists on commits, which isn't really a problem. Is there a way around this? There isn't anything documented for paging like the <a href="https://stackoverflow.com/questions/7786087/why-does-github-api-only-returns-the-first-100-watched-repositories">GitHub API</a></p>
  
  <p>There are many branches that we don't even need to consider, for example we have bug branches i.e. <code>bugs/123</code> But the endpoint doesn't offer a way of filter out branches (or it isn't documented.)</p>
  
  <p>Has anyone else experienced this?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I've added this request to <a href="https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/12924840-increase-results-add-filtering-to-git-stats-endp" rel="nofollow noreferrer">VSTS User Voice</a>, if you're interested in this being implemented, then go ahead and add a vote. </p>