Discover/codechef.com API
live

codechef.com APIcodechef.com

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

Endpoints
6
Updated
4mo ago
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: 'asc' or 'desc'.
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.
Use it in your codegrab 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&category=rated' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

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.

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: 'asc' or 'desc'.
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": 6129,
      "status": "success",
      "message": "Successfully fetched problems"
    },
    "status": "success"
  }
}

About the codechef.com 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.

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.

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,000250 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.