Herio's blog

By Herio, history, 3 years ago, In English

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.

  • Vote: I like it
  • +19
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Herio (previous revision, new revision, compare).

»
3 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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.

»
2 years ago, # |
  Vote: I like it +8 Vote: I do not like it

send a request to https://mirror.codeforces.com/api/contest.list? and get the list of those whose 'phase' key value is 'BEFORE'