Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get the Bitbucket repo size by API

Hi team,

I would like to know the size of the bitbucket repo by API or by any means. I've seen the comment of the Atlassian Team and I've attached the screenshot as well. 

But I'm not sure I get that. Could you pls elaborate on that?Screenshot 2020-12-15 185133.png

https://community.atlassian.com/t5/Bitbucket-questions/How-to-find-out-repository-size/qaq-p/631316  

 

Appreciate it if this can be discussed by having a call on google meet or anyother.

1 answer

1 accepted

2 votes
Answer accepted
Tyler T Atlassian Team Dec 15, 2020

Here is the documentation: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D#get

Replace `workspace` and `repo_slug` with the details of your repository.

You can filter for just the size field:

https://api.bitbucket.org/2.0/repositories/atlassian/bbql/?fields=size

{"size": 1911650}

That is the size in bytes. It's about 1.8 MB.

That's a public repository: https://bitbucket.org/atlassian/bbql/src/master/

Thank you So much @Tyler T 

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,719 views 10 16
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