This method has low, context-adaptive rate limit, so it can't be described with some specific constants.
If you encounter 429 (Too Many Requests) HTTP error, just retry after 30-60 secs.
Request Body
Name
Type
Description
problem_id*
int
ID of the task you trying to submit
environment*
string
Language code you are trying to submit
files*
[]file
Source code of your solution
contest_id
int
If you are submitting solution during contest, you need to specify its ID.
{id:1337// id of your new submission}
{"error": "no such problem or rights to view it"}
{"error": "you are not participant of this contest or is does not exist"}
This is universal method for receiving submissions of certain user, problem, contest, or from any intersection of this parameters.
However, submissions on Sort Me are not public, so access to submissions is a bit tricky. In general, you can get response, if you are trying to get:
β Your own submissions;
β Submissions sent during contest where you are admin;
β Submissions which solves problem you are admin of.
Query Parameters
Name
Type
Description
user_id
int
ID of user whose submissions you want to get.
If specified, it must be your ID or ID of participant of contest from contest_id parameter.
If not specified, get submissions of all users. You must be admin of contest from contest_id to do this.
problem_id
int
ID of the task you want to get submissions for.
If specified, at least one rule must be satisfied:
β You are admin of the task
β You are requesting your own submissions
β You are admin of the contest from contest_id parameter, and that contest contains this task.
If not specified, get submissions for all tasks.
contest_id
int
ID of contest, submissions of which you want to get.
If specified, you must be either admin of the contest or requesting only your own submissions (by providing your ID in user_id parameter)
If not specified, get submissions sent not during contests.
offset
int
Pagination parameter.
Use idfield.
Get submission by ID
GEThttps://api.sort-me.org/submissions/getByID
Query Parameters
Name
Type
Description
id*
int
ID of target submission.
Verdicts are set per problem, per subtask and per test. Here are all the types:
0 - Judging. Solution is still judging.
1 - Full solution (for problem and subtasks) or OK (for test).