PostHog Query API

The PostHog Query API provides programmatic access to run HogQL queries against your PostHog data. HogQL is PostHog's SQL-like query language that enables custom analytics queries, funnel analysis, retention analysis, and trend calculations. This API allows developers to build custom dashboards and reporting tools powered by PostHog data.

API entry from apis.yml

apis.yml Raw ↑
aid: posthog:query-api
name: PostHog Query API
description: The PostHog Query API provides programmatic access to run HogQL queries against your PostHog
  data. HogQL is PostHog's SQL-like query language that enables custom analytics queries, funnel analysis,
  retention analysis, and trend calculations. This API allows developers to build custom dashboards and
  reporting tools powered by PostHog data.
humanURL: https://posthog.com/docs/api/query
tags:
- Analytics
- HogQL
- Queries
- Reporting
properties:
- type: Documentation
  url: https://posthog.com/docs/api/query