# PostHog connector

> Connect PostHog to Windsor.ai: 101 fields in 9 tables, and how to query them or send them to a destination.

The PostHog connector pulls your PostHog data into Windsor.ai. You can query it with one API, send it to a destination, or ask about it in Claude or ChatGPT.

## Connect PostHog

1. Open [PostHog in Windsor.ai](https://onboard.windsor.ai/app/posthog) and sign in.
2. Authorize PostHog, or enter the credentials that the screen asks for.
3. Select the accounts to include.

## Available data

101 fields in 9 tables.

| Table | Fields | Examples |
| --- | --- | --- |
| insights | 23 | insights.created_at, insights.created_by, insights.deleted, insights.description, insights.effective_privilege_level |
| Other | 18 | Data fetched at, Data Source, Day of month, Month, Now |
| projects | 13 | Project ID, Project Name, projects.access_control, projects.api_token, projects.completed_snippet_onboarding |
| cohorts | 11 | cohorts.count, cohorts.created_at, cohorts.created_by, cohorts.deleted, cohorts.errors_calculating |
| annotations | 10 | annotations.content, annotations.created_at, annotations.created_by, annotations.creation_type, annotations.dashboard_item |
| feature_flags | 9 | feature_flags.active, feature_flags.created_at, feature_flags.created_by, feature_flags.deleted, feature_flags.filters |
| events | 8 | events.distinct_id, events.elements, events.elements_chain, events.event, events.id |
| persons | 6 | persons.created_at, persons.distinct_ids, persons.id, persons.name, persons.properties |
| General | 3 | Account ID, Account Name, Date |

The full list, with the type and description of each field, is at `https://connectors.windsor.ai/posthog/fields`.

## Query the data

Request fields by their IDs. For example:

```url
https://connectors.windsor.ai/posthog?api_key=YOUR_API_KEY&fields=date,insights__created_at,insights__created_by&date_preset=last_7d
```

## Next steps

- [Send the data to a destination](https://windsor.ai/documentation/destinations/index.md), such as Looker Studio, Google Sheets or BigQuery.
- [Connect Windsor.ai to Claude or ChatGPT](https://windsor.ai/documentation/mcp/index.md) and ask about your PostHog data.
- [Fix a connection problem](https://windsor.ai/documentation/troubleshooting/index.md).
