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

# Listing Metrics

> List all metrics.

## Returns

Returns a list of [Metric](/concepts/metric) objects.

## Example

```python theme={"system"}
metrics = galtea.metrics.list(limit=20)
```

## Parameters

<ResponseField name="from_created_at" type="str | int" default="None">
  Filter metrics created at or after this timestamp. Accepts ISO 8601 string (e.g., `'2024-01-01T00:00:00Z'`) or Unix timestamp in seconds. Can be used independently or together with `to_created_at`.
</ResponseField>

<ResponseField name="to_created_at" type="str | int" default="None">
  Filter metrics created at or before this timestamp. Accepts ISO 8601 string (e.g., `'2024-12-31T23:59:59Z'`) or Unix timestamp in seconds. Can be used independently or together with `from_created_at`.
</ResponseField>

<ResponseField name="sort_by_created_at" type="string" optional>
  Sort metrics by creation date. Valid values are "asc" and "desc".
</ResponseField>

<ResponseField name="offset" type="int" default="0" optional>
  Number of metrics to skip before starting to collect results. Use for pagination.

  **Default:** `0` (start from the beginning)
</ResponseField>

<ResponseField name="limit" type="int" default="10000" optional>
  Maximum number of metrics to return in a single request.

  **Default:** `10000`
</ResponseField>

<ResponseField name="include_legacy" type="bool" default="False">
  Whether to include deprecated (legacy) metrics in the results.

  **Default:** `False` — deprecated metrics are excluded. Set to `True` to also retrieve metrics that have been deprecated.
</ResponseField>

<ResponseField name="id" type="string | list[string]" default="None">
  The ID or IDs of the metric(s) to retrieve.
</ResponseField>

<ResponseField name="tags" type="list[string]" optional>
  Filter metrics by tags. Returns metrics that have at least one of the provided tags (match-any semantics).
</ResponseField>
