Codeforces stats API

Official Codeforces API wrapper: rating, contests, heatmap, plus multi-handle and upcoming-contest helpers.

overview

FastAPI wrapper around the public Codeforces API. Live at codeforces-stats.tashif.codes. Source is tashifkhan/CodeForces-API.

Path param is userid (the handle). Envelope platform is "codeforces". Category in CodeTrace is competitive.

Docs map#

What it returns#

Rating, max rating, rank titles, contest history, solved count, heatmap from submissions, upcoming contests, and multi-handle helpers.

This is the one stats API that still has first-class non-user routes: upcoming contests, common contests, and /multi/{handles}.

Live access#

Run it locally#

bash
cd CodeForces
uv sync
uv run python -m uvicorn app:app --reload --port 8003

python app.py binds 8000 in production mode and 58353 in development. Use 8003.