---
title: "Search Plans"
method: GET
path: "/api/v1/catalog/plans"
tags: ["api", "api", "catalog"]
---

# Search Plans

`GET /api/v1/catalog/plans`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/catalog/plans`
- Auth: HTTP bearer

## Query parameters

- `q` string, nullable
- `subject_id` integer, nullable
- `price` 'all' | 'free' | 'paid'
- `sort` 'newest' | 'popular' | 'price_asc' | 'price_desc' | 'title'
- `page` integer
- `page_size` integer

## Response `200`

Successful Response

- CatalogPlanPage
  - `items` CatalogPlan[], required
    - `id` string, required
    - `title` string, required
    - `description` string
    - `price` integer
    - `is_active` boolean
    - `counts` ResourceCounts
      - `exercise` integer
      - `video` integer
      - `audio` integer
      - `image` integer
    - `subscribers_count` integer
    - `my_subscription` TypeSubscriptionInfo: Bitta tur (yoki maxsus obuna) bo'yicha obuna — joriy foydalanuvchiniki yoki obunachiniki.
      - `type` string, required
      - `plan_id` string, nullable
      - `plan_title` string, nullable
      - `price` integer
      - `expires_at` string, date-time, required
      - `auto_renew` boolean, required
      - `is_active` boolean, required
    - `image` string
    - `subject_id` integer, nullable
    - `subject_name` string
    - `author_id` integer, required
    - `author_name` string
    - `created_at` string, date-time, nullable
  - `total` integer, required
  - `page` integer, required
  - `page_size` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
