NeFut Logo NeFut
Admin Login

[CF Hardcore] Finding API Endpoints for CodeChef and LeetCode

Published at: 2026-06-09 00:40 Last updated: 2026-06-09 01:06
#algorithm #Codeforces #API

Background

In a recent discussion, user pritam1293 raised a question about how to find API endpoints for CodeChef and LeetCode. They are currently developing a project called AlgoBoard, which aims to consolidate competitive programming statistics for users, including the number of problems solved, total submissions, complete contest history, and rating changes.

Challenges in Finding APIs

Due to the lack of official API documentation, users find it challenging to locate the required API endpoints. Many responses suggested that users might have to resort to web scraping instead of relying solely on APIs.

User Suggestions

  1. Egor mentioned that there is currently no CodeChef API available, and users must parse web pages.
  2. chinesedfan provided an existing site https://clist.by, which offers APIs to fetch user statistics.
  3. marlon_joseph shared their experience while building APIs for their puzzle-solving platform, emphasizing the importance of separating scraping from FastAPI endpoints for better handling of request retries, caching, and rate limits.
    from fastapi import FastAPI
    app = FastAPI()
    @app.get("/solve")
    async def solve_board(board_data: str):
        result = solver_engine(board_data)
        return {"solution": result}
  4. Mark_Filler suggested checking network requests in the browser while loading profile pages, contest history, and submission data, as useful endpoints may be exposed through these interactions.

Conclusion

Despite the challenges in obtaining these API endpoints, users can still find the necessary data through web scraping and community resources. Hopefully, pritam1293's AlgoBoard project will succeed in helping more competitive programming enthusiasts!

Blogger's Review: This discussion showcases the creativity of developers when facing a lack of official APIs, particularly the approach of separating scraping logic from request handling, which enhances system maintainability and performance. It is hoped that these platforms will provide more comprehensive API support in the future.

Original Source: https://codeforces.com/blog/entry/145411

[h] Back to Home