---
title: "Get experiment analysis plan"
method: GET
path: "/api/v2/experiments/{experiment_id}/analysis-plan"
tags: ["Experiments"]
---

# Get experiment analysis plan

`GET /api/v2/experiments/{experiment_id}/analysis-plan`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/experiments/{experiment_id}/analysis-plan`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `product_analytics_experiments_read`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/experiments/:experiment_id/analysis-plan/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the effective public statistical analysis settings for an experiment. has_custom_analysis_settings compares only settings the caller can edit; protocol-required differences from company defaults do not make the plan custom.

## Path parameters

- `experiment_id` string, uuid, required: The UUID of the experiment.

## Response `200`

OK

- ExperimentsAnalysisPlanV2DTO: Response containing the analysis settings for an experiment.
  - `data` ExperimentsAnalysisPlanV2DTOData, required: Analysis plan resource with its identifier and settings.
    - `attributes` ExperimentsAnalysisPlanV2MutationResponseDataAttributes: Statistical settings and duration targets in the saved analysis plan.
      - `bayesian_prior` ExperimentsAnalysisPlanV2MutationResponseDataAttributesBayesianPrior: Parameters of the prior distribution used for Bayesian analysis.
        - `degrees_of_freedom` number, double, nullable: Degrees of freedom of the prior distribution.
        - `standard_deviation` number, double: Standard deviation of the prior distribution.
      - `confidence_interval_method` 'Sequential' | 'FixedSample' | 'Bayesian' | 'SequentialFixedHybrid': Statistical method used to calculate the experiment results.
      - `confidence_level` number, double: Confidence level used for statistical analysis, expressed as a fraction.
      - `cuped_lookback_period_days` integer: Number of days of pre-experiment data used for CUPED variance reduction.
      - `experiment_auto_end_days` integer: Number of days configured for the experiment to end automatically.
      - `experiment_min_duration` integer: Minimum experiment duration in days configured in the analysis plan.
      - `experiment_min_sample_size` integer: Minimum sample size configured in the analysis plan.
      - `has_custom_analysis_settings` boolean: Whether the experiment has custom analysis settings.
      - `is_cuped_enabled` boolean: Whether CUPED uses pre-experiment data to reduce variance in the analysis.
      - `is_multiple_testing_correction_enabled` boolean: Whether the analysis adjusts for testing multiple hypotheses.
      - `preferential_bonferroni_primary_metric_weight` number, double: Weight assigned to the primary metric in the preferential Bonferroni correction.
      - `target_duration_days` integer, nullable: Planned experiment duration in days.
    - `id` string, uuid, required: Identifier of the experiment whose analysis plan is returned.
    - `type` 'analysis-plans', required: Analysis plans resource type.

## Other responses

- `400`: Malformed experiment ID.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
