Get aggregate responses

To get aggregated responses, send a GET request to the /api/v1/aggregated-solutions/<operation ID=""> resource.

Request

GET /api/v1/aggregated-solutions/<operation ID> ?
  [limit=<maximum number of results in the response>]
& [sort=<fields to sort by>]
& [task_id_gt=<task ID>]
& [task_id_gte=<task ID>]
& [task_id_lt=<task ID>]
& [task_id_lte=<task ID>]

Host: https://sandbox.toloka.yandex.ru
Authorization: OAuth <OAuth token>
Key descriptions

Parameter

Description

Data type

limit

Limit on the number of results to return. By default — 50; maximum — 100000.

Number

sort

Parameters for sorting in ascending order:

  • task_id — Task ID.

To change the sorting direction to descending, add the minus sign before the parameter. For example, sort=-id.

String

task_id_gt

Tasks with an ID greater than the specified value.

String

task_id_gte

Tasks with an ID greater than or equal to the specified value.

String

task_id_lt

Tasks with an ID less than the specified value.

String

task_id_lte

Tasks with an ID less than or equal to the specified value.

String

Response

Contains the aggregation result in the items array.

{
  "has_more": true,
  "items": [
    {
      "pool_id": "283",
      "task_id": "afd1234d-12314a-cfd1424d-31214b",
      "confidence": 0.937152,
      "aggregated_solution": {
        "output_values": {
          "result": "OK"
        } 
      }
    },
    …
  ]
}
Key descriptions

Key

Value

Data type

has_more

Whether the list is complete:

  • true — Not all elements are included in the output due to restrictions in the limit parameter.

  • false — The output lists all the items.

Boolean

pool_id Pool ID. String

task_id

Task ID.

String

confidence Confidence in the aggregate response. Number
aggregated_solution The aggregate response. JSON
aggregated_solution.output_values Output data fields and aggregate response. JSON