Public stats & README badges

Embed dynamic SVG shields or fetch JSON telemetry directly into your GitHub README, portfolio, or personal dashboard.

@

Weekly time badge

Cumulative active coding hours across the last 7 days.

ClockedIn18h 45m this week
Markdown
![ClockedIn Weekly time badge](/api/stats?username=yourusername&type=weekly)
Image URL
/api/stats?username=yourusername&type=weekly

Today's time badge

Focused coding duration in the current 24h UTC window.

ClockedIn3h 20m today
Markdown
![ClockedIn Today's time badge](/api/stats?username=yourusername&type=today)
Image URL
/api/stats?username=yourusername&type=today

All-time total badge

Lifetime coding time recorded since account creation.

ClockedIn247h total
Markdown
![ClockedIn All-time total badge](/api/stats?username=yourusername&type=total-time)
Image URL
/api/stats?username=yourusername&type=total-time

Public JSON API

Fetch raw JSON telemetry for portfolio integrations or widgets without exposing secret API tokens.

/api/stats?username=yourusername&format=json
Response schemaapplication/json
{
  "username": "yourusername",
  "todayTotal": "3h 20m",
  "weekTotal": "18h 45m",
  "totalTime": "247h 15m"
}

Query parameters

Customize any badge or JSON response by appending query parameters.

ParameterTypeDefaultDescription
usernamestring(required)Your registered GitHub username.
typestringweeklyMetric to show: weekly, today, or total-time.
stylestringflatShield style: flat, for-the-badge, flat-square, plastic, or social.
colorstring006ff0Right-side background color (hex without # or color name).
labelstringmetric nameCustom left-side label text.
formatstringsvgSet to json to retrieve JSON payload instead of an SVG badge.