---
title: "Posts Search"
method: POST
path: "/v1/posts/search"
tags: ["API v1"]
---

# Posts Search

`POST /v1/posts/search`

## 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/search`
- Auth: none declared

## Request body

- ApiPostsIn
  - `query` PostQuery, required: Поиск по постам (F-8): текст обязателен, фильтры по свойствам канала.
    - `q` string, required
    - `days` integer
    - `channel_id` integer, nullable
    - `languages` string[]
    - `category_ids` integer[]
    - `subscribers_min` integer, nullable
    - `sort` 'date' | 'views'
  - `page` integer

## 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)
