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.
You 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 »
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="">