---
title: "Engagement metrics"
method: GET
path: "/topics/{topicId}/statistics/metrics"
tags: ["Statistics"]
---

# Engagement metrics

`GET /topics/{topicId}/statistics/metrics`

## Request

- Base URL: `https://api.youscan.io/api/external`
- URL: `https://api.youscan.io/api/external/topics/{topicId}/statistics/metrics`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in query parameter `apiKey`
- TypeScript: <https://skmtc.dev/youscan/apis/youscan-api/docs/topics/:topicId/statistics/metrics/get.ts> (a function with typed inputs; its response is checked against the schema)

Summary engagement metrics for mentions matching the filters.

## Path parameters

- `topicId` integer, required

## Query parameters

- `from` string, date
- `to` string, date
- `country` string[]
- `excludeCountry` string[]
- `sourceTypes` SourceTypeFilter[]
- `excludeSourceTypes` SourceTypeFilter[]
- `sources` string[]
- `excludeSources` string[]
- `tags` integer[]
- `excludeTag` integer[]
- `subcategories` integer[]
- `excludeSubcategory` integer[]

## Response `200`

Summary metrics.

- object
  - `totalEngagement` integer
  - `authorsCount` integer
  - `sourcesCount` integer
  - `viewsCount` integer
  - `subscribersCount` integer
  - `totalCount` integer

## Other responses

- `401`: The API key is missing or invalid.

---

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