Filter by profile data
To select Tolokers based on profile data, define a filter
object in the pool parameters.
Sample filter in JSON
This example selects Tolokers who set their country as Russia and the city as Moscow in the profile.
{
"filter" : {
"and" : [ {
"or" : [ {
"category" : "profile",
"key" : "country",
"operator" : "EQ",
"value" : "RU"
} ]
}, {
"or" : [ {
"category" : "profile",
"key" : "city",
"value" : 213,
"operator" : "IN"
} ]
} ]
}
}
Key and value parameters
Key parameter |
Value description |
gender |
string The Toloker's gender:
Value of "operator":
|
country |
string The Toloker's country of residence (the two-letter code from the ISO 3166-1 alpha-2 standard). Value of "operator":
|
citizenship |
string The Toloker's country of citizenship (the two-letter code from the ISO 3166-1 alpha-2 standard). Value of "operator":
|
education |
string The Toloker's level of education:
Value of "operator":
|
adult_allowed |
boolean The Toloker agrees to perform tasks that contain adult content. Value of "operator":
|
date_of_birth |
integer The Toloker's date of birth (UNIX time in seconds). Value of "operator":
|
city |
integer The Toloker's city (the region ID in the search database). Value of "operator":
|
languages |
string The languages the Toloker entered in the profile (uppercase two-letter ISO code conforming to ISO 639-1). Value of "operator":
|