Skip to main content
GET
/
combined-data
/
git-api
/
repoStats
/
statSelection
/
:teamDataId
Get Team Statistics Selection
curl --request GET \
  --url https://www.api.baselink.tech/combined-data/git-api/repoStats/statSelection/:teamDataId \
  --header 'bearer: <api-key>'
{
  "statistics": {},
  "statistics.teamId": "<string>",
  "statistics.teamName": "<string>",
  "statistics.totalRepositories": 123,
  "statistics.totalMembers": 123,
  "statistics.aggregatedActivity": {},
  "statistics.aggregatedActivity.totalCommits": 123,
  "statistics.aggregatedActivity.totalPushes": 123,
  "statistics.aggregatedActivity.totalPullRequests": 123,
  "statistics.aggregatedActivity.totalIssues": 123,
  "statistics.aggregatedActivity.totalStars": 123,
  "statistics.aggregatedActivity.totalForks": 123,
  "statistics.aggregatedActivity.totalWatchers": 123,
  "statistics.aggregatedActivity.totalContributors": 123,
  "statistics.aggregatedActivity.totalLinesAdded": 123,
  "statistics.aggregatedActivity.totalLinesDeleted": 123,
  "statistics.aggregatedActivity.totalFilesChanged": 123,
  "statistics.recentActivity": {},
  "statistics.recentActivity.lastWeek": {},
  "statistics.recentActivity.lastWeek.commits": 123,
  "statistics.recentActivity.lastWeek.pushes": 123,
  "statistics.recentActivity.lastWeek.pullRequests": 123,
  "statistics.recentActivity.lastWeek.issues": 123,
  "statistics.recentActivity.lastMonth": {},
  "statistics.recentActivity.lastMonth.commits": 123,
  "statistics.recentActivity.lastMonth.pushes": 123,
  "statistics.recentActivity.lastMonth.pullRequests": 123,
  "statistics.recentActivity.lastMonth.issues": 123,
  "statistics.recentActivity.lastQuarter": {},
  "statistics.recentActivity.lastQuarter.commits": 123,
  "statistics.recentActivity.lastQuarter.pushes": 123,
  "statistics.recentActivity.lastQuarter.pullRequests": 123,
  "statistics.recentActivity.lastQuarter.issues": 123,
  "statistics.topRepositories": [
    {}
  ],
  "statistics.topRepositories[].repoId": "<string>",
  "statistics.topRepositories[].repoName": "<string>",
  "statistics.topRepositories[].commits": 123,
  "statistics.topRepositories[].pushes": 123,
  "statistics.topRepositories[].pullRequests": 123,
  "statistics.topRepositories[].issues": 123,
  "statistics.topRepositories[].stars": 123,
  "statistics.topRepositories[].forks": 123,
  "statistics.topRepositories[].contributors": 123,
  "statistics.topRepositories[].lastActivity": "<string>",
  "statistics.topContributors": [
    {}
  ],
  "statistics.topContributors[].login": "<string>",
  "statistics.topContributors[].name": "<string>",
  "statistics.topContributors[].commits": 123,
  "statistics.topContributors[].additions": 123,
  "statistics.topContributors[].deletions": 123,
  "statistics.topContributors[].repositories": 123,
  "statistics.topContributors[].percentage": 123,
  "statistics.performance": {},
  "statistics.performance.averageCommitsPerDay": 123,
  "statistics.performance.averageCommitsPerWeek": 123,
  "statistics.performance.averageCommitsPerMonth": 123,
  "statistics.performance.averageCommitSize": 123,
  "statistics.performance.averagePullRequestSize": 123,
  "statistics.performance.averagePullRequestDuration": 123,
  "statistics.performance.averageIssueResolutionTime": 123,
  "statistics.trends": {},
  "statistics.trends.commitTrend": "<string>",
  "statistics.trends.contributorTrend": "<string>",
  "statistics.trends.issueTrend": "<string>",
  "statistics.trends.pullRequestTrend": "<string>",
  "statistics.trends.repositoryTrend": "<string>"
}
Retrieve selected statistics for a specific team.
statistics
object
Selected statistics for the team.
statistics.teamId
string
The ID of the team.
statistics.teamName
string
The name of the team.
statistics.totalRepositories
number
Total number of repositories in the team.
statistics.totalMembers
number
Total number of members in the team.
statistics.aggregatedActivity
object
Aggregated activity statistics across all repositories.
statistics.aggregatedActivity.totalCommits
number
Total number of commits across all repositories.
statistics.aggregatedActivity.totalPushes
number
Total number of pushes across all repositories.
statistics.aggregatedActivity.totalPullRequests
number
Total number of pull requests across all repositories.
statistics.aggregatedActivity.totalIssues
number
Total number of issues across all repositories.
statistics.aggregatedActivity.totalStars
number
Total number of stars across all repositories.
statistics.aggregatedActivity.totalForks
number
Total number of forks across all repositories.
statistics.aggregatedActivity.totalWatchers
number
Total number of watchers across all repositories.
statistics.aggregatedActivity.totalContributors
number
Total number of unique contributors across all repositories.
statistics.aggregatedActivity.totalLinesAdded
number
Total number of lines added across all repositories.
statistics.aggregatedActivity.totalLinesDeleted
number
Total number of lines deleted across all repositories.
statistics.aggregatedActivity.totalFilesChanged
number
Total number of files changed across all repositories.
statistics.recentActivity
object
Recent activity statistics for the team.
statistics.recentActivity.lastWeek
object
Statistics for the last week.
statistics.recentActivity.lastWeek.commits
number
Number of commits in the last week.
statistics.recentActivity.lastWeek.pushes
number
Number of pushes in the last week.
statistics.recentActivity.lastWeek.pullRequests
number
Number of pull requests in the last week.
statistics.recentActivity.lastWeek.issues
number
Number of issues in the last week.
statistics.recentActivity.lastMonth
object
Statistics for the last month.
statistics.recentActivity.lastMonth.commits
number
Number of commits in the last month.
statistics.recentActivity.lastMonth.pushes
number
Number of pushes in the last month.
statistics.recentActivity.lastMonth.pullRequests
number
Number of pull requests in the last month.
statistics.recentActivity.lastMonth.issues
number
Number of issues in the last month.
statistics.recentActivity.lastQuarter
object
Statistics for the last quarter.
statistics.recentActivity.lastQuarter.commits
number
Number of commits in the last quarter.
statistics.recentActivity.lastQuarter.pushes
number
Number of pushes in the last quarter.
statistics.recentActivity.lastQuarter.pullRequests
number
Number of pull requests in the last quarter.
statistics.recentActivity.lastQuarter.issues
number
Number of issues in the last quarter.
statistics.topRepositories
array
Array of top repositories by activity.
statistics.topRepositories[].repoId
string
The ID of the repository.
statistics.topRepositories[].repoName
string
The name of the repository.
statistics.topRepositories[].commits
number
The number of commits in this repository.
statistics.topRepositories[].pushes
number
The number of pushes in this repository.
statistics.topRepositories[].pullRequests
number
The number of pull requests in this repository.
statistics.topRepositories[].issues
number
The number of issues in this repository.
statistics.topRepositories[].stars
number
The number of stars for this repository.
statistics.topRepositories[].forks
number
The number of forks for this repository.
statistics.topRepositories[].contributors
number
The number of contributors to this repository.
statistics.topRepositories[].lastActivity
string
The timestamp of the last activity in this repository.
statistics.topContributors
array
Array of top contributors across all repositories.
statistics.topContributors[].login
string
The GitHub username of the contributor.
statistics.topContributors[].name
string
The display name of the contributor.
statistics.topContributors[].commits
number
The number of commits by this contributor.
statistics.topContributors[].additions
number
The number of lines added by this contributor.
statistics.topContributors[].deletions
number
The number of lines deleted by this contributor.
statistics.topContributors[].repositories
number
The number of repositories this contributor has contributed to.
statistics.topContributors[].percentage
number
The percentage of total commits by this contributor.
statistics.performance
object
Performance-related statistics for the team.
statistics.performance.averageCommitsPerDay
number
Average number of commits per day across all repositories.
statistics.performance.averageCommitsPerWeek
number
Average number of commits per week across all repositories.
statistics.performance.averageCommitsPerMonth
number
Average number of commits per month across all repositories.
statistics.performance.averageCommitSize
number
Average number of lines changed per commit.
statistics.performance.averagePullRequestSize
number
Average number of lines changed per pull request.
statistics.performance.averagePullRequestDuration
number
Average time to merge pull requests in hours.
statistics.performance.averageIssueResolutionTime
number
Average time to resolve issues in hours.
Trend analysis for the team.
The trend direction for commits (increasing, decreasing, stable).
The trend direction for contributors (increasing, decreasing, stable).
The trend direction for issues (increasing, decreasing, stable).
The trend direction for pull requests (increasing, decreasing, stable).
The trend direction for repositories (increasing, decreasing, stable).