---
title: "Get remote task execution statistics"
method: GET
path: "/api/{org_id}/tasks/{entity_id}/stats"
tags: ["RemoteTasks"]
---

# Get remote task execution statistics

`GET /api/{org_id}/tasks/{entity_id}/stats`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/tasks/{entity_id}/stats`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/tasks/:entity_id/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

Aggregates latest-wins terminal execution records whose own server timestamp falls inside the requested window. The head includes every published version unless version narrows it.

## Path parameters

- `org_id` string, required
- `entity_id` string, required

## Query parameters

- `windowMs` integer, required
- `version` integer

## Response `200`

- object
  - `errorRuns` integer, required
  - `latencyMs` RemoteTaskLatencyStatsBody, required
    - `p50` number, double, nullable
    - `p95` number, double, nullable
  - `okRuns` integer, required
  - `referencingExperiments` integer, required
  - `skippedRuns` integer, required
  - `totalRuns` integer, required
  - `windowMs` integer, required

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
