---
title: "Get event metrics for a pipeline"
method: GET
path: "/pipeline/{pipeline_id}/event_metrics"
tags: ["Metrics"]
---

# Get event metrics for a pipeline

`GET /pipeline/{pipeline_id}/event_metrics`

## Request

- Base URL: `https://api.mezmo.com/v3`
- URL: `https://api.mezmo.com/v3/pipeline/{pipeline_id}/event_metrics`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/mezmo/apis/pipeline-api/docs/pipeline/:pipeline_id/event_metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Query and fetch event metrics for a pipeline

## Path parameters

- `pipeline_id` string, uuid, required

## Query parameters

- `bucket` number, required
- `field` 'app' | 'host' | 'label' | 'level'
- `from` string, date-time, required
- `to` string, date-time, required
- `with_changes` boolean

## Response `200`

Default Response

---

[API](https://skmtc.dev/mezmo/apis/pipeline-api.md) - [All operations](https://skmtc.dev/mezmo/apis/pipeline-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mezmo/apis/pipeline-api/revisions/fb2535545d90?raw)
