Rest Api Builds - filter by start-at

I’d like to fetch all the builds of 1day ago/1 week ago, and I was wondering if there any way to filter the rest api repo/builds by started-at

Hi @mauriziovitale,

You can filter builds from the API by applying the sort_by query parameter. There’s more information about it here [1].

For example: https://api.travis-ci.com/builds?sort_by=started_at:desc

I hope this helps.

[1] https://developer.travis-ci.com/resource/builds#actions

@mzk thanks for the replay. I’m not interested in the sorting I’d like to fetch all the build between one date to another i.e. 20/03/19 till 22/03/19 The problem is that the started_at is not allowed as a query parameter so you cannot do https://api.travis-ci.com/builds?started_at=20/03/19&finished_at=22/03/19

Hi @mauriziovitale, unfortunately this feature is not yet supported. Sorry about that please. Thanks