---
title: "api/export/csv POST
Generate a CSV measurement data export from InfluxDB. Make sure not to load a too large timespan (i.e. > 30 days), because the call will not succeed due to memory overload."
method: POST
path: "/api/export/csv"
tags: ["Api\\ExportController"]
---

# api/export/csv POST
Generate a CSV measurement data export from InfluxDB. Make sure not to load a too large timespan (i.e. > 30 days), because the call will not succeed due to memory overload.

`POST /api/export/csv`

## Headers

- `Authorization` string
- `Content-Type` string
- `Accept` string
- `Accept-language` string

## Request body

- object
  - `device_id` string — Device id to download data from
  - `start` string, required — Date for start of data export.
  - `end` string, required — Date for end of data export.
  - `separator` string — Symbol that should be used to separate columns in CSV file.
  - `measurements` string — Comma separated list of measurement types to load. If you want a lot of data (i.e. > 30 days), make sure not to load more than one measurement.
  - `link` boolean — filled means: save the export to a file and provide the link, not filled means: output a text/html header with text containing the .csv content. Example:

## Changes

> 15 revisions in range; 1 could not be searched.

- **2022-06-20** `a87569f002e1` — 1 info
  - added the new optional `header` request parameter `Accept-language`
- **2022-06-10** `568ca15f3476` — 1 warning
  - deleted the `header` request parameter `Accept-language`

[Change history](https://skmtc.dev/beepnl/apis/beep/changes/api/export/csv/post.md)

---

[API](https://skmtc.dev/beepnl/apis/beep.md) · [All operations](https://skmtc.dev/beepnl/apis/beep/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beepnl/beep/revisions/7f1e35deb524/schema)
