Surveys-2
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET |
Retrieve surveys responses count
Get response counts for all surveys.
Args: exclude_archived: Optional boolean to exclude archived responses (default: false, includes archived) survey_ids: Optional comma-separated list of survey IDs to filter by
Returns: Dictionary mapping survey IDs to response counts
Required API key scopes
survey:readExample request
GET /api /projects /:project_id /surveys /responses_countExample response
Status 200 No response body
Retrieve surveys global stats
Get aggregated response statistics across all surveys.
Args: date_from: Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z) date_to: Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)
Returns: Aggregated statistics across all surveys including total counts and rates
Required API key scopes
survey:readQuery parameters
- date_fromstring
- date_tostring
Response
Example request
GET /api /projects /:project_id /surveys /statsExample response
Status 200
RESPONSE