followers Resource

Still need help?

The Atlassian Community is here for you.

Ask the community

Bitbucket Cloud v1 APIs are deprecated

Bitbucket Cloud REST API version 1 is deprecated effective 30 June 2018. All 1.0 APIs will be removed from the REST API permanently on 31 December 2018. Read the deprecation notice. Or you can jump right to the version 2.0 REST API documentation.

Users can follow another user or a repository. Use this resource to list a repository's followers. This resource does not require authentication. For a list of repositories an individual user follows, see user Endpoint.

GET the repository followers

Gets a count and the list of accounts following a repository. Use this API to get a list of the accounts following a repository. Currently, the Bitbucket UI does not list each account, it only displays the count. By default, this call returns the top 25 events. You can specify the following parameters to this call:

Parameter
Required?
Description
accountname Yes The team or individual account owning the repository.
repo_slug Yes The repository identifier.
 GET https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}/followers
Click here to view the response body...
{
    "count": 4,
    "followers": [
        {
            "username": "Saage",
            "first_name": "Rodrigo",
            "last_name": "",
            "is_team": false,
            "avatar": "https://secure.gravatar.com/avatar/f9c6710cefefb1eb9903d5a076135dc6?d=identicon&s=32",
            "resource_uri": "/1.0/users/Saage"
        },
        {
            "username": "vjanicek",
            "first_name": "Juan ",
            "last_name": "Hernandez",
            "is_team": false,
            "avatar": "https://secure.gravatar.com/avatar/f1210b66e760b4d04c5bf3b1dc4f0877?d=identicon&s=32",
            "resource_uri": "/1.0/users/vjanicek"
        },
        {
            "username": "amarsahinovic",
            "first_name": "Amar",
            "last_name": "Šahinović",
            "is_team": false,
            "avatar": "https://secure.gravatar.com/avatar/6766b33a697b6f0720ca5a0a2cd69196?d=identicon&s=32",
            "resource_uri": "/1.0/users/amarsahinovic"
        },
        {
            "username": "clbray",
            "first_name": "Curtis",
            "last_name": "Bray",
            "is_team": false,
            "avatar": "https://secure.gravatar.com/avatar/a1cea357df8bbcfd0a108129db97e636?d=identicon&s=32",
            "resource_uri": "/1.0/users/clbray"
        }
    ]
}
Last modified on Jun 14, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.