How to list teams repositories through API 2.0

apollopt July 22, 2019

Hello everyone,

Till now I have list all repositories of teams where I was, doing with API 1.0:

https://api.bitbucket.org/1.0/user/repositories

And now I am trying to acchieve the same JSON output but with API 2.0, with the following link:

https://api.bitbucket.org/2.0/teams/TEAM_NAME/repositories

But it is not giving me all the repositories present in that team, it just give me a few.

Do you know how can I list all the repositores names of a team?

UPDATE:

I notice that there was more 9 pages of data, and the one that I was seeing it was the first page, and there was a pagelen field with the number of all pages:

https://api.bitbucket.org/2.0/repositories/TEAM_NAME?page=PAGE_NUMBER

But still didnt found a way to list just repositorie names like I did before in API 1.0

1 answer

0 votes
apollopt July 30, 2019

So, I was able to retrieve repository names, by going page by page with the help of a script, but I am not getting all the repositories, from a total of almost 200, I am only getting 100, and cannot get more throug the API:

https://api.bitbucket.org/2.0/repositories/TEAM_NAME?page=PAGE_NUMBER

There is no more then 10 pages, and in each one, the data of 10 repositories.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events