---
title: API: analytics
description: REST-эндпоинты с тегом analytics — сгенерировано из OpenAPI-контракта платформы (4 операций).
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/analytics/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Сгенерировано из OpenAPI-контракта — не редактировать руками. Сводки операций и описания полей приводятся на английском (дословно из контракта). Интерактивный обозреватель с полными схемами: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); замороженная спецификация этой сборки: [openapi.json](/developers/api/openapi.json).
:::

## `POST /api/v1/analytics/collect`

Collect

[Открыть отдельной страницей →](./post-analytics-collect/)

Trigger a collection run (idempotent; safe to re-run).

`collect=false` runs the cheap SYNCHRONOUS mode: external collectors are not called,
only the ingest of already-fetched files and topic scoring run, and the caller gets the
RESULT instead of an "accepted" — so a scheduled caller can tell whether the loop
actually computed.

**Авторизация:** нужен `Authorization: Bearer <token>`

| Параметр | Где | Обязателен | Тип | Описание |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | нет | `string` | Optional. |

**Тело запроса:** `application/json` — схема `CollectTrigger`

| Поле | Тип | Обязательно | Описание |
| --- | --- | --- | --- |
| `collect` | `boolean` | нет |  |
| `date` | `string \| null` | нет |  |
| `with_psi` | `boolean` | нет |  |

**Ответы:**

| Код | Смысл | Тело |
| --- | --- | --- |
| `200` | Successful Response | `object` |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
| `422` | Validation Error | `HTTPValidationError` |

## `GET /api/v1/analytics/instances/{instance_id}`

Instance Dashboard

[Открыть отдельной страницей →](./get-analytics-instances-instance-id/)

Everything one per-instance analytics panel needs (snapshot + trends + queries + pages + index).

**Авторизация:** нужен `Authorization: Bearer <token>`

| Параметр | Где | Обязателен | Тип | Описание |
| --- | --- | --- | --- | --- |
| `instance_id` | path | да | `string` |  |

**Ответы:**

| Код | Смысл | Тело |
| --- | --- | --- |
| `200` | Successful Response | `InstanceDashboard` |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
| `422` | Validation Error | `HTTPValidationError` |

## `GET /api/v1/analytics/overview`

Overview

[Открыть отдельной страницей →](./get-analytics-overview/)

Cross-instance grid: latest snapshot KPIs + health per instance.

**Авторизация:** нужен `Authorization: Bearer <token>`

**Ответы:**

| Код | Смысл | Тело |
| --- | --- | --- |
| `200` | Successful Response | `OverviewResponse` |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |

## `GET /api/v1/analytics/runs`

Runs

[Открыть отдельной страницей →](./get-analytics-runs/)

Recent collection-run manifests.

**Авторизация:** нужен `Authorization: Bearer <token>`

**Ответы:**

| Код | Смысл | Тело |
| --- | --- | --- |
| `200` | Successful Response | `массив CollectionRunRead` |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
