Skip to main content
GET
/
combined-data
/
git-api
/
repoStats
/
allTime
/
:repoDataId
Get All-Time Repository Statistics
curl --request GET \
  --url https://www.api.baselink.tech/combined-data/git-api/repoStats/allTime/:repoDataId \
  --header 'bearer: <api-key>'
{
  "statistics": {},
  "statistics.repoId": "<string>",
  "statistics.repoName": "<string>",
  "statistics.repoURL": "<string>",
  "statistics.totalCommits": 123,
  "statistics.totalPushes": 123,
  "statistics.totalPullRequests": 123,
  "statistics.totalIssues": 123,
  "statistics.totalStars": 123,
  "statistics.totalForks": 123,
  "statistics.totalWatchers": 123,
  "statistics.totalContributors": 123,
  "statistics.totalLinesAdded": 123,
  "statistics.totalLinesDeleted": 123,
  "statistics.totalFilesChanged": 123,
  "statistics.firstCommit": "<string>",
  "statistics.lastCommit": "<string>",
  "statistics.repositoryAge": 123,
  "statistics.averageCommitsPerDay": 123,
  "statistics.averageCommitsPerWeek": 123,
  "statistics.averageCommitsPerMonth": 123,
  "statistics.topContributors": [
    {}
  ],
  "statistics.topContributors[].login": "<string>",
  "statistics.topContributors[].name": "<string>",
  "statistics.topContributors[].commits": 123,
  "statistics.topContributors[].additions": 123,
  "statistics.topContributors[].deletions": 123,
  "statistics.topContributors[].percentage": 123
}
Retrieve all-time statistics for a specific repository.
statistics
object
All-time statistics for the repository.
statistics.repoId
string
The ID of the repository.
statistics.repoName
string
The name of the repository.
statistics.repoURL
string
The URL of the repository.
statistics.totalCommits
number
Total number of commits in the repository.
statistics.totalPushes
number
Total number of pushes to the repository.
statistics.totalPullRequests
number
Total number of pull requests in the repository.
statistics.totalIssues
number
Total number of issues in the repository.
statistics.totalStars
number
Total number of stars for the repository.
statistics.totalForks
number
Total number of forks of the repository.
statistics.totalWatchers
number
Total number of watchers of the repository.
statistics.totalContributors
number
Total number of unique contributors to the repository.
statistics.totalLinesAdded
number
Total number of lines added to the repository.
statistics.totalLinesDeleted
number
Total number of lines deleted from the repository.
statistics.totalFilesChanged
number
Total number of files changed in the repository.
statistics.firstCommit
string
The timestamp of the first commit in the repository.
statistics.lastCommit
string
The timestamp of the last commit in the repository.
statistics.repositoryAge
number
The age of the repository in days.
statistics.averageCommitsPerDay
number
The average number of commits per day.
statistics.averageCommitsPerWeek
number
The average number of commits per week.
statistics.averageCommitsPerMonth
number
The average number of commits per month.
statistics.topContributors
array
Array of top contributors to the repository.
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[].percentage
number
The percentage of total commits by this contributor.