provider surveys GET /api/projects/{project_id}/surveys/stats/
@utdk/posthog /api/projects/{project_id}/surveys/stats/
surveys_global_stats_retrieve
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
date_from query
Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z)
string
date_to query
Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
surveysGlobalStatsRetrieve
GET/api/projects/{project_id}/surveys/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

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z)

Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.surveysGlobalStatsRetrieve()