Skip to content
/ cpAPI Public

A Flask API that gives updates about the upcoming contests on various Coding Platforms.

Notifications You must be signed in to change notification settings

arnoob16/cpAPI

Repository files navigation

Competitive Programming Contests API

An API built to give you updates about the upcoming contests on various Competitive Coding platforms.


Coding Platforms Supported

More platforms will soon be supported.

How to use this API?

  • Send a GET request to https://cp-api.arnoob16.vercel.app/ URL.
  • Response received is an Array of Contest Objects
  • Each contest object has 4 parameters,
    • platform => The coding platform that is hosting the contest.
    • contestName => The name of the contest.
    • contestLink => URL of the contest.
    • startTime => The starting timestamp of the contest.
    • contestDuration => The duration of the contest.
{
  "contests": [
    {
      "platform": "CodeChef",
      "contestName": "CP in 7 days",
      "contestLink": "https://www.codechef.com/CP7D2021?itm_campaign=contest_listing",
      "startTime": "2021-02-03T16:30:00+0530",
      "contestDuration": "02:30 hours."
    },
    {
      "platform": "CodeChef",
      "contestName": "February Challenge 2021",
      "contestLink": "https://www.codechef.com/FEB21?itm_campaign=contest_listing",
      "startTime": "2021-02-05T15:00:00+0530",
      "contestDuration": "10 Days"
    }
    ]
}