GFG stats API

GeeksForGeeks profile, difficulty split, coding score, and heatmap via the current GFG JSON endpoints.

overview

FastAPI service for public GFG profiles. Live at gfg-stats.tashif.codes. Source is tashifkhan/GFG-Stats-API.

The schema puts GFG in fundamentals with HackerRank. CodeTrace’s fetchCard currently tags it dsa with LeetCode and TUF. The bucket on /profile follows the client, not this table.

GFG’s public pages moved. This API uses the current JSON endpoints under /profile/{username}, not the old HTML scrape.

Docs map#

What it returns#

Solved counts by School / Basic / Easy / Medium / Hard, coding score, institute rank, streaks, heatmap, and an SVG card.

Live access#

Run it locally#

bash
cd GFG
uv sync
uv run python -m uvicorn app:app --reload --port 8004

python app.py defaults to 58353, which collides with Codeforces. Use 8004.