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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,558,907
Community Members
 
Community Events
184
Community Groups

Do we have an API which provides repositories along with their project names in Bitbucket?

Hi All,

I have a requirement to get all the repositories along with their project names, so far I haven't got any API that would give me that information.

I am using the Cloud platform and require API or any near solution to that.

So far, I have tried the following API but didn't get the repos in that project, only got the project information :

Please let me know if we have any solution.
Thanks,
Kompal

2 answers

1 vote
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 24, 2023

Hi Kompal,

short answer: yes we do :)

You can make use of the 'List workspace repositories' API endpoint [1].

It's a paginated API so make sure you iterate through all pages to fetch all repos.

The response repo object contains project information as well under the `project` field.

Hope that helps.

Best, Ulrich

// Izymes

[1] https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get

0 votes
Sachin Dhamale
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2023

@kompal_sithta ,

 

You can refer this

 

Access to repository data

Any access to /2.0/repositories/* such as:

  • List a user or team's repositories (/2.0/repositories/{workspace})

  • List all repositories on Bitbucket (/2.0/repositories)

  • List a repository's commits (/2.0/repositories/{workspace}/{slug}/commits)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events