Developer Tools
CodeChef logo

CodeChef API

codechef.com

CodeChef competitive programming - problem statements, test cases, and learning paths.

Actions
2
Category
Developer Tools
Login
Not required
Output
JSON

Call the CodeChef API

Submit a task, then poll the job until it settles. This example runs act_codechef_contest_problem_detail.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_codechef_contest_problem_detail",
    "params": {
      "contest_code": "DIFF500",
      "problem_code": "CWC23QUALIF"
    }
  }'

2 actions on codechef.com

Read

  • Contest Problem Details

    act_codechef_contest_problem_detailread2 credits / call

    Returns a problem's statement, constraints, sample test cases, and difficulty for a contest.

    contest_code
    string · required
    problem_code
    string · required
  • Contest Problem Navigation

    act_codechef_contest_problem_navigationread1 credit / call

    Returns previous and next problem codes and position within a contest's learning path.

    contest_code
    string · required
    problem_code
    string · required

CodeChef API questions

Is there an API for CodeChef?
CodeChef does not offer a public data API for this, but Anakin Wire provides 2 maintained endpoints for codechef.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape CodeChef data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when codechef.com changes its markup, Anakin updates the action.
Do I need a CodeChef account?
No. Every CodeChef action listed here runs anonymously — no account and no credentials required.
What does the CodeChef API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Developer Tools APIs

All Developer Tools sites