Codeforces

API

Free REST API for Codeforces programming contest data

Visit Website

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)

script.js JS

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

AtCoder API Search Google
CodeChef API Search Google
Topcoder API Search Google

People Also Ask about Codeforces

Codeforces vs AtCoder APICodeforces vs CodeChef APICodeforces vs Topcoder API Codeforces 2025 review

Tool Info

Pricing Free
Category Programming
Platform Public API

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

More Programming Tools