> ## 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 /v1/tv/{id}/seasons/{season}/episodes/{episode}
openapi: 3.0.3
info:
  title: UAFilms API
  description: >-
    API агрегатора українського медіа-контенту та OMSS (Open Media Streaming
    Specification) стрімінговий сервер з підтримкою HLS проксі, динамічного
    Server-Sent Events (SSE) парсингу, системи акаунтів та персональних
    API-ключів.
  version: 1.2.0
servers:
  - url: https://films.aartzz.pp.ua
    description: Production Server
  - url: http://localhost:3000
    description: Local Development Server
security: []
paths:
  /v1/tv/{id}/seasons/{season}/episodes/{episode}:
    get:
      summary: 'OMSS: Джерела серії серіалу'
      description: Парсинг стрімів конкретної серії серіалу за номером сезону та епізоду.
      parameters:
        - name: id
          in: path
          required: true
          description: TMDB ID серіалу
          schema:
            type: string
            example: '284445'
        - name: season
          in: path
          required: true
          description: Номер сезону
          schema:
            type: integer
            example: 1
        - name: episode
          in: path
          required: true
          description: Номер серії
          schema:
            type: integer
            example: 1
        - name: provider
          in: query
          required: false
          schema:
            type: string
        - name: platform
          in: query
          required: false
          schema:
            type: string
            enum:
              - web
              - android
              - ios
              - tv
            default: web
        - name: sse
          in: query
          required: false
          schema:
            type: string
            enum:
              - '0'
              - '1'
            default: '0'
      responses:
        '200':
          description: Знайдені стріми серії
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OmssResolutionResult'
            text/event-stream:
              schema:
                type: string
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
        - {}
components:
  schemas:
    OmssResolutionResult:
      type: object
      properties:
        id:
          type: string
          example: '1423191'
        type:
          type: string
          example: movie
        title:
          type: string
          example: 'Resident Evil: Оселя Зла'
        year:
          type: integer
          example: 2026
        sources:
          type: array
          items:
            $ref: '#/components/schemas/OmssStreamSource'
        subtitles:
          type: array
          items:
            $ref: '#/components/schemas/OmssSubtitle'
        diagnostics:
          type: object
          properties:
            duration:
              type: number
              example: 482
            providersAttempted:
              type: integer
              example: 5
            providersSucceeded:
              type: integer
              example: 3
    OmssStreamSource:
      type: object
      properties:
        url:
          type: string
          example: >-
            https://films.aartzz.pp.ua/master.m3u8?url=https%3A%2F%2Fashdi.vip%2F...
        quality:
          type: string
          example: auto
        format:
          type: string
          example: hls
        audio:
          type: object
          properties:
            language:
              type: string
              example: uk
            label:
              type: string
              example: Uaflix (Дубляж)
            type:
              type: string
              example: dub
        provider:
          type: string
          example: ashdi
        providerName:
          type: string
          example: Ashdi
    OmssSubtitle:
      type: object
      properties:
        label:
          type: string
          example: Українські
        language:
          type: string
          example: uk
        url:
          type: string
          example: https://films.aartzz.pp.ua/subs.m3u8?cdn=ashdi&id=277732&lang=ua
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API-ключ користувача (uaf_live_...)
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-токен користувача або API-ключ (Bearer uaf_live_...)

````