Codeforces
Get access to Codeforces data
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Programming
- Documentation / URL
- https://codeforces.com/apiHelp
Overview
The Codeforces API exposes competitive programming data — problems, contests, submissions, and user ratings. Public endpoints are keyless (verified live); API keys only enable the write/private endpoints.
Quick Start
Problem set (verified live):
curl "https://codeforces.com/api/problemset.problems"
{
"status": "OK",
"result": {
"problems": [
{ "contestId": 4, "index": "A", "name": "Watermelon", "tags": ["brute force", "math"] }
],
"problemStatistics": []
}
}
User info:
curl "https://codeforces.com/api/user.info?handles=tourist"
Contest list:
curl "https://codeforces.com/api/contest.list"
Authentication
- Public endpoints: none (keyless).
- Private endpoints (user submissions by handle, etc.): API key + secret with
apiSigsigning — see apiHelp.
Rate Limits & Notes
- Public API: ~1 request/2 seconds per IP — be polite.
- Every response has a
statusfield:"OK"or"FAILED"(withcomment). - Data covers all Codeforces rounds, problems with tags/difficulty, and user ratings.
- The problem set is large (2.2MB+ of JSON) — cache it.
FAQ
Is Codeforces API free? Yes — public data is keyless (verified).
Do I need a key? Only for private/user-scoped endpoints — reads work anonymously.
What’s the rate limit? ~1 request/2 seconds per IP.
More in Programming
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Hackerearth For compiling and running code in several languages | API Key | Yes | Unknown | ↗ |
| Judge0 CE Online code execution system | API Key | Yes | Unknown | ↗ |
| KONTESTS For upcoming and ongoing competitive coding contests | No auth | Yes | Unknown | ↗ |
| Mintlify For programmatically generating documentation for code | API Key | Yes | Yes | ↗ |