Skip to content

Add JSON output option for GitHub stats #4303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Digital39999
Copy link

This PR adds a new JSON output mode to the API, so users can fetch GitHub stats as JSON instead of SVG.
This makes it easier to build custom UI components and render stats however you want.

Just pass &json=true to the API endpoint to get the JSON response.
No breaking changes as SVG output stays as the default.

Copy link

vercel bot commented Jun 22, 2025

@Digital39999 is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added documentation Improvements or additions to documentation. stats-card Feature, Enhancement, Fixes related to stats the stats card. repo-card Issues related to the pin/repo card. lang-card Issues related to the language card. doc-translation README doc translations. wakatime-card Issues related to the wakatime card. gist-card labels Jun 22, 2025
@Digital39999 Digital39999 changed the title feat: add json output option for API endpoints and update documentation Add JSON output option for GitHub stats Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-translation README doc translations. documentation Improvements or additions to documentation. gist-card lang-card Issues related to the language card. repo-card Issues related to the pin/repo card. stats-card Feature, Enhancement, Fixes related to stats the stats card. wakatime-card Issues related to the wakatime card.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant