---
title: "Get results of a query execution in CSV format"
method: GET
path: "/v1/execution/{execution_id}/results/csv"
---

# Get results of a query execution in CSV format

`GET /v1/execution/{execution_id}/results/csv`

Given a query ID, returns the latest executed result of a query on Dune in CSV format

## Path parameters

- `execution_id` string, required

## Query parameters

- `api_key` string
- `allow_partial_results` boolean
- `columns` string
- `filters` string
- `ignore_max_credits_per_request` boolean
- `limit` integer
- `offset` integer
- `sample_count` integer
- `sort_by` string

## Headers

- `X-Dune-Api-Key` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dune/apis/duneapi.md) · [All operations](https://skmtc.dev/dune/apis/duneapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dune/duneapi/revisions/f3a7a865f95b/schema)
