REST API result list size for repositotires

TeamTech
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2018

Hello - I want to get a full list of repositories via the API but it seems to limit to showing the first 10.  Is there a way to increase this or remove the limit?  I'm using a GET on: 

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

2 answers

0 votes
jyo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2018

Hi there, 

API results are paginated, so you'd need to request subsequent pages like this:

 

https://api.bitbucket.org/2.0/repositories/team_name?page=2

 

There is no way to limit the results on a single page to say "100"

0 votes
TeamTech
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 25, 2018

https://api.bitbucket.org/2.0/repositories?pagelen=100

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events