Skip to navigation

Export demographic data

View as MarkdownOpen in Claude

Create and download a demographic export for a study. This endpoint allows you to export participant demographic data with optional study filter data.

Filter Support: This endpoint supports applying demographic filters to export data for participants who match specific criteria.

When filters are provided, the export includes both base demographic data (age, sex, country, etc.) and the filters.

When no filters are provided, the export includes only base demographic data for all participants who took the study, excluding any study-specific filter responses.

Column keys: By default, each column contributed by filters is keyed by the filter’s human-readable title (e.g. Pets). Pass include_filter_id_columns: true to additionally include, for each of those columns, a second column keyed by the filter’s stable filter_id (e.g. pets) containing the same value - useful if you want a machine-readable key that won’t change if a researcher renames the filter’s title. This is opt-in because it doubles the number of filter-derived columns; the title column is never removed or altered. Base demographic columns are unaffected either way.

Export Usage: Please note that you may only select up to 15 filters per export. You are also limited to 2 different filter export requests.

You may download the same request as many times as you need. To check your current usage and see your latest export history, use the Demographic Export History endpoint.

Basic Data Included: The export includes the following data fields:

  • Submission ID
  • Participant ID
  • Submission status
  • Started date-time
    • Expressed in UTC
    • ISO 8601 formatted
  • Completed date-time
    • Expressed in UTC
    • ISO 8601 formatted
  • Time taken (in seconds)
  • Age
  • Sex
    • Participants were asked the following question: What is your sex, as recorded on legal/official documents?
  • Ethnicity (simplified)
  • First language
  • Current country of residence
  • Nationality
  • Country of birth
  • Student status
  • Employment status
  • Reviewed at date-time
    • Expressed in UTC
    • ISO 8601 formatted
  • Completion code (‘entered code’)
  • Total approvals

Learn more on Exporting Prolific demographic data.

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

Path parameters

idstringRequired
Study ID

Request

This endpoint expects an object.
filterslist of objectsOptional

List of filters to apply to the demographic export.

When filters are provided, the export includes both base demographic data and responses to the specified filters which were applied to the study.

When empty, only base demographic data (age, sex, country, etc.) for all participants who took the study is exported, excluding study-specific filter responses.

include_filter_id_columnsbooleanOptionalDefaults to false

When true, each column contributed by filters is additionally included under a second column keyed by the filter’s stable filter_id (e.g. pets), alongside the existing column keyed by its human-readable title (e.g. Pets) - both containing the same value. Useful for integrations that want a machine-readable key which won’t change if a researcher renames the filter’s title.

Opt-in because it doubles the number of filter-derived columns. The title column is never removed or altered, and base demographic columns are unaffected.

Response

Demographic data exported successfully

Errors

4XX
Client Request Error