Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket API - how to request list of deployments newer than a certain date?

Derek Kruszewski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2025

Using the below endpoint:

 https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/deployments

How do I limit the deployment list to contain only those deployments created_on after 2025-05-01?

Currently the api seems to return a random list of deployments for a given repo.

 

 

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Champion
June 17, 2025

@Derek Kruszewski I checked and as you noted, that REST API end-point doesn't provide filtering capabilities. Also, there is no alternative endpoint you could use.

So, the best you can do is getting all deployments (which can be in random order) and filter (or sort, then filter) the list for yourself.

Derek Kruszewski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2025

Dang. This means my requests to the bitbucket api will get more and more numerous as the number of deployments increases per repo. How unfortunate. Thanks for checking.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events