---
title: "Get application environment instances (Last 24h)"
method: GET
path: "/api/admin/metrics/instances/{appName}/environment/{environment}"
tags: ["Metrics"]
---

# Get application environment instances (Last 24h)

`GET /api/admin/metrics/instances/{appName}/environment/{environment}`

Returns an overview of the instances for the given `appName` and `environment` that have received traffic in the last 24 hours.

## Path parameters

- `appName` string, required
- `environment` string, required

## Response `200`

applicationEnvironmentInstancesSchema

- ApplicationEnvironmentInstancesSchema — Data about an application environment instances that are connected to Unleash via an SDK.
  - `instances` object[], required — A list of instances
    - `instanceId` string, required — A unique identifier identifying the instance of the application running the SDK. Often changes based on execution environment. For instance: two pods in Kubernetes will have two different instanceIds
    - `sdkVersion` string, nullable — An SDK version identifier. Usually formatted as "unleash-client-<language>:<version>"
    - `clientIp` string, nullable — An IP address identifying the instance of the application running the SDK
    - `lastSeen` string, date-time — The last time the application environment instance was seen

## Other responses

- `404` — The requested resource was not found.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/revisions/b2c3116e633e/schema)
