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
Your API key. Session cookie authentication is also supported.
Path parameters
Query parameters
Export file format. Must be one of csv, json, md, md-document, pdf, txt, xlsx.
Data to export. winners exports the selected winners, entries exports all collected replies. Default winners.
Response
200 OK
400 Invalid ID
400 Invalid Params
401 Unauthenticated
404 Not Found
Returns a file download with the appropriate Content-Type and Content-Disposition headers.| Format | Content-Type | Filename |
|---|
csv | text/csv; charset=utf-8 | draw-winners-{id}.csv |
json | application/json; charset=utf-8 | draw-winners-{id}.json |
md | text/markdown; charset=utf-8 | draw-winners-{id}.md |
md-document | text/markdown; charset=utf-8 | draw-winners-{id}.md |
pdf | application/pdf | draw-winners-{id}.pdf |
txt | text/plain; charset=utf-8 | draw-winners-{id}.txt |
xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | draw-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). { "error": "invalid_id" }
The provided draw ID is not a valid format.{ "error": "invalid_params" }
Missing or invalid format value, or invalid type value. Format must be csv, json, md, md-document, pdf, txt, or xlsx. Type must be winners or entries.{ "error": "unauthenticated" }
Missing or invalid API key / session cookie.No draw exists with this ID, or it belongs to a different account.
Next steps: Get Draw to retrieve draw details and winners as JSON · List Draws to find draw IDs.