Haven't found any way to access standings of contest which belongs to a group, even when anybody can see them (e.g. https://codeforces.net/group/a7fj9QBnKu/contest/333884/standings).
UPD1: I tried to find the contest in 'contest.list', but it doesn't show there, even with my API key. As well, I tried to add parameter 'group'/'groupId' in link, but that doesn't work too.
'groupCode' worked for me.
I found it here
didn't work for me
can you show an example ?
This is using the example from codeforces api page:
If your
key
isxxx
,secret
isyyy
, chosenrand
is123456
and you want to access methodcontest.hacks
for contest 566 in a group withgroupCode
789, you should compose request like this:https://codeforces.net/api/contest.hacks?groupCode=789&contestId=566&apiKey=xxx&time=1657307946&apiSig=123456<hash>
, where<hash>
issha512Hex(123456/contest.hacks?apiKey=xxx&contestId=566&groupCode=789&time=1657307946#yyy)
Here is my python sample
{'status': 'FAILED', 'comment': 'contestId: Contest with id 387969 not found'}
Still not working
in codeforces api page there is no any thing about groupcode
maybe they removed this future from codeforces ?!
Groupcode was not mentioned in the api page, I just meant that I was going to clarify using the same example.
(This is just a theory I might be wrong) I think you need a certain privilege to be able to do that. I tested only using two groups, I was able to get results from the one where I was a manager, and did not get results in which I was just a participant.
Got it, i found out that i have to be manager. Ty for your response