Get live respondent activity summary
const url = 'https://app.surveyrock.com/api/v1/respondent-activity/live-summary';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.surveyrock.com/api/v1/respondent-activity/live-summary \ --header 'Authorization: Bearer <token>'Since-midnight and currently-active respondent counts for the authenticated account, broken down by country. Powers the “since midnight” live-visitor widget. Requires authentication but no specific scope.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Live respondent activity summary
object
object
Respondents who started a survey since local midnight
Respondents currently in an active session
object
Standard response metadata
object
Response timestamp in ISO 8601 format
API version
Unique request identifier
Example
{ "success": true, "meta": { "version": "3.0" }}Unauthorized - invalid or missing token
Standard error response format
object
object
Stable, snake_case domain code – see ApiErrorHandler::EXCEPTION_MAP and DomainException
Human-readable error message
Imperative recovery hint for this domain code – see ApiErrorHandler::DOMAIN_CODE_SUGGESTIONS
Whether retrying the identical request might succeed without any change on the caller’s end
Additional, code-specific error details
object
Standard response metadata
object
Response timestamp in ISO 8601 format
API version
Unique request identifier
Example
{ "success": false, "error": { "code": "survey_not_found" }, "meta": { "version": "3.0" }}