> For the complete documentation index, see [llms.txt](https://docs.acho.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acho.io/acho-studio/resources/import-data/posthog.md).

# PostHog

### Connect to PostHog

1\. Go to the **Resources** page and click the <img src="/files/luUqNwhjG7IZbheUpaBG" alt="" data-size="line">  button.&#x20;

2\. Select **PostHog**.

3\. Enter your account credentials and click **Connect**.&#x20;

* **`API Key`**: Please follow these [steps](https://posthog.com/docs/api/overview#how-to-obtain-a-personal-api-key) to obtain Private API Key for your account.&#x20;
* **`Base URL`**: Base PostHog URL. The default value is PostHog Cloud (`https://app.posthog.com`).
* **`Start Date`**: Retrieve data after this date. The date should be in the format of YYYY-MM-DD in UTC.

4\. Choose tables to import and click **Finish Setup**.&#x20;

5\. You will see a  <img src="/files/-MgBo4LSmdK4OS-NqLZy" alt="" data-size="line"> icon next to your resource. It may take a few minutes to several hours depending on the data size and the number of your tables. Once your data is ready, you will receive a notification email.&#x20;

### Supported table <a href="#output-schema" id="output-schema"></a>

* [Annotations](https://posthog.com/docs/api/annotations) (Incremental)
* [Cohorts](https://posthog.com/docs/api/cohorts)
* [Events](https://posthog.com/docs/api/events) (Incremental)
* [FeatureFlags](https://posthog.com/docs/api/feature-flags)
* [Insights](https://posthog.com/docs/api/insights)
* [InsightsPath](https://posthog.com/docs/api/insights)
* [InsightsSessions](https://posthog.com/docs/api/insights)
* [Persons](https://posthog.com/docs/api/people)
* [Trends](https://posthog.com/docs/api/insights)
