Skip to main content
curl "https://xquik.com/api/v1/draws/66666/export?format=csv&type=winners" \
  -H "x-api-key: xq_a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2" \
  -o draw-winners-66666.csv

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, xlsx, or md.
type
string
Data to export. winners exports the selected winners, entries exports all collected replies. Default winners.

Headers

x-api-key
string
required
Your API key. This endpoint also accepts session cookie authentication.

Response

Returns a file download with the appropriate Content-Type and Content-Disposition headers.
FormatContent-TypeFilename
csvtext/csv; charset=utf-8draw-winners-{id}.csv
xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetdraw-winners-{id}.xlsx
mdtext/markdown; charset=utf-8draw-winners-{id}.md
Winner export columns: Position, Username, Text, BackupEntry export columns: Username, Text, Passed Filter, LanguageEntry exports are capped at 50,000 rows.
Related: Get Draw to retrieve draw details and winners as JSON · List Draws to find draw IDs.