v2.0.0 — 10 endpoints, Shields.io ready

GitHub Last Seen
Activity API

Track when any GitHub user was last active. JSON, plain text, and color-coded Shields.io badges for your README — with optional token for higher rate limits.

~/mylastseen
$ curl https://mylastseen.vercel.app/api/lastseen/Shineii86

{
  "success": true,
  "data": {
    "username": "Shineii86",
    "relativeTime": "2 hours ago",
    "eventType": "PushEvent",
    "eventLabel": "pushed code"
  }
}
GitHub Stars
Forks
Version
10
Endpoints

Built for Developers

Simple API, powerful integrations — from README badges to Telegram bots

Track Activity

See when any GitHub user was last active — pushes, issues, PRs, releases, and more.

Shields.io Badges

Color-coded endpoint badges for your README. Green for active, red for inactive.

Plain Text

One-liner output for Telegram bots, Discord webhooks, and scripts: /text

Optional Token

Pass a GitHub PAT for 5000 req/hr instead of 60. Via query param or env var.

Smart Caching

5-minute in-memory cache reduces API calls. Hit/miss stats in /api/health.

Vercel Ready

Deploy instantly as a serverless function. Zero config, zero maintenance.

Batch Lookup

Check up to 10 users in a single request: /api/batch?users=a,b,c

Activity Score

Get a 0-100 activity score with S/A/B/C/D/F grading: /api/score/:user

Event History

See the last 10 public events with timestamps: /api/history/:user

Org Tracking

Track all members of a GitHub organization: /api/org/:name/lastseen

User Comparison

Compare two users side by side: /api/compare?user1=X&user2=Y

Rate Limit Dashboard

Check remaining GitHub API quota: /api/rate-limit

API Endpoints

10 endpoints — last seen, batch, score, history, org, compare, badge, rate limit, health

GET /api/lastseen/:username Last seen as JSON with event details

Returns the user's most recent public activity as structured JSON — including event type, repository, and relative time.

$ curl https://mylastseen.vercel.app/api/lastseen/Shineii86
GET /api/lastseen/:username/text Plain text one-liner

Returns a single line of text — perfect for Telegram bots, Discord webhooks, and shell scripts.

$ curl https://mylastseen.vercel.app/api/lastseen/Shineii86/text
GET /api/lastseen/:username/badge Shields.io endpoint badge JSON

Returns Shields.io endpoint badge schema — use with img.shields.io/endpoint?url= for README embeds.

$ curl https://mylastseen.vercel.app/api/lastseen/Shineii86/badge
GET /api/health Health check with cache stats

Returns API health status, version, uptime, and cache hit/miss statistics for monitoring.

$ curl https://mylastseen.vercel.app/api/health
GET /api/batch?users=a,b,c Batch lookup (max 10 users)

Fetch last-seen data for up to 10 users in a single request using parallel fetches.

$ curl https://mylastseen.vercel.app/api/batch?users=Shineii86,torvalds
GET /api/score/:username Activity score 0-100 with grade

Computes activity score based on recency (0-50) and frequency (0-50). Returns S/A/B/C/D/F grade.

$ curl https://mylastseen.vercel.app/api/score/Shineii86
GET /api/history/:username Last 10 events with timestamps

Returns the last 10 public events with event type, label, repo, and relative time.

$ curl https://mylastseen.vercel.app/api/history/Shineii86
GET /api/org/:orgname/lastseen Organization members last seen

Fetches all members of a GitHub organization and returns their last-seen data.

$ curl https://mylastseen.vercel.app/api/org/vercel/lastseen
GET /api/compare?user1=X&user2=Y Compare two users side by side

Compares two users' last-seen activity and shows who is more active.

$ curl https://mylastseen.vercel.app/api/compare?user1=Shineii86&user2=torvalds
GET /api/rate-limit GitHub API quota status

Shows remaining GitHub API quota for core and search rate limits.

$ curl https://mylastseen.vercel.app/api/rate-limit

When Was Someone Last Active?

Enter a GitHub username to see their last activity

Activity-Based Colors

Badge color changes based on how recently the user was active

Bright Green

< 1 hour ago

Green

< 6 hours ago

Yellow Green

< 24 hours ago

Yellow

< 3 days ago

Orange

< 7 days ago

Red

> 7 days ago

Add to Your README

Copy the markdown below and replace the username

Last Seen Badge
![Last Seen](https://img.shields.io/endpoint?url=https://mylastseen.vercel.app/api/lastseen/Shineii86/badge)

Customize Your Badge

Build a Shields.io badge with custom label, style, and logo

Badge preview

Compare Two Users

See who was more recently active

GitHub Rate Limit

Remaining API quota for this service

Remaining
Limit
Resets

Open Source & Free

No signup, no API keys required. Just deploy and start tracking.

View on GitHub
stars forks MIT Licensed