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
3mo 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 →
arxiv.org API
Search and discover academic research papers on arXiv using keywords, authors, titles, categories, and dates, then access detailed metadata for any paper. Browse the complete arXiv category taxonomy to explore research across different scientific disciplines.
sketchfab.com API
Search and browse 3D models on Sketchfab, including filtering by category, license, animation, and downloadability. Retrieve detailed model metadata, creator profiles, collections, thumbnails, tags, and viewer configuration options.
theresanaiforthat.com API
Search and discover AI tools across different tasks, get detailed information about specific tools, browse available deals, and stay updated on the latest tools. Find the perfect AI solution for your needs by filtering by task category or checking featured and trending tools.
oeis.org API
Search OEIS for integer sequences by keyword, A-number, or known terms, then retrieve full sequence entries and b-file term data.
duden.de API
Get German verb conjugations, parts of speech, and usage frequency from Duden's comprehensive database. Quickly look up how to conjugate any German verb across all tenses and moods.
nvidia.com API
nvidia.com API
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
mvnrepository.com API
Search Maven artifacts and retrieve detailed information about Java libraries, including artifact details, relocation notices, and popular package rankings. Find the exact dependencies you need and discover trending open-source projects in the Maven ecosystem.