HackerRank stats API

Public HackerRank profile, practice score, badges, and whatever submission history upstream actually returns.

overview

FastAPI reader for public HackerRank profiles. Live at hackerrank-stats.tashif.codes. Source is tashifkhan/hackerrank-api.

The schema puts HackerRank in fundamentals with GFG. CodeTrace’s fetchCard currently tags it dsa. Same mismatch as GFG.

No auth. Public endpoints only. Some profiles return empty submission history even when the UI shows activity. That is upstream, not a cache bug.

Docs map#

What it returns#

Solved challenge count, practice score, best track rank, badges, recent submissions, contest history when it exists, heatmap when the calendar is populated.

Difficulty breakdown and acceptance rate are not in public HackerRank data. Canonical byDifficulty stays zeros / nulls.

Live access#

Run it locally#

bash
cd HackerRank
uv sync
uv run python -m uvicorn main:app --reload --port 8006

Built-in default is 58352, same as LeetCode. Use 8006.