Skip to navigation

Calculate the study cost

View as MarkdownOpen in Claude
Calculate the study cost, including VAT and fees.

Authentication

AuthorizationToken

The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings.

Your API token does not have an expiry date and carries full permission, so be sure to keep them secure.

If your token is leaked, delete it and create a new one directly in the app.

In your requests add Authorization header with the value Token <your token>.

Request

This endpoint expects an object.
rewarddoubleRequired

How much are you going to pay the participants in cents. We use the currency of the workspace given by workspace_id, or of your last active workspace if no workspace_id is sent. If you have no last active workspace, we use the currency of your account.

total_available_placesdoubleRequired
How many participants are you looking to recruit
workspace_idstringOptional

The ID of the workspace you plan to create the study in.

Include this to get a cost that matches what that workspace will be charged. The workspace’s fee percentage, VAT rate and currency are used. If omitted, your last active workspace is used, or your own account’s rates if you have none. If you work in more than one workspace, the fee percentage, VAT rate and currency can differ between them, so the estimate may not match the cost of a study created in a different workspace. For an accurate cost, always send the workspace_id of the workspace you plan to use.

Response

Calculated total cost
total_costdouble

Total cost of the study including VAT and fees in cents. We use the fee percentage and VAT rate of the workspace given by workspace_id, or of your last active workspace if no workspace_id is sent. If you have no last active workspace, we use those of your account. The amount is in the currency of the workspace used, or of your account if you have no last active workspace.

Errors

4XX
Client Request Error