get_app_items

toloka.client.TolokaClient.get_app_items | Source code

Finds all App task items that match certain criteria in an App project.

get_app_items returns a generator. You can iterate over all found items using the generator. Several requests to the Toloka server are possible while iterating.

If you need to sort items use the find_app_items method.

Parameters description

ParametersTypeDescription
app_project_idstr

The ID of the App project.

after_idOptional[str]

The ID of the item used for cursor pagination.

batch_idOptional[str]

The ID of the batch to look in.

statusOptional[AppItem.Status]

App task item status. Refer to the AppItem.Status page for more information on the available status values.

id_gtOptional[str]

Items with IDs greater than the specified value.

id_gteOptional[str]

Items with IDs greater than or equal to the specified value.

id_ltOptional[str]

Items with IDs less than the specified value.

id_lteOptional[str]

Items with IDs less than or equal to the specified value.

created_gtOptional[datetime]

Items created after the specified date.

created_gteOptional[datetime]

Items created after or on the specified date.

created_ltOptional[datetime]

Items created before the specified date.

created_lteOptional[datetime]

Items created before or on the specified date.

finished_gtOptional[datetime]

Items labeled after the specified date.

finished_gteOptional[datetime]

Items labeled after or on the specified date.

finished_ltOptional[datetime]

Items labeled before the specified date.

finished_lteOptional[datetime]

Items labeled before or on the specified date.

batch_sizeOptional[int]

A limit of items returned by each request to Toloka. The maximum allowed value: 1000.

  • Yields:

    The next matching item.

  • Yield type:

    Generator[AppItem, None, None]

Examples:

items = toloka_client.get_app_items(app_project_id='Q2d15QBjpwWuDz8Z321g')
for item in items:
print(item.id, item.status, item.finished_at)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming