Discover/CodeChef API
live

CodeChef APIcodechef.com

Access CodeChef problem lists, contest schedules, user profiles, rating history, and submission data via a structured REST API with 6 endpoints.

Endpoint health
verified 7d ago
get_problems_list
get_user_recent_submissions
get_contest_list
get_user_info
get_problem_details
6/6 passing latest checkself-healing
Endpoints
6
Updated
22d ago

What is the CodeChef API?

The CodeChef API provides 6 endpoints covering competitive programming data from codechef.com, including problem metadata, contest schedules, and user profiles. The get_problems_list endpoint returns filterable problem records with difficulty ratings and submission counts, while get_user_info exposes full rating history across contest types. Together the endpoints cover the core public data a developer needs to build contest trackers, leaderboard tools, or problem recommendation systems.

Try it
Page number (0-indexed).
Number of problems to return per page.
Search keyword to filter problems by name or code.
Field to sort by.
Problem category filter.
Maximum difficulty rating (inclusive).
Sort order.
Minimum difficulty rating (inclusive). Use -1 for no lower bound.
api.parse.bot/scraper/6aa4e6fb-1d6a-4c05-aeaf-d2996e380e80/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/6aa4e6fb-1d6a-4c05-aeaf-d2996e380e80/get_problems_list?page=0&limit=5&sort_by=difficulty_rating&category=rated&end_rating=10000&sort_order=asc&start_rating=-1' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace codechef-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: CodeChef SDK — discover problems, explore contests, track users."""
from parse_apis.codechef_api import CodeChef, Sort, Direction, ResourceNotFound

client = CodeChef()

# List beginner problems sorted by difficulty ascending
for problem in client.problemsummaries.list(sort_by=Sort.DIFFICULTY_RATING, sort_order=Direction.ASC, start_rating=0, end_rating=1000, limit=5):
    print(problem.name, problem.code, problem.successful_submissions)

# Drill into one problem's full details via the summary's navigation op
summary = client.problemsummaries.list(category="rated", limit=1).first()
if summary:
    detail = summary.details()
    print(detail.problem_name, detail.difficulty_rating, detail.languages_supported)

# Fetch a specific problem by code with typed error handling
try:
    prob = client.problems.get(problem_code="PALIN")
    print(prob.problem_name, prob.problem_author)
except ResourceNotFound as exc:
    print(f"Problem not found: {exc}")

# Check a user's recent submissions
user = client.user(username="admin")
for sub in user.submissions(limit=3):
    print(sub.problem, sub.result, sub.language)

# Get user's rating profile
profile = user.profile()
print(profile.current_user, profile.user_initial_ratings)

# Browse contests
contests = client.contestlists.get()
print(len(contests.future_contests), "upcoming contests")

print("exercised: problemsummaries.list / problems.get / summary.details / user.submissions / user.profile / contestlists.get")
All endpoints · 6 totalmissing one? ·

Fetches a paginated list of problems from CodeChef with filtering by category, difficulty rating range, and search keyword. Returns problem metadata including submission counts and difficulty ratings. Pagination is zero-indexed. Results are sorted by the specified field and order.

Input
ParamTypeDescription
pageintegerPage number (0-indexed).
limitintegerNumber of problems to return per page.
searchstringSearch keyword to filter problems by name or code.
sort_bystringField to sort by.
categorystringProblem category filter.
end_ratingintegerMaximum difficulty rating (inclusive).
sort_orderstringSort order.
start_ratingintegerMinimum difficulty rating (inclusive). Use -1 for no lower bound.
Response
{
  "type": "object",
  "fields": {
    "data": "array of problem objects with id, code, name, difficulty_rating, total_submissions, successful_submissions",
    "count": "integer total number of matching problems",
    "status": "string indicating success",
    "message": "string describing the result"
  },
  "sample": {
    "data": {
      "data": [
        {
          "id": "38913",
          "code": "BTWSXOR",
          "name": "Bitwise XOR",
          "difficulty_rating": "-1",
          "total_submissions": "967",
          "successful_submissions": "112"
        }
      ],
      "count": 6185,
      "status": "success",
      "message": "Successfully fetched problems"
    },
    "status": "success"
  }
}

About the CodeChef API

Problems and Contests

The get_problems_list endpoint accepts start_rating and end_rating integer bounds to filter by difficulty, a search keyword, a category string, and standard page/limit pagination (0-indexed). Each problem object in the response carries id, code, name, difficulty_rating, total_submissions, and successful_submissions. For deeper inspection, get_problem_details takes a problem_code and an optional contest_code (use PRACTICE for standalone problems) and returns the full HTML body of the problem statement, languages_supported as a comma-separated string, difficulty_rating, and any linked editorial metadata.

Contests

get_contest_list requires no inputs and returns three categorized arrays: present_contests (live), future_contests (upcoming), and past_contests (recently finished). Each past-contest entry includes distinct_users participation counts and start/end timestamps. For division-structured contests like CodeChef Starters, get_contest_details accepts a contest_code and returns a child_contests object mapping division codes to their respective details, alongside a problems array (populated while the contest is active).

User Data

get_user_info returns date_versus_rating, an object keyed by contest type (all, all_old, dsa_monday) containing timestamped rating arrays, plus user_initial_ratings per contest type. get_user_recent_submissions accepts a username and an optional page string, returning an array of submission objects with time, problem, problem_url, result, and language fields, along with max_page for pagination.

Reliability & maintenanceVerified

The CodeChef API is a managed, monitored endpoint for codechef.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when codechef.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official codechef.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
7d ago
Latest check
6/6 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a difficulty-filtered problem recommender using start_rating/end_rating params and successful_submissions acceptance rates.
  • Track a user's competitive rating progression over time by charting the date_versus_rating history from get_user_info.
  • Aggregate participation stats for past contests using distinct_users counts returned by get_contest_list.
  • Monitor live and upcoming contests for automated Discord or Slack notifications with present_contests and future_contests data.
  • Display per-division contest structures for multi-div events by parsing child_contests from get_contest_details.
  • Audit a user's recent language usage and solve rate by iterating result and language fields in get_user_recent_submissions.
  • Index problem statements and constraints for search tooling using the HTML body and languages_supported from get_problem_details.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does CodeChef have an official developer API?+
CodeChef previously offered an official API at api.codechef.com, but it was deprecated and access has been restricted. This Parse API provides structured access to the public data available on codechef.com.
What does `get_contest_details` return for a multi-division contest versus a single-division one?+
For multi-division contests such as CodeChef Starters, the child_contests field is a non-empty object mapping each division code to its own contest metadata. For single-division contests, child_contests is typically empty or absent. The problems array is populated while the contest is active but may be empty once a contest ends and problems are moved to the practice set.
Does `get_user_recent_submissions` return all submissions or only a recent window?+
The endpoint returns a paginated set of recent submissions. The max_page field tells you the total number of pages available, and the page parameter (0-indexed string) lets you step through them. There is no date-range filter; you traverse pages sequentially to reach older submissions.
Does the API return editorial content or solution code for problems?+
Not currently. get_problem_details returns the problem statement HTML, difficulty rating, and supported languages, but editorial text and accepted solution code are not included in the response. You can fork this API on Parse and revise it to add an endpoint targeting editorial or solution data.
Are user ranking or global leaderboard standings available?+
Not currently. The API covers per-user rating history via get_user_info and per-contest participant counts via get_contest_list, but ranked leaderboard tables are not exposed as a standalone endpoint. You can fork this API on Parse and revise it to add a leaderboard or standings endpoint.
Page content last updated . Spec covers 6 endpoints from codechef.com.
Related APIs in Developer ToolsSee all →
leetcode.com API
Search and filter LeetCode coding problems by difficulty, category, and tags, browse upcoming programming contests, and view public user profiles including their problem statistics and submission history. Perfect for finding practice problems, tracking competition schedules, and researching other coders' progress.
cses.fi API
Explore the CSES Problem Set by browsing problems across different categories, viewing detailed problem information, and discovering available courses and contests. Access comprehensive problem lists organized by topic to find coding challenges tailored to your learning goals.
hackerrank.com API
Retrieve challenge scores, difficulty ratings, success ratios, and track-level ranking data from HackerRank's public practice platform. Browse challenges by track, view submission statistics, and access ranking metrics across all available tracks.
neetcode.io API
Access curated coding problem collections including Core Skills, Blind 75, NeetCode 150, and NeetCode 250, along with detailed problem solutions and course content organized by chapters and lessons. Perfect for preparing for technical interviews and mastering data structures and algorithms through structured learning paths.
takeuforward.org API
Access Striver's complete A2Z and SDE DSA sheets along with detailed problem information and TUF+ subscription pricing directly from takeuforward.org. Streamline your interview preparation by retrieving curated coding problems, their solutions, and course pricing all in one place.
imo-official.org API
Access comprehensive International Mathematical Olympiad data including competition problems, shortlists, results by year, and participant information from the official IMO records. Retrieve hall of fame listings, search for specific competitors, and download problem sets and related materials from past competitions.
superuser.com API
Access questions, answers, and comments from Super User to find solutions to technical problems, search for specific topics, and explore trending discussions across the community. View user profiles, track site activity, and discover the hottest questions trending across the Stack Exchange network.
xcontest.org API
Track live paragliding and hang-gliding contest scores, view pilot rankings and performance details, and explore flight information across UK competitions and worldwide events. Access comprehensive contest data including daily leaderboards, pilot profiles, and competition rules to stay updated on the aerial sports community.