Filter by Contest Type
Get contests filtered by type.
Endpoint
http
GET /contests/type/:typeAuthentication
Not required - Public endpoint
Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Contest type |
Contest Types
Codeforces
CF- Codeforces RoundIOI- IOI-styleICPC- ICPC-style
LeetCode
WEEKLY- Weekly ContestBIWEEKLY- Biweekly Contest
CodeChef
LONG- Long ChallengeCOOK_OFF- Cook-OffLUNCH_TIME- LunchtimeSTARTERS- Starters
AtCoder
ABC- Beginner ContestARC- Regular ContestAGC- Grand ContestAHC- Heuristic Contest
Examples
bash
# Codeforces rounds
curl http://localhost:3000/contests/type/CF
# LeetCode weekly
curl http://localhost:3000/contests/type/WEEKLY
# AtCoder ABC
curl http://localhost:3000/contests/type/ABCResponse
Returns array of contests with specified type, sorted by start time.
json
[
{
"id": "507f1f77bcf86cd799439011",
"name": "Weekly Contest 380",
"platform": "leetcode",
"type": "WEEKLY",
"startTime": "2024-02-16T02:30:00.000Z",
"endTime": "2024-02-16T04:00:00.000Z",
"isActive": true
}
]Notes
- Maximum 50 results
- Only active contests
- Types are platform-specific

