[hypequery](https://hypequery.com/) › hypequery Use Cases | hypequery
Index for agents: https://hypequery.com/llms.txt
Canonical page: https://hypequery.com/use-cases

> See the two main ways teams adopt hypequery: adding analytics to existing product APIs or shipping tenant-scoped SaaS analytics on ClickHouse.

Use Cases

# ClickHouse analytics use cases for product APIs and SaaS

These are the two adoption paths that show up most often: teams layering analytics into an existing backend, and teams shipping customer-facing analytics with tenant boundaries that need to hold up in production.

Adoption path

Incremental

Where metrics are defined

Typed queries

Runtime model

In-process or HTTP

Use Cases

## Start with the path closest to the codebase you already have

[Internal Product APIs](https://hypequery.com/use-cases/internal-product-apis)

### [Add analytics to existing product endpoints](https://hypequery.com/use-cases/internal-product-apis)

[Keep your route contracts stable and compose analytics directly inside business handlers.](https://hypequery.com/use-cases/internal-product-apis)

[- No forced service split- Reuse query definitions in-process and over HTTP- Roll out incrementally by endpoint](https://hypequery.com/use-cases/internal-product-apis)

[Open use case](https://hypequery.com/use-cases/internal-product-apis)

[Multi-tenant SaaS](https://hypequery.com/use-cases/multi-tenant-saas)

### [Ship tenant-aware analytics APIs by default](https://hypequery.com/use-cases/multi-tenant-saas)

[Resolve auth context once, inject tenant filters automatically, and enforce role checks in query definitions.](https://hypequery.com/use-cases/multi-tenant-saas)

[- Tenant isolation without custom middleware sprawl- Role checks live next to query logic- Scales from early-stage to enterprise tenancy models](https://hypequery.com/use-cases/multi-tenant-saas)

[Open use case](https://hypequery.com/use-cases/multi-tenant-saas)

Step 01

### Pick one repeated query

Start with analytics logic that already appears in more than one place in your codebase.

Step 02

### Put it on a shared path

Either call it in-process from the backend you already run or expose it under a controlled internal API path.

Step 03

### Expand only after it proves useful

Let more consumers depend on the same definition instead of minting new one-off query copies.

Next step

### Start with the use case closest to your current architecture

Do not start by adopting everything at once. Pick the path that matches your existing backend shape and replace one real query first.

[Open quick start](https://hypequery.com/docs/quick-start)
