---
title: "Posts Trend"
method: POST
path: "/v1/posts/trend"
tags: ["API v1"]
---

# Posts Trend

`POST /v1/posts/trend`

## Request

- Base URL: `https://tgmarket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://tgmarket.io/v1/posts/trend`
- Auth: none declared

Динамика упоминаний слова: по дням (неделям) — постов, каналов, просмотров этих постов.

Тарификация: запрос + TREND_POINT_CREDITS за каждую отданную точку ряда. Строк каналов здесь нет,
поэтому ставки выгрузки не применяются (как у /channels/count). Глубина — Limits.trend_days.

## Request body

- ApiTrendIn
  - `q` string, required: keyword (one word is fastest)
  - `days` integer
  - `group` 'day' | 'week'
  - `languages` string[]
  - `category_ids` integer[]: top-level categories are served from the aggregate

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tgmarket/apis/tg-market-api.md) · [All operations](https://skmtc.dev/tgmarket/apis/tg-market-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tgmarket/apis/tg-market-api/revisions/15aba68e1fef?raw)
