posthog_query
Run ad-hoc HogQL/SQL queries against a PostHog project's events to inspect and analyze event data.
Instructions
Run an ad-hoc HogQL (SQL) query against a PostHog project's events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | PostHog host (default https://us.posthog.com) | |
| query | Yes | HogQL/SQL query (e.g. select count() from events) | |
| api_key | Yes | PostHog Personal API key | |
| project_id | No | PostHog project id (can be a saved default) |