Wave-over-wave trend for a tracking study
POST
/v2/analytics/wave-trend
const url = 'https://api.surveycoder.io/v2/analytics/wave-trend';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"study_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.surveycoder.io/v2/analytics/wave-trend \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "study_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Trends are computed across all waves of a study (project). Waves are per-question and aggregated server-side; pass the study/project id, not a question id.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
study_id
required
string format: uuid
Example generated
{ "study_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “ Responses ”Wave-by-wave aggregates