The SearchHITs operation returns all of a
Requester's HITs, on behalf of the Requester.
The operation returns HITs of any status, except for HITs that
have been disposed with the DisposeHIT
operation.
Note: |
Currently, the |
Results are sorted and divided into numbered "pages," and a single page of results is returned by the operation. Sorting and pagination can be controlled with parameters to the operation.
The following example of a call to the
SearchHITs operation queries all of the
HITs for a Requester, using default values for sorting and
pagination.
http://mechanicalturk.amazonaws.com/onca/xml?Service=AWSMechanicalTurkRequester &AWSAccessKeyId=[the Requester's Access Key ID]&Operation=SearchHITs &Signature=[signature for this request]&Timestamp=[your system's local time]
A request to the Mechanical Turk Service includes parameters that control its behavior and the data it returns. Required parameters must be included for the request to succeed.
SearchHITs accepts parameters common to all operations. Some common parameters are required. See Common Parameters for more information.
The following parameters are specific to the SearchHITs operation:
| Name | Description | Type | Value |
|---|---|---|---|
Operation
|
The operation you would like to call. To access the
| Required |
|
SortProperty
|
The field on which to sort the results returned by the operation.
If | Optional |
|
SortDirection
|
The direction of the sort used with the field
specified by
If | Optional |
|
PageSize
|
The number of HITs to include in a "page" of results. The complete sorted result set is divided into pages of this many HITs.
| Optional |
A positive integer |
PageNumber
|
The page of results to return. Once the HITs have
been sorted and divided into pages of size
If the | Optional |
A positive integer |
A successful request for the SearchHITs operation will have a SearchHITsResult element in the response.
The SearchHITsResult element contains the following elements:
| Name | Description | Value |
|---|---|---|
NumResults
|
The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call. |
A non-negative integer |
PageNumber
|
The number of this page in the filtered results list. |
A positive integer |
TotalNumResults
|
The total number of HITs in the filtered results list based on this call. |
A non-negative integer |
HIT |
The HIT. The response will include one
|
A HIT data structure. For more information on the data structure of a HIT, see the HIT Data Structure. |