Calculate reward recommendations
Changed onCalculate the recommended participant reward rates for a data collection, optionally based upon a given set of filters.
min_reward_per_hour is the higher of Prolific's platform minimum and the minimum set for the workspace. GET does not include verified-filter minimums, which may raise the minimum required to publish a study. min_reward_per_hour_source identifies which floor supplies the returned minimum. If no recommendations are available, a single GLOBAL entry carrying that minimum and source is returned. The same entry is returned if the recommendation service is unavailable (it errors, returns a 5xx, or returns an unreadable body). Client errors (4xx) from the recommendation service are returned unchanged.
Request
- Base URLhttps://api.prolific.com
- URLhttps://api.prolific.com/api/v1/reward-recommendations/
- AuthAPI key in header Authorization
Query parameters
The ID of the workspace in which you'll be creating the study
An ISO 4217 currency code. Note that we only support a selection of currency codes as per the enum values.
A URL-encoded, comma-delimited list of filter IDs (e.g. custom group filter IDs) that you plan to apply to your study.
There are various methods of converting an array of filter IDs to a URL-encoded, comma delimited array e.g:
JavaScript:
const screenerIDs = ["mandarin", "spanish"];
const encodedScreenerIDs = encodeURIComponent(screenerIDs.join(","));
const url = `https://api.prolific.com/api/v1/reward-recommendations?screener_ids=${encodedScreenerIDs}&workspace_id=<workspace ID>¤cy=GBP`
Python:
import urllib.parse
screener_ids = ["mandarin", "spanish"]
encoded_screener_ids = urllib.parse.quote(",".join(screener_ids))
url = f"https://api.prolific.com/api/v1/reward-recommendations?screener_ids={encoded_screener_ids}&workspace_id=<workspace ID>¤cy=GBP"
Response
A list of reward recommendations. We suggest using the first recommendation in the list as this is guaranteed to be the most recent set of reward rates.
Changes
- info
added the required property
/to the response with the status
- info
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
tokenwas added to the API
- warning