Migration: moving from Microworkers

Moving from Microworkers
to A2Z.

No official library exists, so every client calls the REST address directly. The address is one constant; the API key moves to an A2Z key in the same header.

No approval and no card. Not affiliated with Microworkers.

BASE = "https://ttv.microworkers.com/api/v2"BASE = "https://api.a2zboard.com/microworkers/api/v2"

The red line is what you have today, the amber line is the same line pointed at A2Z.

1 linechanged of 14 in the example
BetaPython, requests (no official SDK)
The way over

Four steps from here
to your first live task.

Everything before going live happens in the free sandbox, where nobody is paid.

  1. Get a sandbox keyOpen a workspace and create an API key. It takes a minute and needs no approval and no card.
  2. Run the block and do one taskThe block below posts one task to the sandbox, waits while you do it as a worker, approves it and prints one line.
  3. Change the line in your own scriptTake the amber line from your code below. Your script now runs on A2Z, still in the sandbox.
  4. Go live when you are readyLive access is opened per company, with a program price quoted up front. Talk to us.
Try it

Five minutes to a task
done in the sandbox.

Put your key in the block and paste it into a terminal. It posts a task, waits while you do it as a worker, approves it and prints one line.

Your code, with the line changed

import requests

BASE = "https://ttv.microworkers.com/api/v2"BASE = "https://api.a2zboard.com/microworkers/api/v2"H = {"MicroworkersApiKey": API_KEY}
tpl = requests.post(f"{BASE}/templates", headers=H, json={"title": "Harbour picture", "htmlCode": HTML}).json()
r = requests.post(f"{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": URL}]}]})

# a little later
slots = requests.get(f"{BASE}/basic-campaigns/{CID}/slots",
                     headers=H, params={"status": "NOTRATED"}).json()["items"]
for s in slots:
    requests.put(f"{BASE}/slots/{s['id']}/rate", headers=H, json={"rating": "OK", "comment": "Well described"})

Live address https://api.a2zboard.com/microworkers/api/v2Sandbox address https://api.a2zboard.com/sandbox/microworkers/api/v2

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

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

What carries over

What stays, what differs,
what is not there yet.

Real calls, taken from Microworkers's public documentation.

What maps to what

On MicroworkersOn A2ZHow it behaves
Campaign (basic)HITpositions become assignments
Position, slotAssignmentUNTAKEN to Accepted, NOTRATED to Submitted
Rate OK / NOKApprove / RejectNOK needs a comment, as here
Rate REVISEno match yetasks for another attempt
Excluded workerWorker blocksame idea
Hire groupQualificationan allow list as a custom type
Account balanceAccount balancemoneyBalance
Stays the same
  • Template, campaign, slot, rate and bonus calls
  • Create answers 202 with a queue-job-id header, as on Microworkers
  • Paging with pageSize and nextPageToken
  • Results per question in tasksAnswers
Is different
  • You read the new campaign's id from the queue job that the create call returns
  • The 30-position minimum of basic campaigns is not enforced
  • Templates and campaigns belong to the sandbox or the live address, not both
  • Fees: A2Z quotes one platform fee per program
  • Transactions are the lines of A2Z's ledger
Not available yet
  • REVISE (asking a worker to redo a task), file proofs, VCODE and external templates
  • Staff rating methods and qualification-test campaigns
  • Hire Group campaigns, zones beyond country lists, daily limits
  • SQS notifications and worker info

How we checked it. Microworkers has no official client library, so every documented v2 call was checked over HTTP: 28 automated tests pass, including that another requester cannot read, rate or stop your campaign. A feature A2Z does not support answers 400 and names it. Where the reference is silent, such as the exact wording of an error, A2Z follows its examples. If your client sees a difference, tell us.

Based on: Microworkers API v2 reference, Employer pricing and rating, Microworkers blog

Other platforms

Moving from somewhere else?

The same approach works for each of them.

MTurkMicroworkersCloudResearchAll platforms

Point your Microworkers script at the sandbox.

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