Parameterization
Contents
Endpoints is currently in early beta. While in beta, endpoints is free to use.
We're always looking for feedback to improve endpoints, please reach out to us directly in app.
Parameterization lets you customize endpoint results at execution time without creating multiple endpoints. There are three approaches depending on your query type.
Variables (HogQL queries)
For HogQL endpoints, use variables to inject values into your query at runtime.
Define variables in your query using the {variables.variable_name} syntax:
Then pass values when executing:
Note: Endpoints with variables cannot be materialized since the results depend on the input values.
Query override (Insight queries)
For Insight-based endpoints (Trends, Funnels, etc.), use query_override to modify query parameters at runtime.
This lets you override things like date ranges, intervals, or breakdown properties without changing the endpoint definition.
Filters override (all query types)
Use filters_override to apply property filters to any endpoint type. This narrows results without modifying the underlying query.
Which to use?
| Query type | Use | When |
|---|---|---|
| HogQL | variables | Dynamic values in your SQL query |
| Insight | query_override | Modify query parameters like date range |
| Any | filters_override | Filter results by properties |
You can combine filters_override with either variables or query_override in the same request.