This site is for test and development only. Learn more »
A simulated environment for testing your tasks.
The Mechanical Turk Developer Sandbox is a simulated environment that lets you test your applications and tasks prior to publication in the marketplace.
Benefits:
To access the sandbox, you will need a Mechanical Turk Requester account and, in order to access the sandbox programmatically, you will need an Amazon Web Services (AWS) account.
Requester SandboxYou can create test tasks in the Requester Sandbox to make sure your design or application works.
Visit the Requester Sandbox »You can view tasks created in the Requester Sandbox to see how they will appear to Workers.
Visit the Worker Sandbox »How do I use the MTurk Developer Sandbox?
Your existing MTurk Requester account and Amazon Web Services account are all you need to use the MTurk Developer Sandbox. (If you haven't already done so, create a Requester account and Amazon Web Services account now.)
How do I configure my application to use the MTurk Developer Sandbox?
To use the MTurk Developer Sandbox during development and testing, set the URL service endpoint in your code to point to the sandbox endpoint: https://mturk-requester-sandbox.us-east-1.amazonaws.com
To use the MTurk Developer Sandbox for testing tasks using external questions, set the destination URL for the form action to be:
To switch your application to the production MTurk system, set the URL service endpoint to: https://mturk-requester.us-east-1.amazonaws.com
To switch your tasks using external questions to the production MTurk system, set the destination URL for the form action to be:
import boto3
region_name = 'us-east-1'
aws_access_key_id = 'YOUR_ACCESS_ID'
aws_secret_access_key = 'YOUR_SECRET_KEY'
endpoint_url = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com'
# Uncomment this line to use in production
# endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com'
client = boto3.client(
'mturk',
endpoint_url=endpoint_url,
region_name=region_name,
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=aws_secret_access_key,
)
# This will return 10,000ドル.00 in the MTurk Developer Sandbox
print(client.get_account_balance()['AvailableBalance'])
<body>
<!-- This POST method is posting to the sandbox worker site-->
<form method="POST" action="https://workersandbox.mturk.com/mturk/externalSubmit">
<!-- This POST method is posting to the production worker site-->
<!--<form method="POST" action="https://www.mturk.com/mturk/externalSubmit">-->
<input type="hidden" id="assignmentId" name="assignmentId" value="">
What features of MTurk are not supported in the MTurk Developer Sandbox?
The following features of MTurk are disabled in the MTurk Developer Sandbox environment.
What are the guidelines and policies for the MTurk Developer Sandbox?
Have a question about the Application Program Interface (API) or Command Line Tools (CLTs)? Post your questions and comments in the developer forum.
Visit the Developer Forum »