REST API to return all builds

The main question: Is it possible to get the REST API to return *all* builds, rather than the default 100 builds, paged, that returns by default? The use case is wiring up the data to Excel where I don't have the luxury of programatic logic to go grab the next n results.

Secondarily, it seems like there's something funky going on with the various methods of returning build data. If I specify no build locators ( http://teamcity/httpAuth/app/rest/buildTypes/bt1426/builds/ ) I get > 100 builds returned with a link to the next set. This is expected.

However, if I use a build locator ( http://teamcity/httpAuth/app/rest/buildTypes/id:bt1426/builds?locator=sinceDate:201301010T000000-0001 ) I get unexpected results. I fully expect to receive a smaller number of results than the unfiltered query. However, the query returns 49 builds and in looking at the full set, there are many more builds that fall within this filter (i.e. since Jan 1 2013). Is this a bug with filters?

1 comment
Comment actions Permalink

As to returning all builds: try adding "count:N" to the locator. Please note that this request can impose increased load on the server.

The second issue is duplicated in the tracker at


Please sign in to leave a comment.