GitHub Commit Badge API

Dynamic, modern, and highly customizable SVG badges to showcase your GitHub commit activity and consistency.

Quick Start

Embed a real-time badge in your profiles or projects. Just replace USERNAME with a GitHub username.

http://github-commit-badge-api.vercel.app/commits?account=USERNAME

Live example for "octocat":

Basic commit badge example

Interactive Badge Builder

Use the controls below to customize your badge in real-time. The URL will update automatically.

Badge preview
/commits?account=octocat&theme=dark

Parameter Reference

Combine these query parameters to further customize your badge.

Core

account GitHub username (required).

period Values: week, month, quarter, half, year.

Appearance

theme Select from a list of color presets.

style Badge shape and style. Values: flat, plastic, etc.

color Custom hex color (e.g., 4f46e5) to override theme.

Enhancements

icon Values: fire, rocket, trophy, etc.

animated Values: pulse, glow, slide.

sparkline Show mini activity graph (true).

border Enable border outline (true).

Theme Gallery & Examples

Dracula & Rocket

Dracula theme
?theme=dracula&icon=rocket

Gradient & Sparkline

Gradient theme
?theme=gradient&sparkline=true

Neon with Glow

Neon theme
?theme=neon&animated=glow

For The Badge Style

Ocean theme
?theme=ocean&style=for-the-badge