# Viral Content Finder: TikTok, YouTube, LinkedIn & News (`ingeniela/viral-content-finder`) Actor

Find the most viral content about any topic on YouTube, TikTok, Instagram, Facebook, LinkedIn, Google News and Facebook Ads in one ranked list, with a virality score, daily new-only mode for n8n and an AI trend brief.

- **URL**: https://apify.com/ingeniela/viral-content-finder.md
- **Developed by:** [Ingeniela](https://apify.com/ingeniela) (community)
- **Categories:** Social media, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 viral items

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

## Viral Content Finder: Most Viral Posts on TikTok, YouTube, Instagram, LinkedIn & News

Type a topic and get the **most viral content about it right now** on **YouTube, TikTok, Instagram, Facebook, LinkedIn, Google News and Facebook Ads**, in **one ranked list**. Each item gets a **virality score (0-100)** that rewards both reach and speed, so a post exploding today beats one that took six months. Run it daily from n8n, Make or Zapier with **"only new items"** and you have a trend radar that tells you what to make next, while it is still early.

> 🔁 Turn on **Only new** and schedule it daily: a trend radar that only shows posts you have not seen yet.

> **Why this Actor exists.** It was built thanks to [this r/n8n thread](https://www.reddit.com/r/n8n/comments/1kappdl/api_or_web_scraper_to_find_the_most_viral_posts/): people kept asking for one API that finds the *most viral* posts for a topic on TikTok and Instagram (most tools return random or just the newest ones), and an endpoint that gives "trending content per medium, daily". This is that API.

### Tutorial (1 minute)

![Step-by-step tutorial: what to fill in, click Start, the real result and the price](https://api.apify.com/v2/key-value-stores/RXaOr7FspyrQ4JP88/records/viral-content-finder-tutorial.gif)

*Every result in this tutorial comes from a real run.*

### What you get

- **One row per item**: platform, title and text, link, author and followers, publish date, views, likes, comments, shares, **engagement**, **engagement per hour**, engagement rate, image, and the **virality score**.
- Sorted by virality, across all platforms (filter by platform in the table or in your workflow).
- **Top 10** and an **AI trend brief**: what is working now, angles that repeat, and 10 content ideas to publish early, each with the best platform and a hook.
- **Daily mode**: only the items you have not seen in earlier runs.

### How the virality score works

| Platform | Signal |
|---|---|
| YouTube, TikTok, Instagram, Facebook, LinkedIn | **Absolute** reach (views, or interactions × 20 when views are not public) on a log scale, plus a bonus for speed (reach per hour since posting) |
| Google News | How many outlets cover the same story, plus how recent it is |
| Facebook Ads | Days still running, number of versions and active status (advertisers keep paying for what works) |

The score is absolute, so a post with a handful of likes scores near 0 even when nothing better was found:

| Views (YouTube / TikTok) | 100 | 1,000 | 10,000 | 100,000 | 1,000,000 |
|---|---|---|---|---|---|
| Score (before the speed bonus) | 14 | 28 | 45 | 66 | 90 |

Each platform has its own "very viral" mark (Instagram 500k, Facebook 200k, LinkedIn 100k), so a LinkedIn post is not punished for having fewer views than a TikTok. **Minimum virality score** is 40 by default: real traction only. `rankInPlatform` still tells you where an item sits among the ones found (100 = best).

**Content language**: in Auto mode the country sets the language (US = English, MX = Spanish…) and posts in other languages are dropped. The finder fetches several times more candidates than you ask for and keeps the most viral ones.

Each platform is searched with its own "most popular" sort: YouTube by views, TikTok by most liked, LinkedIn by relevance in the time range, Instagram top posts for the hashtag or keyword.

### How to use it

1. Add one or more **topics** (for example `AI agents`, `protein recipes`, `skincare routine`).
2. Choose the **platforms** and the **time range** (last 24 hours, 7 days, 30 days or 12 months).
3. Click **Start**, or schedule it.

#### Daily trend radar with n8n

1. Save your input as a **task** with **Time range: Last 24 hours** and **Only items not seen in earlier runs** on.
2. In n8n, add the **Apify** node, choose *Run task and get dataset items*, and schedule it every morning.
3. Send the top items to Slack, Notion, Airtable or Google Sheets.

### Input example

```json
{
  "topics": ["AI agents"],
  "platforms": ["youtube", "tiktok", "instagram", "linkedin", "news"],
  "timeframe": "day",
  "resultsPerPlatform": 20,
  "minViralityScore": 60,
  "onlyNew": true
}
```

### Data collection (runs on your Apify account)

| Platform | About |
|---|---|
| YouTube | US$0.004 per video |
| TikTok | US$0.0037 per video |
| Instagram | US$0.0026 per post |
| Facebook | US$0.006 per post |
| LinkedIn | US$0.002 per post |
| Google News | US$0.002 per article |
| Facebook Ads | US$0.00075 per ad |

### Pricing

| Event | Price |
|---|---|
| Viral item in the results | $0.004 |
| AI trend brief (built-in AI; not charged with your own key) | $0.05 |

**Example:** 1 topic × 7 platforms × 20 results = 140 items: $0.56 + $0.05, plus data collection (about $0.45). A daily radar with "only new" usually returns far fewer items.

# Actor input Schema

## `topics` (type: `array`):

e.g. 'AI agents', 'protein recipes'. Each topic is searched on every platform.

## `platforms` (type: `array`):

Where to look.

## `timeframe` (type: `string`):

Use 'Last 24 hours' for a daily trend radar.

## `resultsPerPlatform` (type: `integer`):

Top results read per platform and topic.

## `minViralityScore` (type: `integer`):

Absolute score: 100 views ≈ 15, 10k ≈ 50, 1M views on YouTube or TikTok ≈ 100 (faster = higher). 40 keeps real traction; 60+ only clearly viral posts; 0 keeps everything.

## `contentLanguage` (type: `string`):

Drops posts written in other languages (posts with too little text are kept). Auto: US/UK = English, MX/ES/AR = Spanish, BR = Portuguese…

## `onlyNew` (type: `boolean`):

Schedule it daily and get only what is new since the last run.

## `country` (type: `string`):

Two-letter code (US, GB, MX, ES…). Sets the content language in Auto mode and the Facebook Ads country (ALL = every country).

## `newsLanguage` (type: `string`):

Country and language of Google News.

## `scraperMaxCostUsd` (type: `integer`):

Upper limit per platform for collecting the data on your account.

## `trendBrief` (type: `boolean`):

What is working now, repeating angles and 10 content ideas to publish early.

## `language` (type: `string`):

Language of the brief.

## `aiProvider` (type: `string`):

Leave all keys empty to use the built-in AI (billed per AI event).

## `aiModel` (type: `string`):

Empty = a good default for the provider.

## `anthropicApiKey` (type: `string`):

With your own key (any provider) that provider bills you and AI events are not charged.

## `openaiApiKey` (type: `string`):

Your own key from platform.openai.com.

## `openrouterApiKey` (type: `string`):

Your own key from openrouter.ai/keys.

## `geminiApiKey` (type: `string`):

Your own key from aistudio.google.com/apikey.

## `xaiApiKey` (type: `string`):

Your own key from console.x.ai.

## `deepseekApiKey` (type: `string`):

Your own key from platform.deepseek.com.

## `mistralApiKey` (type: `string`):

Your own key from console.mistral.ai.

## Actor input object example

```json
{
  "topics": [
    "skincare routine"
  ],
  "platforms": [
    "youtube",
    "linkedin",
    "news"
  ],
  "timeframe": "week",
  "resultsPerPlatform": 5,
  "minViralityScore": 40,
  "contentLanguage": "auto",
  "onlyNew": false,
  "country": "US",
  "newsLanguage": "US:en",
  "scraperMaxCostUsd": 2,
  "trendBrief": true,
  "language": "English",
  "aiProvider": "auto"
}
```

# Actor output Schema

## `viral` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "topics": [
        "skincare routine"
    ],
    "platforms": [
        "youtube",
        "linkedin",
        "news"
    ],
    "resultsPerPlatform": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("ingeniela/viral-content-finder").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 = {
    "topics": ["skincare routine"],
    "platforms": [
        "youtube",
        "linkedin",
        "news",
    ],
    "resultsPerPlatform": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("ingeniela/viral-content-finder").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 '{
  "topics": [
    "skincare routine"
  ],
  "platforms": [
    "youtube",
    "linkedin",
    "news"
  ],
  "resultsPerPlatform": 5
}' |
apify call ingeniela/viral-content-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ingeniela/viral-content-finder"
        }
    }
}
```

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/qTgpd2l1XnKRCTfao/builds/qnzVMTtHMjatJzLZs/openapi.json
