# YouTube To Social AI - X Threads, LinkedIn Posts, Better Titles (`openfrontier_ai/youtube-to-social-ai-x-threads-linkedin-posts-better-titles`) Actor

Turn YouTube videos into viral social content with ViralVantage AI. Automatically generate high-engagement X threads, value-driven LinkedIn posts, and 5 optimized titles using AI. Includes built-in transcript extraction for a seamless, all-in-one repurposing workflow.

- **URL**: https://apify.com/openfrontier_ai/youtube-to-social-ai-x-threads-linkedin-posts-better-titles.md
- **Developed by:** [OpenFrontier AI](https://apify.com/openfrontier_ai) (community)
- **Categories:** Social media, Agents, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $40.00 / 1,000 defaults

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube to Social AI: X Threads, LinkedIn Posts & Better Titles 🚀

**ViralVantage AI** is an all-in-one content repurposing agent. It transforms long-form YouTube videos into high-engagement social media kits (X threads, LinkedIn posts, and viral titles) in under 60 seconds.

One successful run ($0.50) gives you everything you need to "atomize" your video content for maximum reach across platforms.

***

### 💡 Why ViralVantage AI?

Most tools only provide a raw **YouTube transcript**, leaving you with the hard work of editing. **ViralVantage AI** acts as your AI Ghostwriter, delivering finished, platform-optimized products that are ready to post.

#### ✨ Key Features

- 🔍 **Smart Extraction:** Pulls full transcripts and video metadata without needing external APIs.
- 🧵 **X (Twitter) Thread Writer:** Generates a 5-post thread starting with a high-conversion hook.
- 💼 **LinkedIn Post Architect:** Drafts professional long-form posts using the "Bridge" method.
- 🎯 **Viral Title Optimizer:** Suggests 5 titles based on proven high-CTR formulas like *Pattern Interrupt* and *Curiosity Gap*.

***

### ⚙️ Input Configuration

Set up your run with these simple parameters:

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| **youtubeUrl** | String | The URL of the YouTube video to repurpose. | *Required* |
| **tone** | Enum | Style: `Professional`, `Punchy/Viral`, or `Educational`. | `Professional` |
| **genTitles** | Boolean | Generate 5 viral title suggestions. | `true` |
| **genXThread** | Boolean | Generate a 5-post thread for X (Twitter). | `true` |
| **genLinkedIn** | Boolean | Generate a long-form LinkedIn post. | `true` |
| **genSummary** | Boolean | Extract a 3-point takeaway summary. | `true` |

***

### 📊 Output Structure

The Actor returns a clean JSON object in your dataset. Here is an example of what you'll receive:

```json
{
  "videoId": "xZ4mrm6PuII",
  "originalTitle": "Why nobody watches YouTube tutorials anymore",
  "improvedTitles": ["Stop Making Boring Tutorials", "The Death of the YouTube Guide", ...],
  "xThread": ["1/5: Why do YouTube tutorials get less love...", "2/5: The explosion of entertainment..."],
  "linkedInPost": "🔍 Bridge the Gap Between Education and Entertainment...",
  "keyTakeaways": ["Shift toward entertainment-first content", "Algorithm-driven fatigue", "AI's role in discovery"]
}

```

***

### 💡 3 Tips for Best Results

1. **Match the Tone to the Platform:** Use **Punchy/Viral** for X (Twitter) threads to stop the scroll, while **Professional** or **Educational** usually performs better for the LinkedIn algorithm.
2. **Video Length Matters:** This tool is optimized for videos between 5 and 20 minutes. For extremely long podcasts, ensure the most valuable content is in the first 15,000 characters of the transcript.
3. **Selective Toggling:** If you only need a LinkedIn post, toggle off the other features. The AI will focus its entire context window on making that single post as high-quality as possible.

***

### ⚖️ License

Distributed under the MIT License. Built for the **Apify Challenge**.

**If you find this useful, please ⭐ this repository!**

# Actor input Schema

## `youtubeUrl` (type: `string`):

The video to repurpose.

## `tone` (type: `string`):

Choose the style of the generated posts.

## `genTitles` (type: `boolean`):

Generate 5 improved viral titles for the video.

## `genXThread` (type: `boolean`):

Generate a 5-post thread optimized for X.

## `genLinkedIn` (type: `boolean`):

Generate a professional long-form LinkedIn post.

## `genSummary` (type: `boolean`):

Extract 3-5 key summary points from the video.

## Actor input object example

```json
{
  "youtubeUrl": "https://www.youtube.com/watch?v=xZ4mrm6PuII",
  "tone": "Professional",
  "genTitles": true,
  "genXThread": true,
  "genLinkedIn": true,
  "genSummary": true
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "youtubeUrl": "https://www.youtube.com/watch?v=xZ4mrm6PuII"
};

// Run the Actor and wait for it to finish
const run = await client.actor("openfrontier_ai/youtube-to-social-ai-x-threads-linkedin-posts-better-titles").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "youtubeUrl": "https://www.youtube.com/watch?v=xZ4mrm6PuII" }

# Run the Actor and wait for it to finish
run = client.actor("openfrontier_ai/youtube-to-social-ai-x-threads-linkedin-posts-better-titles").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "youtubeUrl": "https://www.youtube.com/watch?v=xZ4mrm6PuII"
}' |
apify call openfrontier_ai/youtube-to-social-ai-x-threads-linkedin-posts-better-titles --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,openfrontier_ai/youtube-to-social-ai-x-threads-linkedin-posts-better-titles"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5Iy1ijE5SkR39sjab/builds/XrD3h1eiJ0uImh38O/openapi.json
