Complete URL specification, query parameters, and response formats.
URL format
All endpoints support both .svg and .png — swap .json to get raw badge data, or append /shields.json for shields.io compatibility. Use SVG by default for the crispest rendering.
Default “2026 champs / Knicks” badge using the branded Knicks color
/nba/{team}.svg
NBA team fan badge with team logo and team color
{team} accepts common team slugs, names, abbreviations, and nicknames such as knicks, ny, celtics, bos, warriors, and gs. Omit {team} for the default “2026 champs / Knicks” badge. See NBA docs.
X / Twitter
Endpoint
Description
/x/{username}.svg
Follow CTA (default)
/x/follow/{username}.svg
"follow @username" CTA
/x/mention/{username}.svg
"@username" mention CTA
Static badges — no API token required.
Homebrew
Endpoint
Description
/homebrew/{formula}.svg
Formula version
/homebrew/cask/{cask}.svg
Cask version
/homebrew/dm/{formula}.svg
Formula downloads (monthly)
/homebrew/dq/{formula}.svg
Formula downloads (quarterly)
/homebrew/dy/{formula}.svg
Formula downloads (yearly)
/homebrew/cask-dm/{cask}.svg
Cask downloads (monthly)
/homebrew/cask-dq/{cask}.svg
Cask downloads (quarterly)
/homebrew/cask-dy/{cask}.svg
Cask downloads (yearly)
Tokscale
Endpoint
Description
/tokscale/{username}.svg
Total token count (default)
/tokscale/tokens/{username}.svg
Total token count
/tokscale/cost/{username}.svg
Estimated total cost
/tokscale/rank/{username}.svg
Global leaderboard rank
/tokscale/active-days/{username}.svg
Days with AI activity
/tokscale/stats.svg
Global user count
skills.sh
Endpoint
Description
/skills/{owner}/{repo}/{skill}.svg
All-time install count (default)
/skills/installs/{owner}/{repo}/{skill}.svg
All-time install count
/skills/rank/{owner}/{repo}/{skill}.svg
All-time leaderboard rank
/skills/trending/{owner}/{repo}/{skill}.svg
Trending leaderboard rank
/skills/hot/{owner}/{repo}/{skill}.svg
Hot (last 24h) leaderboard rank
Country Flags
Endpoint
Description
/flag/{code}.svg
“built in country” with a flag chip
{code} is an ISO 3166-1 alpha-2 country code (case-insensitive), plus regions
and subdivisions like eu, gb-eng, es-ct. 265 codes supported. Definite
articles are applied automatically (us → “the USA”). See Country Flags docs.
Badge Group
Endpoint
Description
/group/{badge1}+{badge2}+{badge3}.svg
Multiple badges joined in one image
Join any badge paths with +. Query params apply to all segments. See Badge Group docs.
Static
Endpoint
Description
/badge/{label}-{message}-{color}.svg
Custom text badge
/badge/dynamic/json.svg?url=...&query=...
Dynamic JSON badge
Query parameters
Appearance
PropType
Colors
PropType
Icons
PropType
Layout
PropType
Effects
PropType
Animation is SVG-only and works inside GitHub's image sandbox because it uses pure CSS keyframes — no JavaScript. pulse and glow require a status dot (auto for CI badges, or set statusDot=true with a color).