---
title: "Get Campaign results as a CSV"
method: GET
path: "/export/campaigns/{campaign_id}/results/csv"
tags: ["Campaigns"]
---

# Get Campaign results as a CSV

`GET /export/campaigns/{campaign_id}/results/csv`

Get results for a Campaign as a CSV

## Path parameters

- `campaign_id` integer, required

## Query parameters

- `start_time` string, date-time
- `end_time` string, date-time
- `browser` 'firefox' | 'chrome' | 'internet_explorer' | 'opera' | 'safari'
- `device` 'desktop' | 'ipad' | 'iphone' | 'mobile' | 'tablet'
- `source` 'campaign' | 'direct' | 'referral' | 'search'
- `attribute_id` integer
- `attribute_value` string
- `segment_conditions` string

## Response `200`

Return Campaign results in CSV format

Name of the columns returned: 'Start Time (UTC)', 'End Time (UTC)', 'Is Baseline Variation', 'Metric Event Name', 'Metric Event ID', 'Metric Numerator Type', 'Metric Denominator Type', 'Metric Winning Direction', 'Numerator Value', 'Denominator Value', 'Metric Value', 'Improvement Status from Baseline', 'Improvement Value from Baseline', 'Statistical Significance', 'Is Improvement Significant', 'Confidence Interval - Low', 'Confidence Interval - High', 'Samples Remaining to Significance'

([Column reference guide for CSV export](https://help.optimizely.com/Export_to_CSV_column_reference_for_campaigns_and_experiments))

## Other responses

- `202` — The results request has been received but has not yet finished processing. Wait a bit and try again.
- `204` — There are no results data for this Campaign yet. Make sure the Campaign is started and try again later.
- `default` — Unexpected error

---

[API](https://skmtc.dev/optimizely/apis/optimizely-api.md) · [All operations](https://skmtc.dev/optimizely/apis/optimizely-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/optimizely/optimizely-api/revisions/5151fe6a2297/schema)
