Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

REST API Is there some way to get commits until a certain commit uuid or date ?

Hello, I'm getting the commits for a certain repo slug using the API{username}/{repo-slug}/commits

Is there some way to get commits until a certain commit uuid or date ?

4 answers

1 accepted

1 vote
Answer accepted

Hi @Hassan Adel ,

Please, refer to for further information.

Kind regards,


It seems the filter requested is unavailable as per

Please, comment on the link above so developers can become aware of your request and potentially implement a new feature.

Kind regards,

For what I can see, you cannot filter commits by "date". That is really a terrible lacking considering commits is the one thing you for sure want to filter as there are so many.{ws}/{repo slug}/commits?pagelen=1&date>2020-11-12T12:12:12

Does not work, even though the object does have a "date" at it's root

If someone managed to filter commits by date, could you please help?


Actually your example is not 100% correct, cause according to documentation we must use something like{ws}/{repo slug}/commits?q=date>2020-11-12T12:12:12

and url encode it

But this didn't worked as well.

Also tried to 

1. > YYYY-MM-DD HH:mm

2. > "YYYY-MM-DD HH:mm"

3. q=date > "YYYY-MM-DD HH:mm"

And no result

Still trying to solve it.

aselmi87 I'm New Here Feb 26, 2022

As documented here, I've tried to replace the operators with their respective codes:

1- = is %3D

2- > is %3E

3- space is +

So the above query would be:{ws}/{repo slug}/commits?q=date+%3E+2020-11-12T12:12:12

 However this did not work unfortunately. Note that this worked for other endpoints which means the feature is not implemented for the commits endpoint.


Please vote for this to be implemented asap!

0 votes

I followed the documentation but filtering seems to be not working for commits endpoint

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,119 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you