Commits APIs
Global level
Get commits
GET /rest/awesome-graphs-api/latest/commits
Returns a list of commits from all Bitbucket projects and repositories.
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/commits"
Statistics
GET /rest/awesome-graphs-api/latest/commits/statistics
Returns the number of commits and lines of code added/deleted in all projects and repositories.
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/commits/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/commits/export/csv
Exports the list of commits with their details from all Bitbucket projects and repositories to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/commits/export/csv"
Project level
Get commits
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/commits
Returns a list of commits from all repositories in the specified project.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/commits"
Statistics
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/commits/statistics
Returns the number of commits and lines of code added/deleted in the specified project.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/commits/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/commits/export/csv
Exports the list of commits with their details from all repositories in the specified project to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/commits/export/csv"
Repository level
Get commits
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits
Returns a list of commits from the specified repository.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits"
Statistics
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/statistics
Returns the number of commits and lines of code added/deleted in the specified repository.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/export/csv
Exports the list of commits with their details from the specified repository to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/export/csv"
Retrieve a single commit
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}
Returns the data of the specified commit identified by its ID.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
commitId | string | The hash of a particular commit to get the data of. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}"
User level
Get commits
GET /rest/awesome-graphs-api/latest/users/{userSlug}/commits
Returns a list of commits of a particular user, including commits made by the user's aliases.
Path Parameters (required)
Parameter | Value | Description |
userSlug | string | URL-friendly version of a username (e.g. 'boomer' instead of 'bøømer', 'boo-mer' instead of 'boo mer'). |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/users/{userSlug}/commits"
Statistics
GET /rest/awesome-graphs-api/latest/users/{userSlug}/commits/statistics
Returns the number of commits and lines of code added/deleted by a particular user.
Path Parameters (required)
Parameter | Value | Description |
userSlug | string | URL-friendly version of a username (e.g. 'boomer' instead of 'bøømer', 'boo-mer' instead of 'boo mer'). |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits, or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/users/{userSlug}/commits/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/users/{userSlug}/commits/export/csv
Exports the list of commits with their details made by a particular user to a CSV file, including commits made by the user's aliases.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Path Parameters (required)
Parameter | Value | Description |
userSlug | string | URL-friendly version of a username (e.g. 'boomer' instead of 'bøømer', 'boo-mer' instead of 'boo mer'). |
Query Parameters
Parameter | Value | Description |
merges | string | If present, controls how merge commits should be filtered. Can be either exclude, to exclude merge commits, include, to include both merge commits and non-merge commits or only, to only return merge commits. Defaults to include. |
sinceDate | string | Date in ISO-8601 format to retrieve commits since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve commits until. Example: 1997-07-16T19:20:30+01:00. |
order | string | The order to return commits in, either oldest (as in: "oldest first") or newest. Defaults to newest. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/users/{userSlug}/commits/export/csv"
Pull Requests APIs
Global level
Get pull requests
GET /rest/awesome-graphs-api/latest/pull-requests
Returns a list of pull requests from all Bitbucket projects and repositories.
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/pull-requests"
Statistics
GET /rest/awesome-graphs-api/latest/pull-requests/statistics
Returns the number of pull requests in all projects and repositories.
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/pull-requests/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/pull-requests/export/csv
Exports the list of pull requests with their details from all Bitbucket projects and repositories to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/pull-requests/export/csv"
Project level
Get pull requests
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/pull-requests
Returns a list of pull requests from all repositories in the specified project.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/pull-requests"
Statistics
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/pull-requests/statistics
Returns the number of pull requests in the specified project.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/pull-requests/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/pull-requests/export/csv
Exports the list of pull requests with their details from all repositories in the specified project to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/pull-requests/export/csv"
Repository level
Get pull requests
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests
Returns a list of pull requests from the specified repository.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests"
Statistics
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/statistics
Returns the number of pull requests in the specified repository.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/export/csv
Exports the list of pull requests with their details from the specified repository to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Path Parameters (required)
Parameter | Value | Description |
projectKey | string | The key of a particular project to retrieve data from. |
repositorySlug | string | The slug of a particular repository to retrieve data from. |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/export/csv"
User level
Get pull requests
GET /rest/awesome-graphs-api/latest/users/{userSlug}/pull-requests
Returns a list of pull requests created by a particular user.
Path Parameters (required)
Parameter | Value | Description |
userSlug | string | URL-friendly version of a username (e.g. 'boomer' instead of 'bøømer', 'boo-mer' instead of 'boo mer'). |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
start | integer | Indicates which item should be used as the first item on the page of results. Defaults to 0. |
limit | integer | Indicates how many results to return per page. Defaults to 25. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/users/{userSlug}/pull-requests"
Statistics
GET /rest/awesome-graphs-api/latest/users/{userSlug}/pull-requests/statistics
Returns the number of pull requests created by a particular user.
Path Parameters (required)
Parameter | Value | Description |
userSlug | string | URL-friendly version of a username (e.g. 'boomer' instead of 'bøømer', 'boo-mer' instead of 'boo mer'). |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/users/{userSlug}/pull-requests/statistics"
Export to CSV
GET /rest/awesome-graphs-api/latest/users/{userSlug}/pull-requests/export/csv
Exports the list of pull requests with their details created by a particular user to a CSV file.
By default, exports the data for the last 30 days. You can set a timeframe for exported data up to one year (366 days) with sinceDate / untilDate parameters.
Path Parameters (required)
Parameter | Value | Description |
userSlug | string | URL-friendly version of a username (e.g. 'boomer' instead of 'bøømer', 'boo-mer' instead of 'boo mer'). |
Query Parameters
Parameter | Value | Description |
state | string | If indicated, only pull requests in the specified state will be returned. Can be either all, open, merged, declined. Defaults to all. |
dateType | string | Defines what date type is used for sinceDate / untilDate filtering. Can be either created or updated. Defaults to created. |
sinceDate | string | Date in ISO-8601 format to retrieve pull requests since. Example: 1997-07-16T19:20:30+01:00. |
untilDate | string | Date in ISO-8601 format to retrieve pull requests until. Example: 1997-07-16T19:20:30+01:00. |
curl -X GET -u username:password "https://bitbucket.your-company-name.com/rest/awesome-graphs-api/latest/users/{userSlug}/pull-requests/export/csv"