> ## Documentation Index
> Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get event metrics for an experiment run (deprecated)

> Deprecated. Use `GET /v1/projects/{project_id}/runs/{run_id}/metrics` with a data plane API key instead. Retrieves event metrics from ClickHouse for a specific experiment run



## OpenAPI

````yaml https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/data_plane_openapi.yaml get /v1/runs/{run_id}/metrics
openapi: 3.1.0
info:
  title: HoneyHive Data Plane API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 1.17.0
servers:
  - url: https://api.dp1.us.honeyhive.ai
security: []
tags:
  - name: Charts
    description: >
      Define and manage saved charts. Charts are visualizations that aggregate
      metrics over time with bucketing, filters, and groupings.
  - name: Configurations
    description: >
      Manage prompt configurations, i.e. model parameters, message templates,
      and response settings that can be versioned and deployed without code
      changes.
  - name: Data Plane Api Keys
    description: >
      Create fine-grained data plane API keys for a project from a provisioning
      flow, using an organization-rooted key that is permitted to create keys.
  - name: Datapoints
    description: >
      Manage individual records inside datasets, including batch creation and
      mapping to source events.
  - name: Datasets
    description: >
      Curate collections of datapoints used as test sets for evaluations and
      experiments.
  - name: Events
    description: >
      Read and write trace events. Events are the spans that capture every step
      of an AI application's execution.
  - name: Experiments
    description: >
      Run, retrieve, and compare evaluation runs to measure how prompt or
      configuration changes affect agent performance.
  - name: Ingestion Api Keys
    description: >
      Create ingestion API keys for a project from a provisioning flow, using an
      organization-rooted data plane key that is permitted to create keys. An
      ingestion key is the credential an application sends traces with.
  - name: Metric Versions
    description: >
      Snapshot, list, and deploy versions of a metric's definition so changes
      can be reviewed and rolled back without losing history.
  - name: Metrics
    description: >
      Define and run evaluators, i.e. automated quality checks that score traces
      against criteria like accuracy, safety, or correctness.
  - name: Queues
    description: >
      Manage annotation queues for human review of traces, turning expert
      feedback into labeled datasets.
  - name: Sessions
    description: >
      Group related trace events into sessions, the top-level container for a
      multi-step or multi-service AI interaction.
paths:
  /v1/runs/{run_id}/metrics:
    get:
      tags:
        - Experiments
      summary: Get event metrics for an experiment run (deprecated)
      description: >-
        Deprecated. Use `GET /v1/projects/{project_id}/runs/{run_id}/metrics`
        with a data plane API key instead. Retrieves event metrics from
        ClickHouse for a specific experiment run
      operationId: getExperimentRunMetricsLegacy
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Experiment run ID (UUIDv4)
        - name: dateRange
          in: query
          required: false
          schema:
            type: string
          description: Date range filter as JSON string
        - name: filters
          in: query
          required: false
          schema:
            oneOf:
              - type: string
              - type: array
                items:
                  type: object
          description: Optional filters to apply (JSON string or array of filter objects)
      responses:
        '200':
          description: Event metrics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetExperimentRunMetricsResponse'
        '400':
          description: Error fetching event metrics
      deprecated: true
      security:
        - BearerAuth: []
components:
  schemas:
    GetExperimentRunMetricsResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/EventMetricData'
        totalEvents:
          type: integer
          description: Total number of events matching the query
      required:
        - events
        - totalEvents
      description: Response for GET /runs/{run_id}/metrics
    EventMetricData:
      type: object
      properties:
        event_name:
          type: string
        event_type:
          type: string
        session_id:
          type: string
        metadata:
          $ref: '#/components/schemas/EventMetricDataMetadata'
        metrics:
          type: object
          additionalProperties:
            anyOf:
              - type: number
              - type: boolean
          description: >-
            Metric name → value, merged from numeric, float, and boolean
            ClickHouse columns
      required:
        - event_name
        - event_type
        - session_id
        - metadata
        - metrics
    EventMetricDataMetadata:
      type: object
      properties:
        datapoint_id:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

## Related topics

- [Get events schema for a single experiment run (deprecated)](https://docs.honeyhive.ai/v2/api-reference-autogen/experiments/get-events-schema-for-a-single-experiment-run-deprecated.md)
- [Get events schema across all experiment runs in a project (deprecated)](https://docs.honeyhive.ai/v2/api-reference-autogen/experiments/get-events-schema-across-all-experiment-runs-in-a-project-deprecated.md)
- [Compare events between two experiment runs (deprecated)](https://docs.honeyhive.ai/v2/api-reference-autogen/experiments/compare-events-between-two-experiment-runs-deprecated.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.