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 vote

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

699 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot