Api v2.0 doesnt show invited project via repositories endpoint;

Issue #8837 wontfix
Timo Sulg
created an issue


i built a app that analyses project files. Everything worked fine until one of my client complained that he doesnt see his invited projects hosted on Bitbucket;

I'm using API2.0 as it's the newest and a better version of old one; but it's repositories endpoint doesnt show same info as APIv1. Is there any particular reason for that?

I dont like to mix different api versions into my app; and API1 has many deprecated methods and repositories is one of them; Is there any better solution and when it's planned to fix?

Timo, cofounder of VersionEye

Comments (5)

  1. Brian Nguyen

    Hi Timo,

    As part of the new 2.0 api we have tried to make our endpoints more REST-like. While in version 1.0 we tended to return as much information as possible, we have decided to reduce the amount of data we send back in one request.

    If you would like to retrieve a user's repositories you should use the repositories end point.


    Cheers, Brian

  2. Timo Sulg reporter

    THanks for your response. i already have a workaround, which uses deprecated api1 endpoint. How long apiV1 will be active? Is there any fixed date or period? When api2 will be ready?

    I'm not quite satisfied with your answer, because I wasn't complaining about a architecture of API, neither a data size. I had issue that the data from v2 endpoints dont cover v1 . Forexample /api/v2/<user>/repositories returns all the user's personal repos and even all the repos from user's groups, but not invited repos. Why is a invited repos treated differently than group's repo? How I can access user's invited projects via API2?

  3. Brian Nguyen

    Hi Timo,

    Looking at each of the handlers, they should both return the same set of repositories.

    However please note that in the new 2.0 API the repositories are paginated. This may be why you are not seeing some of the repositories.

    The default page length is 10 repositories, but you can increase that value by passing it the pagelen parameter.

    Cheers, Brian

  4. Log in to comment