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#
- Overview
- Dashboard
- Canonical endpoints
- Envelope and schemas
- Platform notes
- Architecture
- Upstream JSON
- Request path
What it returns#
Solved counts by School / Basic / Easy / Medium / Hard, coding score, institute rank, streaks, heatmap, and an SVG card.
flowchart LR Browser --> API["gfg-stats.tashif.codes"] API --> GFG["GFG JSON profile endpoints"]
Live access#
- Site: gfg-stats.tashif.codes
- Playground: playground
- OpenAPI: docs
- Sample JSON: tashif_ahmad_khan/profile
- Repo: tashifkhan/GFG-Stats-API
Run it locally#
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.