---
title: "Export testrun data as CSV"
method: GET
path: "/export/testrun/csv"
tags: ["Exporter"]
---

# Export testrun data as CSV

`GET /export/testrun/csv`

## Request

- Base URL: `https://app.testiny.io/api/v1`
- URL: `https://app.testiny.io/api/v1/export/testrun/csv`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/testiny/apis/testiny-api/docs/export/testrun/csv/get.ts> (a function with typed inputs; its response is checked against the schema)

Export testrun data as CSV based on the supplied parameters. Must include a project id (project_id) and a testrun id (tr_id).

## Query parameters

- `project_id` integer, required
- `tr_id` integer, required
- `delimiter` string
- `lang` string

## Response `200`

Returns 'ExportCsvResult'

- string: The exported data in CSV format

## Other responses

- `4XX`: The request failed because invalid request parameters or data were supplied or access was denied.
- `5XX`: The request failed because an error occurred during processing of the request.

---

[API](https://skmtc.dev/testiny/apis/testiny-api.md) - [All operations](https://skmtc.dev/testiny/apis/testiny-api/llms.txt) - [OpenAPI document](https://skmtc.dev/testiny/apis/testiny-api/revisions/8f7643b2429d?raw)
