I read the API document of codeforces and found that the interface for obtaining all contests is contest.list, but this method has only one parameter gym (bool) and can only return all contests. I just want to get information faster and only return upcoming contests instead of classifying after returning all contests. Can someone help me? please.
Auto comment: topic has been updated by Herio (previous revision, new revision, compare).
Send request to
/api/contest.standings?
with contestId the id of contest, if the contest hasn't started you get error comment:contestId: Contest with id ... has not started
.send a request to
https://mirror.codeforces.com/api/contest.list?
and get the list of those whose 'phase' key value is 'BEFORE'