Export Survey Responses
export_survey_responsesExports ALL responses of a survey as a downloadable file (variables as columns, one row per response) and returns a temporary download link — never inline file bytes. The link is an unguessable URL with a 128-bit random token; it expires after ~15 minutes. Re-run the tool for a fresh link. Besides the question columns the file carries the response's system columns, among them the respondent ID and the query-string parameters of the link the response came from. Returns a temporary file link, suited to large data sets; list_survey_responses returns the same data inline. Column names are Q-codes as returned by get_survey (or custom IDs with useCustomID). All timestamps are UTC. Counted against the export rate class (12 requests per hour per token). The SPSS/CSV/XLSX file can be used for analysis outside the built-in stat tools. Respondent contact / personal data is not returned through this API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Survey publication code — the 8-character code from the survey's public link (e.g. 1a2b3c4d). Returned by list_surveys. | |
| format | Yes | File format. XLSX = Excel workbook; CSV = semicolon-separated text; SPSS = .sav data file for statistics packages. | |
| useCustomID | No | true = use the questions' custom IDs as column names instead of positional Q-codes. | |
| answersAsText | No | true = export answer labels instead of numeric answer codes (XLSX/CSV only). | |
| loopsIsOneRow | No | true = put all loop iterations of a response into one row. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| format | No | ||
| summary | No | ||
| fileName | No | ||
| expiresAt | No | ||
| sizeBytes | No |