Get filter distribution

View as MarkdownOpen in Claude
Get the distribution of a filter.

Authentication

Authorizationstring
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>`.

Path Parameters

idstringRequired

ID of the filter to get distribution for. Only filters tagged with “custom-group” are supported.

Query Parameters

workspace_idstringRequired
ID of your current workspace.
distribution_filtersstringRequired

Filters to get distributions for. This should be a comma-separated list of filter IDs. Only filters tagged with “allow-distribution” are supported.

Response

Filter distribution
distributionmap from strings to maps from strings to integers or null

Distribution data for the specified distribution_filters

Errors