Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you specify the requester's workerID in a mechanical turk HIT?

I want to create an mturk HIT that has a URL like so:
www.example.com?source=worker_id
where worker_id is the worker's ID code. I'm initially going to create these from the mturk web UI, then once I get it working right, from PHP. But I can't figure out how to get at the worker's ID from the modified-HTML syntax of an mturk HIT.

like image 831
Dan Avatar asked May 26 '10 21:05

Dan


People also ask

How do I assign a qualification on MTurk?

On the Manage Individual Worker page, choose Assign Qualification Type. On the Assign Qualification Type page, select the check boxes next to the qualification types you want to assign to the Worker. In the Score text box that appears beneath each selected qualification type, enter a score (0 to 100) and choose Assign.

Are MTurk worker IDs anonymous?

On Mechanical Turk, each worker is given a unique Worker ID. CloudResearch gives researchers the option to create an "anonymized" worker ID for each participant in their study. When you choose the Anonymize Worker IDs feature, all Worker IDs that appear in your study's downloadable . csv file will be encrypted.

How do I exclude a worker in MTurk?

To Exclude workers who completed a previous study, simply select which study or studies you want to exclude while working through the study setup options. To manually exclude a list of workers, paste MTurk Worker ID's (or CloudResearch ID's) into the Exclude workers box in the study setup.

What is an MTurk ID?

All payment transactions are done using an assigned a 14- character alphanumeric code (i.e., MTurk Worker ID) that is unique to each Worker. This code is linked to the survey data to allow Requesters to review/approve work and to issue payment.


2 Answers

Mechanical Turk will call your website with a URL that looks like:

www.example.com/?hitId=2384239&assignmentId=ASD98ASDFADJKH&workerId=ASDFASD8

In your php page that is at that location you can access the workerId (as well as the other Ids) like so:

<?php
$hitId        = $_REQUEST["hitId"];
$assignmentId = $_REQUEST["assignmentId"];
$workerId     = $_REQUEST["workerId"];

echo "Hit ID: $hitId\n";
echo "Ass ID: $assignmentId\n";
echo "Worker ID: $workerId\n";
?>
like image 54
Nate Avatar answered Oct 07 '22 23:10

Nate


Note that the workerId is NOT sent during the preview, only after the HIT has been accepted. If you're using an External HIT, you can create a cookie to see if it's a worker who has accepted a previous hit, but of course that method is unreliable.

like image 42
Tac Tacelosky Avatar answered Oct 08 '22 00:10

Tac Tacelosky