Toloka

Output data

Output data is the response parameters. These parameters are used for validating the received responses in a task. For example, if you specify that the response must have at least 10 characters, the user will get a message about the incorrect response when attempting to enter a shorter answer.

Go the the project page and set the parameters using the way that is easier for you:

In the output data fields

Click Add field in the Specifications block on the project page and fill in the fields:

Field

Description

Name

Object identifier (in lowercase).

Type

Data type:

  • String.

  • URL.

  • Boolean.

  • Integer.

  • Float.

  • File.

  • Coordinates.

  • JSON.

Required

Whether filling in the field is required when completing the task.

Allowed values

Allowed values (for string, integer, float and boolean data types).

Min length

Restrictions for the length of the string.

Max length

Min value

Range of values for float and integer numbers.

Max value

Current location

Fill in the coordinates field with the user‘s current coordinates.

In JSON format

Click and set output data parameters in JSON. Possible types of fields and their parameters:

String
"string_response
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "string", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true, "min_length
[no-highlight[

Description

Minimum length of the string.

Required

No.

]no-highlight]
": 10, "max_length
[no-highlight[

Description

Maximum length of the string.

Required

No.

]no-highlight]
": 100, "allowed_values
[no-highlight[

Description

Allowed values (array).

Required

No.

]no-highlight]
": ["a11", "b22", "c33"]
URL.
"url_response": {
    "type": "url",
    "required": true
}
Boolean.
"boolean_response
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "boolean", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true }
Integer
"integer_response
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "array_integer", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": false, "min_value
[no-highlight[

Description

Minimum value.

Required

No.

]no-highlight]
": 1, "max_value
[no-highlight[

Description

Maximum value.

Required

No.

]no-highlight]
": 100, "allowed_values
[no-highlight[

Description

Allowed values (array).

Required

No.

]no-highlight]
": [10, 20, 30] }
Float.
"float_response
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "float", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true, "min_value
[no-highlight[

Description

Minimum value.

Required

No.

]no-highlight]
": 10.11, "max_value
[no-highlight[

Description

Maximum value.

Required

No.

]no-highlight]
": 65.51 }
File.
"file_response
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": "file", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true }
Coordinates.
"coordinates_field_id
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "coordinates", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true, "current_location
[no-highlight[

Description

Only for the coordinates data type: fill in the field with the user‘s current coordinates (true/false). Used in tasks for a mobile app.

Required

No.

]no-highlight]
": true }
JSON
"json_response
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "json", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true }

Below is an example of output data description in a task for detecting “adult content” in an image. The task includes a required input field with the “result” ID. This field has three options: “ADULT”, “NOT_ADULT”, “404”. These values will later be listed in the response file.

{
    "result
[no-highlight[

Description

Identifier of the field.

Required

Yes.

]no-highlight]
": { "type
[no-highlight[

Description

Data type:

  • url — URL of an image, page, and so on.

  • boolean — Logical data type (true/false).

  • string — String.

  • float — Floating point number.

  • coordinates — Geographical coordinates, such as “53.910236,27.531110”.

  • json — JSON object.

  • file — File.

Required

Yes.

]no-highlight]
": "string", "required
[no-highlight[

Description

Whether filling in the field is required (true/false). By default, it is “true”.

Required

No.

]no-highlight]
": true, "allowed_values
[no-highlight[

Description

Allowed values (array).

Required

No.

]no-highlight]
": ["ADULT", "NOT_ADULT", "404"] } }