Get survey results
GET /audiences/{audienceUuid}/surveys/{uuid}/stats
/audiences/{audienceUuid}/surveys/{uuid}/statsReturns the aggregated results of a survey: completed responses (human answers only; bot/scanner votes are excluded), completion rate (page surveys), most voted option (polls), responses grouped by campaign, and per-question aggregates. Individual answers are never exposed: open text questions only carry their count.
When to use: To see how a survey is performing: how many people answered, which option won (polls) and the results per question and per campaign.
When not to use: To read the survey definition use get_survey.
Permissions: Requires the manager role or higher, or the marketing.surveys.read capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the audience the survey belongs to. Get it with list_audiences.
UUID of the survey. Get it with list_surveys.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/surveys/b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74/stats" \ -H "X-Auth-Token: YOUR_API_KEY"{ "total_responses": 0, "identified_responses": 0, "responses_last_seven_days": 0, "started_not_completed": 0, "completion_rate": 0, "poll_winner": { "text": "string", "percent": 0 }, "last_response_at": "2019-08-24T14:15:22Z", "responses_by_campaign": [ { "campaign_uuid": "804ff1a5-7b75-4b28-bf66-3371374e351b", "campaign_title": "string", "responses": 0 } ], "questions": [ {} ]}