followers Resource

Still need help?

The Atlassian Community is here for you.

Ask the community

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 Dec 21, 2015

Was this helpful?

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