Leet Code Stats API

5 stars

A custom RESTful API & Dashboard built in Python to fetch user stats / activity on leetcode

LeetCode stats as JSON.

A free REST API for public LeetCode profiles. No key, no sign up.

Solved counts by difficulty, contest history and the submission heatmap.

0:000:00

One call, no key.

curl https://leetcode-stats.tashif.codes/khan-tashif

5 endpoints.

Replace {username} with a public LeetCode handle.

/{username}
Solved counts by difficulty, ranking and acceptance.
/{username}/profile
The public profile.
/{username}/contests
Contest history and rating.
/{username}/heatmap
Daily submissions.
/{username}/badges
Badges earned.

Who calls it.

19 Oct 2026 to 18 Nov 2026, from Vercel's request logs. About two thirds of requests carry no referrer, so the real list is longer.

requests in 30 days
48,096
unique IP addresses
1,588
other sites calling it
325

Tools and colleges built on it

Portfolios and other sites

Show 307 more

Seven platforms, one shape.

Each API returns profiles, stats and activity in the same JSON layout, so one client reads them all.

CodeTrace is the dashboard built on all of them.