How to list all the public repositories from BitBucket?

I have a requirement to list all the public repositories(main not fork ones) through code.

I used rest api, which listed along with the project details. I want to list only repository details without limit.


2 answers

0 votes

Hi Raghavendra! Since you said you used the REST api I'm assuming you're on Bitbucket Cloud. I'm not sure what you mean by "I want to list only repository details without limit", though. Can you clarify what exactly you want to list, and what have you achieved so far so we can continue helping you?



Hi, there:


I have the same request to list all public repositories in our self-hosted bitbucket.


The easiest way to get that list on Bitbucket Server (self-hosted) is to logout and then click on the top-left "Bitbucket" logo.  All public repos are listed by default for non-logged-in users.

Alternatively, open up a private browser window, a.k.a. "incognito mode", navigate to your on-prem Bitbucket URL, ignore the login screen, and again click on the top-left "Bitbucket" logo.

Note:  if your Bitbucket repo has zero public repos, then you will only see the login screen.  Clicking on the top-left "Bitbucket" logo will simply take you back to the login screen.  If you have at least one public repo, then clicking on the "Bitbucket" logo takes you to the list of public repos.

If you're looking for a way to do this via REST, let me know, I'll see if I can figure something out.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

655 views 5 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you