Skip to main content
GET
/
draws
/
{id}
/
export
Export draw
curl --request GET \
  --url https://xquik.com/api/v1/draws/{id}/export \
  --header 'x-api-key: <api-key>'

Documentation Index

Fetch the complete documentation index at: https://docs.xquik.com/llms.txt

Use this file to discover all available pages before exploring further.

Free - does not consume credits
curl "https://xquik.com/api/v1/draws/f4bd00a2-7b4e-4e59-8e1b-72e2c9f12345/export?format=csv&type=winners" \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -o draw-winners-f4bd00a2.csv

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported.

Path parameters

id
string
required
The draw public ID. Returned when you create a draw or list draws.

Query parameters

format
string
required
Export file format. Must be one of csv, json, md, md-document, pdf, txt, xlsx.
type
string
Data to export. winners exports the selected winners, entries exports all collected replies. Default winners.

Response

Returns a file download. The response includes a Content-Disposition header with the filename.

CSV

format=csv returns text/csv; charset=utf-8 with filenames like draw-winners-*.csv.

JSON

format=json returns application/json; charset=utf-8 with filenames like draw-winners-*.json.

Markdown

format=md returns text/markdown; charset=utf-8 with filenames like draw-winners-*.md.

Markdown document

format=md-document returns text/markdown; charset=utf-8 with filenames like draw-winners-*.md.

PDF

format=pdf returns application/pdf with filenames like draw-winners-*.pdf.

TXT

format=txt returns text/plain; charset=utf-8 with filenames like draw-winners-*.txt.

XLSX

format=xlsx returns application/vnd.openxmlformats-officedocument.spreadsheetml.sheet with filenames like draw-winners-*.xlsx.
Entry exports use the same suffix pattern with draw-entries-* filenames.Winner export columns: Position, Username, Text, BackupEntry export columns: Username, Text, Passed Filter, LanguageEntry exports are capped at 100,000 rows (10,000 for PDF).
Next steps: Get Draw to retrieve draw details and winners as JSON · List Draws to find draw IDs.
Last modified on May 13, 2026