Skip to content

Stats Card

The stats card shows a summary of your GitHub activity: stars earned, commits, pull requests, issues, contributions and an overall rank.

You can pass a query parameter &hide= to hide any specific stats with comma-separated values.

Options: &hide=stars,commits,prs,issues,contribs

![Anurag's GitHub stats](https://github-stats-extended.vercel.app/api?username=xu756&hide=contribs,prs)

You can pass a query parameter &show= to show any specific additional stats with comma-separated values.

Options: &show=contributions,reviews,discussions_started,discussions_answered,prs_merged,prs_merged_percentage,prs_authored,prs_commented,prs_reviewed,issues_authored,issues_commented

![Anurag's GitHub stats](https://github-stats-extended.vercel.app/api?username=xu756&show=contributions,reviews,discussions_started,discussions_answered,prs_merged,prs_merged_percentage,prs_authored,prs_commented,prs_reviewed,issues_authored,issues_commented)

To enable icons, you can pass &show_icons=true in the query param, like so:

![Anurag's GitHub stats](https://github-stats-extended.vercel.app/api?username=xu756&show_icons=true)

To compute your stats for only a specific repository, you can pass a query parameter &repo=<user_or_organization>/<repository>. You can also specify a comma-separated list of multiple repositories, e.g. &repo=userA/repositoryA,organizationB/repositoryB. And you can select all repositories owned by specific organizations or users by providing a comma-separated list of owners via the owner query parameter, e.g. &owner=userA,organizationB,organizationC. The repo and owner filters are supported by the following items: commits (when used with &include_all_commits=true), prs_authored, prs_commented, prs_reviewed, issues_authored and issues_commented. Note that most of these items are not displayed by default, but you can enable them individually.

(Some of these mentioned items are similar to other items which are included by default, e.g. issues_authored is similar to issues. The difference is how these values are fetched - via GraphQL or via REST API. The default items use GraphQL, but filtering by repository works better via REST API.)

Alternatively, you can use the role parameter to specify a comma-separated list of roles. The stats will include all repositories in which the user has the specified role. By default, only repositories where the user is OWNER will be included, but you could e.g. set &role=OWNER,ORGANIZATION_MEMBER,COLLABORATOR. The role parameter is supported by all items except the following: commits (when used with &include_all_commits=true), prs_authored, prs_commented, prs_reviewed, issues_authored and issues_commented.

You can specify a year and fetch only the commits that were made in that year by passing &commits_year=YYYY to the parameter.

![Anurag's GitHub stats](https://github-stats-extended.vercel.app/api?username=xu756&commits_year=2020)

You can customize the appearance and behavior of the stats card using the common options and the exclusive options listed in the table below.

NameDescriptionTypeDefault value
hideHides the specified items from stats.string (comma-separated values)null
hide_titleHides the title of your stats card.booleanfalse
card_widthSets the card’s width manually.number500px (approx.)
hide_rankHides the rank and automatically resizes the card width.booleanfalse
rank_iconShows alternative rank icon (i.e. github, percentile or default).enumdefault
show_iconsShows icons near all stats.booleanfalse
include_all_commitsCount total commits instead of just the current year commits.booleanfalse
line_heightSets the line height between text.integer25
exclude_repoExcludes specified repositories. Affects only the count for “Total Stars Earned”.string (comma-separated values)null
repoCount only stats from the specified repositories. Affects only certain items.string (comma-separated values)null
ownerCount only stats from the specified organizations or users. Affects only certain items.string (comma-separated values)null
roleInclude repositories where the user has one of the specified roles (OWNER, ORGANIZATION_MEMBER, COLLABORATOR).string (comma-separated values)OWNER
custom_titleSets a custom title for the card.string<username> GitHub Stats
text_boldUses bold text.booleantrue
disable_animationsDisables all animations in the card.booleanfalse
ring_color1Color of the rank circle.string (hex color)2f80ed
number_formatSwitches between two available formats for displaying the card values: short (i.e. 6.6k) and long (i.e. 6626).enumshort
number_precisionEnforce the number of digits after the decimal point for short number format. Must be an integer between 0 and 2. Will be ignored for long number format.integer (0, 1 or 2)null
showShows additional items on the stats card (i.e. contributions, reviews, discussions_started, discussions_answered, prs_merged or prs_merged_percentage. And the following, which support the repo and owner filters: prs_authored, prs_commented, prs_reviewed, issues_authored or issues_commented).string (comma-separated values)null
commits_yearFilters and counts only commits made in the specified year.integer (YYYY)<current year> (one year to date)

1: Supports light and dark mode via ring_color_light and ring_color_dark.