Getting started with endpoints
Define your data
Endpoints serve data from insights and SQL queries through an API. Create or select the insight or SQL query that returns the data you want to expose via API.


Create an endpoint
Now that you have an insight or query containing the data you wish to serve, turn your insight or SQL query into a stable API endpoint you can call from your applications.


Retrieve your data
You're ready to call your endpoint from your application using your preferred language or framework. Here are some ideas of what you can build:
- Build embedded analytics: Show analytics to your customers in your own application
- Data on your landing page: Expose live metrics on your landing page in minutes
- Pull aggregated PostHog data into your app: Use PostHog data to create feeds with top content, recommended items or more
- Integrate your users' behavior data in internal tools: Make a simple API call from your Retool app and show your users' behavior data right next to your admin tools


Choose your language
Learn more
To get the most out of Endpoints, you should also familiarize yourself with these important concepts:
Use for free
Endpoints is free during beta. When pricing goes into effect, it will be based on compute usage and data scanned.
- No credit card required to start
- We'll notify all beta users before any pricing changes