Codeforces
APIFree REST API for Codeforces programming contest data
Overview
The Codeforces API provides RESTful endpoints to retrieve contest data, user profiles, problem sets, submissions, and rating histories from the Codeforces platform. Key endpoints include /user.info (user details), /contest.standings (rankings), /problemset.problems (problem listings), and /user.status (submission history). Responses are in JSON format. Use cases include building contest trackers, analyzing user performance, creating problem recommendation tools, or integrating Codeforces data into coding learning platforms. Authenticated requests support private user data access.
Example Integration (JavaScript)
fetch('https://codeforces.com/apiHelp')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful architecture
- JSON response format
- Public endpoints (no API key for basic data)
- Authenticated access for private data
- Covers contests, users, problems, submissions
Frequently Asked Questions
? Is the Codeforces API free to use?
Yes, the Codeforces API is completely free for personal and non-commercial use with no hidden costs.
? Does it require an API Key?
Public endpoints (e.g., user info, contest standings) don’t need an API key. Authenticated endpoints (private data like own submissions) require a key from your Codeforces account settings.
? What is the response format?
All responses are in JSON format, which is easy to parse and integrate into applications.
Top Alternatives
People Also Ask about Codeforces
Tool Info
Pros
- ⊕ Free to use
- ⊕ Comprehensive data coverage
- ⊕ Well-documented
- ⊕ Stable and reliable
- ⊕ Supports both public and private data
Cons
- ⊖ Rate-limited (1 request/sec for unauthenticated users)
- ⊖ No official SLA
- ⊖ Limited to Codeforces platform data only