{
  "openapi": "3.0.1",
  "info": {
    "title": "Reel Knowledge Distiller: Videos to Claims",
    "description": "Turn public short videos into transcripts, typed claims, and Markdown notes for research and content teams.",
    "version": "0.1",
    "x-build-id": "HZJinXgrViaily2Mu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/physealabs~reel-knowledge-distiller/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-physealabs-reel-knowledge-distiller",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/physealabs~reel-knowledge-distiller/runs": {
      "post": {
        "operationId": "runs-sync-physealabs-reel-knowledge-distiller",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/physealabs~reel-knowledge-distiller/run-sync": {
      "post": {
        "operationId": "run-sync-physealabs-reel-knowledge-distiller",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "reelUrls": {
            "title": "Reel / post URLs",
            "type": "array",
            "description": "Public short-video links we fetch ourselves with yt-dlp — Instagram reels/posts (share → copy link), TikTok videos, YouTube Shorts. No third-party scrapers, no login. Note: Instagram currently serves media only intermittently to non-logged-in clients; failures are reported per row as `error_stage: fetch`, never faked.",
            "items": {
              "type": "string"
            }
          },
          "reelUrlsFile": {
            "title": "URL list file (optional)",
            "type": "string",
            "description": "Public URL of a JSON, CSV or text file containing reel/post links (for example an export from your own tooling). Every Instagram/TikTok/YouTube link found in it is added to `reelUrls`."
          },
          "profiles": {
            "title": "Channel / profile URLs (YouTube, TikTok)",
            "type": "array",
            "description": "Public YouTube channel URLs (e.g. `https://www.youtube.com/@Fireship` → its Shorts tab) or TikTok profile URLs (`https://www.tiktok.com/@handle`). Up to `resultsLimit` latest videos are listed and processed. Instagram handles are DEPRECATED and skipped with a warning: listing an Instagram profile needs a login, and this Actor never calls third-party scrapers — paste the reel links into `reelUrls` instead.",
            "items": {
              "type": "string"
            }
          },
          "resultsLimit": {
            "title": "Maximum reels per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Cap on how many URLs are processed in one run (1–500). Remaining URLs can be run later; already-processed shortcodes are skipped when you reuse the dataset.",
            "default": 30
          },
          "perspective": {
            "title": "Perspective (who is this knowledge base for?)",
            "type": "string",
            "description": "Free text used in the prompt for `org_relevance`, e.g. \"an AI infra startup's GTM team\" or \"a solo indie-hacker building a SaaS\".",
            "default": "a research team tracking practitioner knowledge"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Knowledge categories the LLM assigns (1–3 per reel, primary first). Each item: `{\"id\": \"gtm-sales\", \"description\": \"...\"}`. Leave empty for the built-in default set (ai-production, ai-architecture, model-research, market-state, gtm-sales, marketing-content, product-design, founder-ops, psychology-research, other). An `other` category is always appended."
          },
          "llm": {
            "title": "LLM",
            "type": "object",
            "description": "Distillation model. Default (when left blank): the Actor's own inexpensive Bedrock model (nvidia.nemotron-nano-3-30b) — no key needed. Override with any /v1/chat/completions server (`provider` openai|openai-compatible, `baseUrl`, `model`, `apiKey` stored encrypted)."
          },
          "transcription": {
            "title": "Transcription",
            "type": "object",
            "description": "`mode`: `local` (default — faster-whisper runs inside the Actor on CPU, no key; optional `model`: tiny|base|small, `language`: ISO code), `whisper-api` (POST audio to an OpenAI-compatible /audio/transcriptions endpoint you name via `baseUrl` + `openaiApiKey`), or `none` (reels are emitted as `no_speech` unless a transcript is supplied). The old `apify` mode is retired."
          },
          "minTranscriptChars": {
            "title": "Minimum transcript length",
            "minimum": 0,
            "type": "integer",
            "description": "Transcripts shorter than this are treated as no speech (music/text-overlay reels) and are NOT sent to the LLM.",
            "default": 80
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}