Migration: moving from another platform

Keep your code.
Change one line.

Your scripts already post tasks and read the answers back. A2Z answers the same calls, so the script you have posts to A2Z after you change one thing: the address.

No approval and no card. Every sandbox has a test balance that always reads 10,000.00 and can create 2,000 assignments a week, and nobody is paid in it. Not affiliated with the platforms named on this page.

    endpoint_url="https://mturk-requester.us-east-1.amazonaws.com",    endpoint_url="https://api.a2zboard.com",
BASE = "https://ttv.microworkers.com/api/v2"BASE = "https://api.a2zboard.com/microworkers/api/v2"
BASE = "https://connect-api.cloudresearch.com/api/v1"BASE = "https://api.a2zboard.com/cloudresearch/api/v1"

The red line is what you have today, the amber line is the same line pointed at A2Z. Everything else in your script stays as it is.

1 linechanged in each example
3platforms with a worked example
21 of 21steps passed in A2Z's test with a real boto3 client
67automated checks over the documented calls
Try it

Five minutes to a task
done in the sandbox.

One block per platform. It posts a task, waits while you do it as a worker, approves it and prints one line.

  1. Get a sandbox keyOpen a workspace and create an API key. It takes a minute and needs no approval and no card.
  2. Pick your platform and paste the blockPut your key in the block and paste it into a terminal. It posts one small task to the sandbox.
  3. Do the task yourselfCreate a worker account, switch on sandbox mode and answer the task. The block sees your answer, approves it and says so.
  4. Change the line in your own scriptTake the one amber line from the example for your platform. Your script now runs on A2Z, still in the sandbox.
Going live. Live access is opened per company. We agree the partner mix, jurisdictions and a program price with you, then open live: the same kind of address, and your key decides whether you are in the sandbox or live. Talk to us about live programs.
Mechanical Turk
pip install -q boto3 && A2Z_KEY="<access key id>:<secret>" python3 - <<'EOF'
import os, time, boto3
key_id, secret = os.environ["A2Z_KEY"].split(":")
mturk = boto3.client("mturk", region_name="us-east-1", endpoint_url="https://api.a2zboard.com/sandbox",
                     aws_access_key_id=key_id, aws_secret_access_key=secret)
question = """<HTMLQuestion xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2011-11-11/HTMLQuestion.xsd"><HTMLContent><![CDATA[
<!DOCTYPE html><html><body><form name="mturk_form" method="post" action="https://www.mturk.com/mturk/externalSubmit">
<input type="hidden" name="assignmentId" value=""/><p>Is 120.00 EUR the invoice total?</p>
<label><input type="radio" name="verdict" value="yes" required/> yes</label> <label><input type="radio" name="verdict" value="no"/> no</label>
<input type="submit"/></form><script src="https://s3.amazonaws.com/mturk-public/externalHIT_v1.js"></script></body></html>]]></HTMLContent><FrameHeight>0</FrameHeight></HTMLQuestion>"""
hit = mturk.create_hit(Title="Check an invoice total", Description="Compare a number with a picture", Reward="0.12", MaxAssignments=1,
                       LifetimeInSeconds=3600, AssignmentDurationInSeconds=600, Question=question)["HIT"]
print("Posted 1 task. Sign in as a worker, switch on sandbox mode and do it. Waiting...")
while True:
    done = mturk.list_assignments_for_hit(HITId=hit["HITId"], AssignmentStatuses=["Submitted"])["Assignments"]
    if done:
        break
    time.sleep(10)
for a in done:
    mturk.approve_assignment(AssignmentId=a["AssignmentId"], RequesterFeedback="Thank you")
print("Done: approved", len(done), "assignment(s).")
EOF
Microworkers
pip install -q requests && A2Z_KEY="<access key id>:<secret>" python3 - <<'EOF'
import os, time, requests
BASE = "https://api.a2zboard.com/sandbox/microworkers/api/v2"
H = {"MicroworkersApiKey": os.environ["A2Z_KEY"]}
html = '<p>Describe <a href="${PICTURE_URL}">this picture</a>.</p><textarea name="summary" required></textarea>'
tpl = requests.post(BASE + "/templates", headers=H, json={"title": "Harbour picture", "htmlCode": html}).json()
r = requests.post(BASE + "/basic-campaigns", headers=H, json={
    "title": "Describe harbour pictures", "description": "Describe a picture in a sentence", "paymentPerTask": 0.05,
    "minutesToFinish": 10, "ttr": 3, "targetedZone": {"id": "custom", "targetedCountries": ["PT", "DE"]},
    "internalTemplate": {"id": tpl["id"], "ratingMethodId": 3},
    "tasks": [{"id": "harbour1", "data": [{"key": "PICTURE_URL", "value": "https://pictures.example/harbour-1.png"}]}]})
campaign = requests.get(BASE + "/queue-jobs/" + r.headers["queue-job-id"], headers=H).json()["output"]
print("Posted 1 task. Sign in as a worker, switch on sandbox mode and do it. Waiting...")
while True:
    slots = requests.get(BASE + "/basic-campaigns/" + campaign + "/slots", headers=H, params={"status": "NOTRATED"}).json()["items"]
    if slots:
        break
    time.sleep(10)
for s in slots:
    requests.put(BASE + "/slots/" + s["id"] + "/rate", headers=H, json={"rating": "OK", "comment": "Well described"})
print("Done: rated", len(slots), "submission(s) OK.")
EOF
CloudResearch Connect
pip install -q requests && A2Z_KEY="<access key id>:<secret>" python3 - <<'EOF'
import os, time, requests
BASE = "https://api.a2zboard.com/sandbox/cloudresearch/api/v1"
H = {"X-API-KEY": os.environ["A2Z_KEY"]}
project = requests.post(BASE + "/project", headers=H, json={
    "name": "Coffee habits", "projectUrl": "https://survey.example/s/abc123", "payment": 0.5, "estimatedTimeInMinutes": 5,
    "participants": 1, "systemRequirements": [], "deviceRequirements": ["Desktop", "Mobile"],
    "completionSettings": {"projectCompletionType": "CompletionCode", "value": "COFFEE-42"},
    "demographicTargeting": {"targetOption": "GenPop"}}).json()["project"]
pid = project["projectId"]
requests.post(BASE + "/project/" + pid + "/update-status", headers=H, json={"status": "Live"})
print("Live with 1 place. Sign in as a worker, switch on sandbox mode, open the survey and enter the code COFFEE-42. Waiting...")
while True:
    rows = requests.get(BASE + "/assignments/" + pid, headers=H).json()["assignments"]
    if any(a["status"] == "Pending" for a in rows):
        break
    time.sleep(10)
requests.post(BASE + "/assignments/" + pid + "/approve-all", headers=H, json={"message": "Thank you"})
print("Done: approved the work that carried the code.")
EOF

The block sends your key only to the address in it. In the sandbox the balance always reads 10,000.00.

Why try it

Nothing to rebuild.
A lot to test.

Moving is a small experiment you can undo. Start in the sandbox, which costs nothing and needs nobody's approval.

Same code

Your script stays

Change the address and the key. Your client library, your calls and the way you read answers stay as they are.

Free sandbox

Try it in minutes

Open a workspace and create a sandbox key. No approval, no call and no card. Do a task yourself as a worker, and nobody is paid.

No surprises

Refused by name, never skipped

When your script asks for something A2Z does not do, the answer is an error that names the feature. You never find out later that a rule was quietly ignored.

Verified workers

People who are verified

Workers are verified before they take live work, through a partner or by A2Z, and a worker keeps the same id from one of your batches to the next.

Yours alone

Your work stays yours

Every call runs as the account behind your key and sees only that account's work. The same key check, rate tier and error log apply to every connector.

No big bang

Run both for a while

Send a share of the work to A2Z and keep the rest where it is. The address is the only switch, so you can move back as easily as you moved.

How it works

Your calls arrive in the language
you already speak.

Each platform has its own address, because each speaks its own language. Behind every address the same checks run before anything reaches the A2Z core.

Your clientThe address you callThe same for every one boto3, AWS SDKsRequester APIthe root of the api hostrequests, any HTTP clientMicroworkers connector/microworkersrequests, any HTTP clientCloudResearch connector/cloudresearch Front door your keyyour accountyour rate tierseparation betweenrequesterserror log It is the only way in.No connector skips it. A2Z core HITs and assignmentsqualificationsbalance and ledgerreview and paymentverified workers Your clientThe address you call boto3, AWS SDKsRequester APIany HTTP clientMicroworkers connectorany HTTP clientCloudResearch connector Front door, the same for allkey, account, rate tier,separation between requesters A2Z coreHITs, assignments, ledger, verified workers
The address you call decides which platform's language A2Z answers in. Your key, your account's rate tier and the separation between requesters apply to every call, whichever platform's client sent it.

Common questions

Do I have to change my code?

One line, the address your client calls, plus the key in your settings. The rest of the script runs as it is. Where a feature has no A2Z counterpart, the connector answers with an error that names it. It does not skip it quietly.

Can I test without paying?

Yes. Anyone can open a workspace and get a free sandbox key at once, with no approval and no card. Every sandbox has a test balance that always reads 10,000.00 and can create 2,000 assignments a week, and nobody is paid in the sandbox.

What happens to my quality rules?

Review policies with known answers and plurality work on the Mechanical Turk path. Rules that a connector cannot enforce are refused, because accepting them without enforcing them could pay for work you meant to reject. Each platform's guide lists what is refused. You can approve and reject every answer yourself, or tell us which rule you rely on.

Who does the work?

Workers who are verified before live work, through a partner organisation or by A2Z. Worker ids are stable. Histories and qualifications earned on another platform do not move across, and A2Z does not import another platform's crowd.

What does it cost?

You set the task price. A2Z adds one platform fee per program, quoted up front. Connectors add nothing on top. Creating a task reserves the reward plus the fee, and approval spends it.

Is my data kept apart from other requesters?

Yes. A connector has no way around the rules of the API. Each call runs as the account behind your key and can see only that account's work.

Can I run both platforms for a while?

Yes. The address is the only switch, so you can send a share of the work to A2Z and keep the rest where it is, then move the rest when you are ready.

My platform is not on this page.

If it has a public requester API, the same approach applies: one address, one translator. Tell us which platform and we will study it the same way.

Point your script at the sandbox.

Open a workspace, get a free key with no approval and run the block for your platform. If it does not fit, you have spent five minutes and nothing else.