---
title: "Export experiment data"
method: GET
path: "/experiments/{id}/export"
tags: ["experiments"]
---

# Export experiment data

`GET /experiments/{id}/export`

Export all data from an experiment, including participant responses and stage results

## Path parameters

- `id` string, required

## Query parameters

- `format` 'json'

## Response `200`

Successful export

- ExperimentExport — Experiment configuration without participant data
  - `experiment` Experiment
    - `id` string — Unique experiment identifier
    - `versionId` integer — Experiment version ID for backwards compatibility
    - `metadata` Metadata — Experiment metadata
      - `name` string — Experiment name
      - `publicName` string — Public-facing experiment name
      - `description` string — Experiment description
      - `tags` string[] — Tags for categorization
      - `creator` string — Experimenter ID who created the experiment
      - `starred` object — Maps experimenter IDs to starred status
      - `dateCreated` object — Firestore timestamp
      - `dateModified` object — Firestore timestamp
    - `permissions` object — Experiment permissions
      - `visibility` 'public' | 'private' — Experiment visibility
      - `readers` string[] — List of experimenter IDs with read access
    - `stageIds` string[] — Ordered list of stage IDs (stages are stored in a subcollection, not returned in this response)
    - `defaultCohortConfig` object — Default cohort configuration
    - `prolificConfig` object — Prolific integration configuration
    - `cohortLockMap` object — Maps cohort ID to lock status
  - `stageMap` object — Maps stage ID to stage config
  - `agentMediatorMap` object — Maps agent mediator persona ID to agent template
  - `agentParticipantMap` object — Maps agent participant ID to agent template
  - `participantMap` object — Maps participant public ID to participant download
  - `cohortMap` object — Maps cohort ID to cohort download
  - `alerts` object — Maps participant private ID to list of alerts

## Other responses

- `401` — Unauthorized - Missing or invalid API key
- `403` — Forbidden - Insufficient permissions or browser access attempted
- `404` — Not found - Resource doesn't exist
- `429` — Too many requests - Rate limit exceeded

---

[API](https://skmtc.net/pair-code/apis/deliberate-lab-api.md) · [All operations](https://skmtc.net/pair-code/apis/deliberate-lab-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pair-code/deliberate-lab-api/versions/f58e6c25e4f8/schema)
