Migration: moving from CloudResearch Connect

Moving from CloudResearch Connect
to A2Z.

Connect is the closest of the research platforms to a HIT marketplace: projects, assignments, approve, reject, bonus. The work happens on your own page and ends with a code.

No approval and no card. Not affiliated with CloudResearch Connect.

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.

1 linechanged of 11 in the example
BetaPython, requests (public OpenAPI file)
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://connect-api.cloudresearch.com/api/v1"BASE = "https://api.a2zboard.com/cloudresearch/api/v1"H = {"X-API-KEY": API_KEY}
project = requests.post(f"{BASE}/project", headers=H, json={
    "name": "Coffee habits", "projectUrl": "https://survey.example/s/abc123", "payment": 0.5,
    "estimatedTimeInMinutes": 5, "participants": 20, "systemRequirements": [],
    "completionSettings": {"projectCompletionType": "CompletionCode", "value": "COFFEE-42"},
    "demographicTargeting": {"targetOption": "GenPop"}}).json()["project"]
requests.post(f"{BASE}/project/{project['projectId']}/update-status", headers=H, json={"status": "Live"})

# a little later
rows = requests.get(f"{BASE}/assignments/{project['projectId']}", headers=H).json()["assignments"]
requests.post(f"{BASE}/assignments/{project['projectId']}/approve-all", headers=H, json={"message": "Thank you"})

Live address https://api.a2zboard.com/cloudresearch/api/v1Sandbox address https://api.a2zboard.com/sandbox/cloudresearch/api/v1

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.

What carries over

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

Real calls, taken from CloudResearch's public documentation.

What maps to what

On CloudResearchOn A2ZHow it behaves
ProjectHITparticipants become assignments
AssignmentAssignmentstatus names kept
approve, approve-allApproveAssignmentone call per row
reject, with a reasonRejectAssignmentreason and message
reverse-rejectApprove, overridechanges a rejection
bonus, with a tokenSendBonusthe token is the idempotency key
statisticscounts of assignmentscomputed from A2Z
Stays the same
  • Project, assignment, approve, reject and bonus calls
  • Polling, as Connect has no webhooks
  • Your own survey page, unchanged
Is different
  • Participants are A2Z workers, not the Connect panel
  • The survey address gets the participant, project and assignment ids in its query
  • approve-all pays only work that carries your completion code
  • Fees are A2Z's platform fee
  • A group's universal block list is A2Z's worker block, accepted on the live address only
Not available yet
  • Demographic targeting beyond country (age, gender, languages)
  • Conversations and feasibility estimates (answered 501 in Connect's error shape)
  • Scheduling a project, and editing a live one beyond its participants, end time and internal name
  • Other completion types than a completion code

How we checked it. Connect has no official client library, so the calls of its public OpenAPI file were checked over HTTP: 39 automated tests pass, including that another requester cannot read, approve or close your project. 22 of the 31 operations work; the others answer 501 in Connect's error shape. Where the file is silent, such as the wording of an error, A2Z follows its examples. If your client sees a difference, tell us.

Based on: Connect API reference, OpenAPI file

Other platforms

Moving from somewhere else?

The same approach works for each of them.

MTurkMicroworkersCloudResearchAll platforms

Point your CloudResearch 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.