side nav
Logo

Introduction

Catalyse Research brings efficiency and automation to online sampling with Catalyse Research Marketplace, the world’s most powerful, open, and customizable online sampling platform.

Supply APIs provide a simple way to connect to millions of people and get answers in real time. By specifying a set of demographic qualifications and quotas, buyers can target a wide or very specific population on a topic of your choosing. As a supplier, you get fine grain control over your survey matching and business relationships on the platform.

We want to encourage innovation with minimal limits. We ask that you please be practical and considerate when determining call frequencies. We rate limit when needed to protect the system and ensure the highest level of service to all of our clients.

Environments

To make Catalyse Research’s APIs as explorable as possible, we have environments specific to your development needs. For access to these environments contact your Integration Consultant at SupplyIntegrations@catalyseresearch.com.

Users are financially responsible for all transactions made on the system regardless of whether it was the result of a bug in your integration.

Sandbox Api URL:- https://qa.supplyapi.sampleeye.com

Sandbox Swagger URL:- https://qa.supplyapi.sampleeye.com/swagger/index.html

Production Api URL:- https://supplyapi.sampleeye.com

Production Swagger URL:- https://supplyapi.sampleeye.com/swagger/index.html

Authentication

The Catalyse Research Supply API use a HTTP Authorization header for authentication. Every call should have a header Authorization: Bearer {{APIkey}}. Ensure that the key you are passing is the correct key for the environment provided by account manager from Catalyse Research . If you do not have key then contact Integration Consultant at SupplyIntegrations@catalyseresearch.com

image

Request Format

Built on RESTful principles, the API uses HTTP methods and verbs. Requests should be made using JSON, and JSON is returned by all responses.

Rate Limits

Calls are limited per supplier, per endpoint, in a fixed 60 second window.

Endpoint Calls per minute
Survey (live survey feed) 10
SurveyTargeting (bulk targeting) 120
QualificationMapping (qualification library) 10
All other endpoints (each) 3000

Every response carries these headers:

Header Description
X-RateLimit-Limit Calls allowed in the current window for this endpoint.
X-RateLimit-Remaining Calls left in the current window.
X-RateLimit-Reset Unix time (seconds, UTC) when the window resets.

Over the limit, the API returns 429 Too Many Requests with a Retry-After header (seconds). The survey feed is refreshed about every 20 seconds, so one call a minute is enough. Use the Bulk Survey Targeting endpoint instead of calling the per-survey endpoints for every survey.

Sample Types

Array of all types of sample that buyers can field on the platform

Id Name
1 B2B
2 Consumer
3 Patient/Healthcare
5 Information Technology Decision Maker
6 Medical Professionals
7 Panel Recruits

Qualification Library

GET Qualification and Answer List
({EnvironmentBaseApiURL}/api/QualificationMapping/{supplierCode}/{languageCode})

Return List Of All Qualificatins And Answers.

Request Header

Name Description
Authorization Please pass Api Key here provided by catalyse research. Ex: Bearer {{APIkey}}

Request Parameters

Name Description Data Type Required
supplierCode Please pass supplier code here shared by Catalyse Research. Int True
languageCode Please pass this paramter in languageCode-CountryCode Format.For example English(US) you need to pass EN-US. string True

image

Response Parameters

Name Description Data Type
qualificationId Id of Qualification Int
qualificationName Name of Qualification String
qualificationTypeId Question type of the qualification. See Qualification Types below. Int
qualificationType Name of the question type, e.g. Single Punch (single select) or Multi Punch (multi select). String
questionText Translated Question Text. String
answerId Id of Answer. If not avalaible then 0. Int
answerText Translated Answer Text. String

Qualification Types

qualificationTypeId qualificationType Meaning
1 Open End Free text (e.g. ZIP / postal code). Answers are the actual values.
2 Single Punch Single select: the respondent picks one answer.
3 Multi Punch Multi select: the respondent can pick several answers.
6 Range Numeric range (e.g. age). Answers are the actual values.

image

Surveys

GET Get Live Surveys
({EnvironmentBaseApiURL}/api/Survey/{supplierCode})

Request Header

Name Description
Authorization Please pass Api Key here provided by catalyse research. Ex: Bearer {{APIkey}}

Request Parameters

Name Description Data Type Required
supplierCode Please pass supplier code here shared by Catalyse Research. Int True
languageCode Please pass this paramter in languageCode-CountryCode Format.For example English(US) you need to pass EN-US. It is not required if you will not pass this paramter then we will expose all surveys of all country. string False

image

Response Parameters

Name Description Data Type
surveyId Id of Survey int
name Name of Survey string
ir Estimated incidence rate of the survey decimal
loi Length of Interview int
isDesktopAllowed If survey allowed on desktop bool
isMobileAllowed If survey allowed on mobile bool
isTabletAllowed If survey allowed on tablet bool
quota Your own allocation on this survey (not the total across all suppliers). It can go down because of completes or because the buyer reduces the allocation. int
cpi Your payout per complete, already at your agreed revenue share. It changes when the buyer changes the price. decimal
completes Completes so far on this survey on our platform, across all our suppliers. int
entrants Respondents sent into the client survey so far, across all our suppliers. int
conversion completes / entrants (0 to 1). Null until the survey has at least one entrant. decimal
updatedDate Last time the survey record changed (any field, including price or quota). Use targetingHash from Bulk Survey Targeting to detect targeting changes. datetime
languageCode Unique Id associated with two letter language code-two letter country code string
quotaType Type of quota start/complete string
liveUrl Live Link to client survey string
testUrl Test Link to client survey for testing purposes string

Entry Link Variables

Name Description
$ST Unique Supplier Respondent Session
$SU Unique Panelist ID

Feed Behaviour

The feed always returns the complete list. A survey is listed only while it is live, your allocation is active and its quota is above 1. Buyers pause and resume surveys often, so a survey that is missing from the feed is paused, not necessarily closed: stop sending traffic while it is missing, because it may come back.

image

Survey Groups

GET List a Survey’s Groups
({EnvironmentBaseApiURL}/api/SurveyGroup/{supplierCode}/{surveyId})

Returns information on the survey group used by the specified survey.

Request Header

Name Description
Authorization Please pass Api Key here provided by catalyse research. Ex: Bearer {{APIkey}}

Request Parameters

Name Description Data Type Required
supplierCode Please pass supplier code here shared by Catalyse Research. Int True
surveyId Id of the selected survey. Int True

image

Response Parameters

Name Description Data Type
groupId Id of Survey Group int
name Name of Survey Group string
surveyGroupSurveys An array of all the Survey Ids related to this group int[]

image

Survey Qualifications

GET Show Survey Qualifications
({EnvironmentBaseApiURL}/api/SurveyQualifications/{supplierCode}/{surveyId})

Returns a list of all standard and exposed custom qualifications associated with a survey.

Request Header

Name Description
Authorization Please pass Api Key here provided by catalyse research. Ex: Bearer {{APIkey}}

Request Parameters

Name Description Data Type Required
supplierCode Please pass supplier code here shared by Catalyse Research. Int True
surveyId Id of the selected survey. Int True

image

Response Parameters

Name Description Data Type
qualificationId Id of Qualification int
name Name of Qualification string
qualificationAnswers Qualification answer Ids. *Note: In case of age or zip, the values given in the array are the actual ages or the zip codes. An empty array ([]) means the qualification is asked but not restricted: any answer qualifies. string[]

image

Survey Quotas

GET Show Survey Quotas
({EnvironmentBaseApiURL}/api/SurveyQuota/{supplierCode}/{surveyId})

Returns client quotas associated with a survey.

Request Header

Name Description
Authorization Please pass Api Key here provided by catalyse research. Ex: Bearer {{APIkey}}

Request Parameters

Name Description Data Type Required
supplierCode Please pass supplier code here shared by Catalyse Research. Int True
surveyId Id of the selected survey. Int True

image

Response Parameters

Name Description Data Type
surveyQuotaId Id of the quota int
name Name of the quota string
quota Completes needed for this quota cell (survey level, all suppliers) int
qualifications An array of survey qualifications associated with this quota. Null means the quota has no conditions and is open to everyone who qualifies for the survey. array

image

Bulk Survey Targeting

GET Targeting For Many Surveys
({EnvironmentBaseApiURL}/api/SurveyTargeting/{supplierCode}?page=1&pageSize=500)

Returns qualifications, quotas and groups for up to 500 surveys per call, so you do not need three calls per survey. Only surveys in your live feed are returned. Each survey has a targetingHash that changes only when its qualifications, quotas or groups change (not when quota counts or prices move). Keep the last hash per survey and only re-read targeting for surveys whose hash has changed.

Request Header

Name Description
Authorization Please pass Api Key here provided by catalyse research. Ex: Bearer {{APIkey}}

Request Parameters

Name Description Data Type Required
supplierCode Please pass supplier code here shared by Catalyse Research. Int True
surveyIds Comma separated survey Ids, e.g. 101,102,103. If not passed, all surveys in your live feed are returned page by page, ordered by surveyId. string False
page Page number, starting at 1. Default 1. Int False
pageSize Surveys per page, 1 to 500. Default 500. Int False
languageCode Same as the Survey endpoint, e.g. EN-US. Optional. string False

Response Parameters

Name Description Data Type
page Page returned int
pageSize Page size used int
totalSurveys Number of surveys available across all pages int
surveys[].surveyId Id of Survey int
surveys[].targetingHash Hash of the survey's qualifications, quotas and groups. Changes only when targeting changes. string
surveys[].qualifications Same as Survey Qualifications response array
surveys[].quotas Same as Survey Quotas response array
surveys[].groups Same as Survey Groups response array

Example Response

{
  "status": 1,
  "message": "Success",
  "data": {
    "page": 1,
    "pageSize": 500,
    "totalSurveys": 7133,
    "surveys": [
      {
        "surveyId": 12415173,
        "targetingHash": "3f2b9c0d5e7a41c8b6f0e2d4a9c1b7e5f3a8d6c2",
        "qualifications": [
          { "qualificationId": 6, "name": "Gender", "qualificationAnswers": [ "12686", "12687" ] }
        ],
        "quotas": [],
        "groups": []
      }
    ]
  }
}

Sample Eye Hash

Calculate Hash

Note: Your URL should include the entire URL, excluding the trailing &

URL before hashing:
Encoded hash:
Final URL:

How does this work?


Python

import hmac
import hashlib
import base64

encoded_key = key.encode('utf-8')
encoded_URL = URL.encode('utf-8')
hashed = hmac.new(encoded_key, msg=encoded_URL, digestmod=hashlib.sha1)
digested_hash = hashed.digest()
base64_encoded_result = base64.b64encode(digested_hash)
final_result = base64_encoded_result.decode('utf-8').replace('+', '-').replace('/', '_').replace('=', '')


PHP

$encoded_key = utf8_encode($key);
$encoded_URL = utf8_encode($URL);
$hashed = hash_hmac('sha1', $encoded_URL, $encoded_key);
$digested_hash = pack('H*',$hashed);
$base64_encoded_result = base64_encode($digested_hash);
$final_result = str_replace(["+","/","="],["-","_",""],utf8_decode($base64_encoded_result))


Node.js

const Crypto = require('crypto');

const hash = Crypto.createHmac('sha1', key).update(url, 'utf-8').digest('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/\=/g, '');
const final_result = encodeURIComponent(hash);


Java

import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.util.Base64;

private static String hashMe(String url, String keyString) throws
    UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException {
    SecretKeySpec key = new SecretKeySpec((keyString).getBytes("UTF-8"), "HmacSHA1");
    Mac mac = Mac.getInstance("HmacSHA1");
    mac.init(key);
    byte[] bytes = mac.doFinal(url.getBytes("UTF-8"));
    byte[] encodedBytes = Base64.getEncoder().encode(bytes);
    String finalResult = new String(encodedBytes);
    return finalResult.replace("+", "-").replace("/", "_").replace("=", "");
}