> ## Documentation Index
> Fetch the complete documentation index at: https://uafilms.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Торренти



## OpenAPI

````yaml GET /api/torrents
openapi: 3.0.3
info:
  title: UAFilms API
  description: >-
    API для агрегації українського контенту. Підтримує SSE для динамічного
    завантаження джерел.
  version: 1.1.4
servers:
  - url: https://bfilms.aartzz.pp.ua
    description: Production Server
security: []
paths:
  /api/torrents:
    get:
      summary: Пошук торрентів
      parameters:
        - name: tmdbId
          in: query
          required: true
          schema:
            type: string
        - name: type
          in: query
          required: true
          schema:
            type: string
            enum:
              - movie
              - tv
      responses:
        '200':
          description: Список торрентів
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Torrent'
        '403':
          description: Access Denied
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Torrent:
      type: object
      properties:
        Tracker:
          type: string
        TrackerId:
          type: string
        Title:
          type: string
        Size:
          type: integer
        Seeders:
          type: integer
        MagnetUri:
          type: string
        Guid:
          type: string
        PublishDate:
          type: string
          format: date-time
        MediaInfo:
          type: object
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key для авторизації

````