# YouTube Post Metrics: Views, Likes & Growth Since Last Run (`h1018y/anvil-youtube-posts`) Actor

Reads YouTube post metrics from video, Shorts, live and community post links. Give it links or channels; get views, likes, comments, subscribers, date and views gained since the last run as rows - export to CSV or call it from the API.

- **URL**: https://apify.com/h1018y/anvil-youtube-posts.md
- **Developed by:** [Veriloc](https://apify.com/h1018y) (community)
- **Categories:** Videos, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.34 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Post Metrics: Views, Likes & Growth Since Last Run

Paste YouTube links and get views, likes, comments and subscribers in one table, plus how much each grew since your last run.

Run it again and every row shows viewsGained, likesGained and repliesGained since the last run, and it also reads YouTube community post links (youtube.com/post/...) that the leading post-metrics actor does not accept.

### What YouTube Post Metrics returns

- Videos, Shorts, live streams and community posts by link
- Growth since last run: views, likes, comments, followers gained
- Add channels to check their newest uploads, Shorts only or videos only
- Views per day and engagement rate on every row
- Same field names as sz022/social-post-metrics - switch by changing the actor id

### Who uses YouTube Post Metrics

- Agencies - weekly report of sponsored videos with views gained since last week
- Brands - check that creators' posts are live and how fast they grow
- Creators - track their own Shorts and community posts every day
- Analysts - log engagement rate of a competitor's newest uploads

### What a row looks like

One flat row per result. These values come from a real run:

| Field | Example |
|---|---|
| `postId` | kJQP7kiw5Fk |
| `postUrl` | https://www.youtube.com/watch?v=kJQP7kiw5Fk |
| `username` | LuisFonsiVEVO |
| `channelId` | UCLp8RBhQHu9wSsq62j_Md6A |
| `channelName` | LuisFonsiVEVO |
| `authorUrl` | https://www.youtube.com/@LuisFonsiVEVO |
| `mediaType` | video |
| `followerCount` | 32600000 |
| `likeCount` | 56810670 |
| `replyCount` | 4300000 |
| `viewCount` | 9172873913 |
| `durationSeconds` | 282 |
| `createdAt` | 2017-01-13T05:00:02Z |
| `hashtags` | \["#LuisFonsi", "#Despacito", "#Imposible", "#Calypso", "#Ech... |
| `mentions` | \[] |
| `title` | Luis Fonsi - Despacito ft. Daddy Yankee |
| `text` | Luis Fonsi - Despacito ft. Daddy Yankee “Despacito” disponib... |
| `thumbnailUrl` | https://i.ytimg.com/vi/kJQP7kiw5Fk/hqdefault.jpg |
| `status` | success |
| `platform` | YouTube |
| `shareCount` | null |
| `repostCount` | null |
| `quoteCount` | null |
| `saveCount` | null |
| `publishedText` | null |

### How to run YouTube Post Metrics

Press **Start**. The form already holds an example that works. Swap in your own input (the Input tab lists every field), run it once, or put it on an Apify Schedule. Results download as JSON, CSV or Excel, or go to Google Sheets, Zapier, Make, the Apify API or an AI agent through the Apify MCP server. Add a `webhookUrl` to get each run's rows sent to your own system.

#### Input example

```json
{
  "postUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/tPEE9ZwTmy0",
    "https://www.youtube.com/post/UgkxOIrm_buePPtJKUmQBL6xGBrcpEX8mNXj"
  ],
  "channels": [],
  "latestPerChannel": 5,
  "contentType": "all",
  "fetchFollowers": true,
  "onlyNew": false,
  "maxItems": 100,
  "abortAfterConsecutiveFailures": 5,
  "useApifyProxy": true
}
```

#### Output example (a real run)

```json
[
  {
    "postId": "kJQP7kiw5Fk",
    "postUrl": "https://www.youtube.com/watch?v=kJQP7kiw5Fk",
    "username": "LuisFonsiVEVO",
    "channelId": "UCLp8RBhQHu9wSsq62j_Md6A",
    "channelName": "LuisFonsiVEVO",
    "authorUrl": "https://www.youtube.com/@LuisFonsiVEVO",
    "mediaType": "video",
    "followerCount": 32600000,
    "likeCount": 56810670,
    "replyCount": 4300000,
    "viewCount": 9172873913,
    "durationSeconds": 282,
    "createdAt": "2017-01-13T05:00:02Z",
    "hashtags": [
      "#LuisFonsi",
      "#Despacito",
      "#Imposible",
      "#Calypso",
      "#EchamelaCulpa",
      "#NadaEsImposible",
      "#NothingisImpossible",
      "#LF"
    ],
    "mentions": [],
    "title": "Luis Fonsi - Despacito ft. Daddy Yankee",
    "text": "Luis Fonsi - Despacito ft. Daddy Yankee\n“Despacito” disponible ya en todas las plataformas digitales: https://UMLE.lnk.to/DOoUzFp \n“Imposible” disponible ya en todas las plataformas digitales: https://UMLE.lnk.to/IMPOSIBLEFp\n“Calypso” disponible ya en todas las plataformas digitales: https://UMLE.lnk.to/CLYPSFp\nEchame La Culpa disponible ya en todas las plataformas digitales: https://UMLE.lnk.to/ELCFp\n\n\nBest of Luis Fonsi / Lo mejor Luis Fonsi: https://goo.gl/KLWPSa \nSubscribe here: https://goo.gl/nkhcGc\nSigue a Luis Fonsi: \nOfficial Site: http://www.luisfonsi.com/ \nFacebook: https://www.facebook.com/luisfonsi/ \nTwitter: https://twitter.com/LuisFonsi \nInstagram: https://www.instagram.com/luisfonsi\n\n#LuisFonsi #Despacito #Imposible #Calypso #EchamelaCulpa #NadaEsImposible #NothingisImpossible #LF\n\n\nMusic video by Luis Fonsi performing Despacito. (C) 2017 Universal Music Latino",
    "thumbnailUrl": "https://i.ytimg.com/vi/kJQP7kiw5Fk/hqdefault.jpg",
    "status": "success",
    "platform": "YouTube",
    "shareCount": null,
    "repostCount": null,
    "quoteCount": null,
    "saveCount": null,
    "publishedText": null,
    "postType": null,
    "viewsPerDay": 2553721.3,
    "engagementRate": 0.666,
    "changeType": "changed",
    "viewsGained": 46686,
    "likesGained": 161,
    "repliesGained": 0,
    "followersGained": 0,
    "hoursSinceLastCheck": 1.19,
    "checkedAt": "2026-11-14T04:07:30Z"
  }
]
```

Field names never change between versions. New versions only add fields, and a missing value is `null`, not a dropped key.

### What YouTube Post Metrics costs

You pay per result, with no monthly fee and no minimum. The price per result is lower on the Bronze, Silver and Gold plans, and the exact figures are on the **Pricing** tab. The free plan credit covers a test on your own input. Set a maximum number of results in the input to cap a run.

### Limits

- 1등 도구는 인스타그램·페이스북·스레드·틱톡까지 한 번에 하지만 이 도구는 유튜브만 해서, 여러 플랫폼을 섞어 보고하는 사람에게는 부족해요.
  It reads only what a visitor sees without logging in, so some sites show less than their members see. YouTube Post Metrics never logs in and never asks for cookies or an API key.

### Also searched as

- youtube video stats
- youtube views tracker
- youtube engagement rate
- youtube community posts
- campaign video report

### Questions

**Can I run it on a schedule?** Yes. Use an Apify Schedule; each run returns fresh rows.

**What happens when the site blocks a request?** The run retries from a fresh connection. If it still cannot read the page, it stops with a message saying what to change, and returns no made-up rows.

**Is it legal?** It collects only data anyone can see without logging in. How you use it is up to you, so check the source site's terms and data protection law (GDPR, CCPA).

Data source: [www.youtube.com](https://www.youtube.com)

### Related tools

- [Tweet Scraper for Twitter & X Posts: By URL, No Login](https://apify.com/h1018y/anvil-tweet-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page & Posts Scraper: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

## `postUrls` (type: `array`):

YouTube links, one per line: videos (watch, youtu.be), Shorts, live streams and community posts (youtube.com/post/...), e.g. https://youtu.be/dQw4w9WgXcQ

## `channels` (type: `array`):

Optional channel links, @handles or UC... IDs; the newest uploads of each are added to the list, e.g. @mkbhd

## `latestPerChannel` (type: `integer`):

How many of each channel's newest uploads to check (1 to 15), e.g. 5

## `contentType` (type: `string`):

For channels only: all uploads, only long videos, or only Shorts.

## `fetchFollowers` (type: `boolean`):

Add the channel's subscriber count (followerCount) to each video row.

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

On a schedule, return only posts that are new or whose views, likes, comments or followers changed since the last run with the same input.

## `maxItems` (type: `integer`):

Stop after this many posts in total (1 to 1000), e.g. 100

## `abortAfterConsecutiveFailures` (type: `integer`):

Ends the run early when YouTube stops answering, so a blocked run cannot waste time. 0 means never stop early.

## `useApifyProxy` (type: `boolean`):

Send requests through Apify Proxy so YouTube does not block the run (recommended).

## `proxyGroups` (type: `array`):

Optional Apify Proxy groups, for example RESIDENTIAL. Leave empty for the cheap default.

## `webhookUrl` (type: `string`):

Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX

## Actor input object example

```json
{
  "postUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/tPEE9ZwTmy0",
    "https://www.youtube.com/post/UgkxOIrm_buePPtJKUmQBL6xGBrcpEX8mNXj"
  ],
  "channels": [],
  "latestPerChannel": 5,
  "contentType": "all",
  "fetchFollowers": true,
  "onlyNew": false,
  "maxItems": 100,
  "abortAfterConsecutiveFailures": 5,
  "useApifyProxy": true
}
```

# Actor output Schema

## `results` (type: `string`):

All result rows (open as table, JSON, CSV or Excel).

# 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 = {
    "postUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.youtube.com/shorts/tPEE9ZwTmy0",
        "https://www.youtube.com/post/UgkxOIrm_buePPtJKUmQBL6xGBrcpEX8mNXj"
    ],
    "useApifyProxy": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-youtube-posts").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 = {
    "postUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.youtube.com/shorts/tPEE9ZwTmy0",
        "https://www.youtube.com/post/UgkxOIrm_buePPtJKUmQBL6xGBrcpEX8mNXj",
    ],
    "useApifyProxy": True,
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-youtube-posts").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 '{
  "postUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/shorts/tPEE9ZwTmy0",
    "https://www.youtube.com/post/UgkxOIrm_buePPtJKUmQBL6xGBrcpEX8mNXj"
  ],
  "useApifyProxy": true
}' |
apify call h1018y/anvil-youtube-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,h1018y/anvil-youtube-posts"
        }
    }
}
```

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/eJkqBuMrQAHO9eiYR/builds/DrDAUrk3o5ioOK9Zk/openapi.json
