---
title: "Export draw data"
method: GET
path: "/draws/{id}/export"
tags: ["Draws"]
---

# Export draw data

`GET /draws/{id}/export`

## Path parameters

- `id` string, required

## Query parameters

- `format` 'csv' | 'json' | 'md' | 'md-document' | 'pdf' | 'txt' | 'xlsx'
- `type` 'winners' | 'entries'

## Response `200`

Exported draw file

## Other responses

- `401` — Unauthenticated
- `402` — Payment required. Returns a WWW-Authenticate header with an MPP challenge for pay-per-use endpoints, or indicates a subscription/credit issue for identity-authenticated endpoints.
- `404` — Not found

## Changes

- **2026-04-25** `2adc33156b4b` — 4 warning, 7 info
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `401`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `404`
  - added the new `no_credits` enum value to the `error` response property for the response status `401`
  - added the new `no_credits` enum value to the `error` response property for the response status `404`
  - …7 more

[Change history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/draws/:id/export/get.md)

---

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