Skip to main content
GET
/
draws
/
{id}
/
export
Export draw
curl --request GET \
  --url https://api.example.com/draws/{id}/export \
  --header 'x-api-key: <x-api-key>'
Free — does not consume credits
curl "https://xquik.com/api/v1/draws/66666/export?format=csv&type=winners" \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -o draw-winners-66666.csv

Headers

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

Path parameters

id
string
required
The unique draw 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 with the appropriate Content-Type and Content-Disposition headers.
FormatContent-TypeFilename
csvtext/csv; charset=utf-8draw-winners-{id}.csv
jsonapplication/json; charset=utf-8draw-winners-{id}.json
mdtext/markdown; charset=utf-8draw-winners-{id}.md
md-documenttext/markdown; charset=utf-8draw-winners-{id}.md
pdfapplication/pdfdraw-winners-{id}.pdf
txttext/plain; charset=utf-8draw-winners-{id}.txt
xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetdraw-winners-{id}.xlsx
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.