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

# Джерела (Стрім)

> Повертає метадані та всі доступні посилання. Підтримує SSE для поступового отримання джерел.



## OpenAPI

````yaml GET /api/get
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/get:
    get:
      summary: Отримання контенту з джерелами
      description: >-
        Повертає метадані та всі доступні посилання. Підтримує SSE для
        поступового отримання джерел.
      parameters:
        - name: id
          in: query
          required: true
          schema:
            type: string
        - name: type
          in: query
          required: true
          schema:
            type: string
            enum:
              - movie
              - tv
        - name: sse
          in: query
          description: Увімкнути Server-Sent Events (1 - так, 0 - ні)
          schema:
            type: string
            enum:
              - '0'
              - '1'
            default: '0'
        - name: eng
          in: query
          description: 'Мовний режим (0: UA, 1: UA+ENG, 2: ENG)'
          schema:
            type: integer
            enum:
              - 0
              - 1
              - 2
            default: 0
      responses:
        '200':
          description: JSON об'єкт (при sse=0) або текстовий потік (при sse=1)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MovieFull'
            text/event-stream:
              schema:
                type: string
        '403':
          description: Доступ заборонено (Капча/Ключ)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Контент не знайдено
        '500':
          description: Помилка конфігурації сервера
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MovieFull:
      allOf:
        - $ref: '#/components/schemas/MovieDetails'
        - type: object
          properties:
            sources:
              type: array
              items:
                $ref: '#/components/schemas/Source'
            seasons:
              type: array
              items:
                $ref: '#/components/schemas/Season'
    Error:
      type: object
      properties:
        error:
          type: string
          example: CAPTCHA token missing
        details:
          type: array
          items:
            type: string
          nullable: true
    MovieDetails:
      type: object
      description: Базові метадані з TMDB
      properties:
        id:
          type: string
        imdb_id:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - movie
            - tv
        title:
          type: string
        original_title:
          type: string
        year:
          type: string
        overview:
          type: string
        genres:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              name:
                type: string
        poster_path:
          type: string
        backdrop_path:
          type: string
        imdb_rating:
          type: number
          nullable: true
    Source:
      type: object
      properties:
        provider:
          type: string
        dub:
          type: string
        quality:
          type: string
        url:
          type: string
        type:
          type: string
        subtitles:
          type: array
          items:
            type: object
            properties:
              label:
                type: string
              lang:
                type: string
              url:
                type: string
        poster:
          type: string
          nullable: true
    Season:
      type: object
      properties:
        number:
          type: integer
        episodes:
          type: array
          items:
            type: object
            properties:
              season:
                type: integer
              episode:
                type: integer
              title:
                type: string
              poster:
                type: string
                nullable: true
              sources:
                type: array
                items:
                  $ref: '#/components/schemas/Source'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key для авторизації

````