{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube AI Content Remixer",
    "description": "This actor scrapes long-form content from YouTube videos or blog posts and uses an AI (OpenAI) to repurpose it into various new formats and analyses.",
    "version": "0.0",
    "x-build-id": "kDb350dm4limU4FGy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/visita~youtube-ai-content-remixer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-visita-youtube-ai-content-remixer",
        "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/visita~youtube-ai-content-remixer/runs": {
      "post": {
        "operationId": "runs-sync-visita-youtube-ai-content-remixer",
        "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/visita~youtube-ai-content-remixer/run-sync": {
      "post": {
        "operationId": "run-sync-visita-youtube-ai-content-remixer",
        "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": {
          "runMode": {
            "title": "🏃 Run Mode",
            "enum": [
              "discover",
              "scrapeYouTube",
              "scrapeBlog"
            ],
            "type": "string",
            "description": "Choose the content source.",
            "default": "discover"
          },
          "discoverConfig": {
            "title": "📺 YouTube Discover Settings",
            "type": "object",
            "description": "Settings for discovering videos via YouTube search.",
            "properties": {
              "searchQueries": {
                "title": "🔍 Search Queries",
                "type": "array",
                "editor": "stringList",
                "prefill": [
                  "latest tech news"
                ],
                "description": "List of search terms to find videos on YouTube."
              },
              "maxResultsPerQuery": {
                "title": "📊 Video Limit",
                "type": "integer",
                "default": 3,
                "description": "Maximum number of videos to collect per search query."
              }
            }
          },
          "scrapeYouTubeConfig": {
            "title": "▶️ YouTube Scrape Settings",
            "type": "object",
            "description": "Settings for scraping specific, known YouTube video IDs.",
            "properties": {
              "videoIDs": {
                "title": "📹 YouTube Video IDs",
                "type": "array",
                "editor": "stringList",
                "prefill": [
                  "xZCbAki4puY"
                ],
                "description": "Provide specific YouTube video IDs to scrape directly."
              }
            }
          },
          "scrapeBlogConfig": {
            "title": "📝 Blog Scrape Settings",
            "type": "object",
            "description": "Settings for scraping specific blog post URLs.",
            "properties": {
              "blogUrls": {
                "title": "🔗 Blog Post URLs",
                "type": "array",
                "editor": "stringList",
                "prefill": [
                  "https://blog.apify.com/web-scraping-with-large-language-models/"
                ],
                "description": "Provide specific blog post URLs to scrape directly."
              }
            }
          },
          "lang": {
            "title": "🗣️ Transcript Language",
            "type": "string",
            "description": "For YouTube transcripts (e.g. en, fr, es).",
            "default": "en"
          },
          "enableContentCreation": {
            "title": "💡 Enable AI Content Creation",
            "type": "boolean",
            "description": "Check this box to enable the AI Content Creation section.",
            "default": false
          },
          "contentModel": {
            "title": "🤖 Content Model",
            "enum": [
              "gpt-5",
              "gpt-4o",
              "gpt-4o-mini"
            ],
            "type": "string",
            "description": "The AI model to use for creative tasks.",
            "default": "gpt-5"
          },
          "formatsToGenerate": {
            "title": "🎨 Content Formats",
            "type": "array",
            "description": "Select the types of content you want the AI to create.",
            "items": {
              "type": "string",
              "enum": [
                "shortVideoScript",
                "tweetThread",
                "linkedInPost",
                "blogPostSummary",
                "longFormArticle"
              ],
              "enumTitles": [
                "📱 Short Video Script (TikTok/Reel)",
                "🐦 Tweet Thread (5 Tweets)",
                "👔 LinkedIn Post",
                "📌 Key Takeaways (Bullet Points)",
                "📖 Long-Form Article (High Quality)"
              ]
            },
            "default": [
              "shortVideoScript",
              "tweetThread"
            ]
          },
          "enableMultiPrompt": {
            "title": "💎 Enable High-Quality Mode for Articles",
            "type": "boolean",
            "description": "Uses a multi-step process (outline > sections > final draft) for 'Long-Form Articles'. This produces much better content but costs more per article.",
            "default": true
          },
          "tones": {
            "title": "🎭 Tones",
            "type": "array",
            "description": "The AI will generate one variant for EACH selected tone.",
            "items": {
              "type": "string",
              "enum": [
                "professional",
                "casual",
                "witty",
                "inspirational",
                "technical"
              ],
              "enumTitles": [
                "👔 Professional",
                "😎 Casual",
                "😏 Witty",
                "🙌 Inspirational",
                "💻 Technical"
              ]
            },
            "default": [
              "professional",
              "casual"
            ]
          },
          "customPrompt": {
            "title": "🧑‍🎨 Optional: Custom Remix Prompt",
            "type": "string",
            "description": "Add a custom instruction for the AI (e.g., 'Focus on the financial aspects', 'Make it for a beginner audience')."
          },
          "enableAnalysis": {
            "title": "💡 Enable AI Analysis",
            "type": "boolean",
            "description": "Check this box to enable the AI Analysis section.",
            "default": false
          },
          "analysisModel": {
            "title": "🔬 Analysis Model",
            "enum": [
              "gpt-4o",
              "gpt-4o-mini",
              "gpt-5"
            ],
            "type": "string",
            "description": "The AI model to use for analysis (sentiment, summaries).",
            "default": "gpt-4o-mini"
          },
          "analyzeSentiment": {
            "title": "😄 Analyze Content Sentiment",
            "type": "boolean",
            "description": "If enabled, the AI will analyze the sentiment of the main text.",
            "default": true
          },
          "analyzeCommentsSentiment": {
            "title": "💬 Analyze Comment Sentiment",
            "type": "boolean",
            "description": "Analyzes the sentiment of the scraped YouTube comments.",
            "default": true
          },
          "summarizeComments": {
            "title": "📑 Summarize Comments",
            "type": "boolean",
            "description": "Provides a high-level summary of what the comments are talking about.",
            "default": true
          },
          "summarizeAllScraped": {
            "title": "🌎 Create Global Summary",
            "type": "boolean",
            "description": "Creates one final summary of ALL scraped videos/blogs in this run (e.g., 'A summary of today's sports news').",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}