Rate this page:
A Git repository is a virtual storage of your project. It allows you to save versions of your code, which you can access when needed. The repo resource allows you to access public repos, or repos that belong to a specific workspace.
GET /2.0/repositories
Returns a paginated list of all public repositories.
This endpoint also supports filtering and sorting of the results. See filtering and sorting for more details.
repository
string
Filter the results to include only repositories created on or
after this ISO-8601
timestamp. Example: YYYY-MM-DDTHH:mm:ss.sssZ
string
Filters the result based on the authenticated user's role on each repository.
Valid values: admin
, contributor
, member
, owner
string
Query string to narrow down the response as per filtering and sorting.
role
parameter must also be specified.
string
Field by which the results should be sorted as per filtering and sorting.
1 2 3 4
curl --request GET \
--url 'https://api.bitbucket.org/2.0/repositories' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'