v1

latestOpenAPI 3.0.32026-07-171140286.6 KB
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

Authorizationstring
Content-Typestring
Acceptstring
Accept-languagestring

Request body

device_idstring

Device id to download data from

startstring required

Date for start of data export.

endstring required

Date for end of data export.

separatorstring

Symbol that should be used to separate columns in CSV file.

measurementsstring

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.

linkboolean

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:

Example request

{
  "device_id": "non",
  "start": "2020-05-27 16:16",
  "end": "2020-05-30 00:00",
  "separator": ";",
  "measurements": "'am2315_t,am2315_h,mhz_co2'",
  "link": true
}