# YouTube Comments Scraper - Comments, Replies & Likes (`socialscrapers/youtube-comments-scraper`) Actor

YouTube Comments Scraper: export all comments and replies of YouTube videos and Shorts to CSV, Excel or JSON: text, author, likes, reply count, date, pinned and hearted. Paste video URLs or IDs, or use search terms and channels. Top or newest first. No login or API key. $0.30 per 1,000 comments.

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

## Pricing

from $0.24 / 1,000 comments

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 Comments Scraper** exports the **comments and replies** of any public YouTube video or Short: the comment text, author and author channel, likes, reply count, date, and whether it is pinned, edited or hearted by the creator. Paste video URLs or IDs, or let it find videos through search terms, channels or playlists. Top comments or newest first. Download the comments as CSV, Excel or JSON. **No login, no API key**, **$0.30 per 1,000 comments**.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does YouTube Comments Scraper do?

- 💬 **All comments of a video**, as many as you ask for, with no upper limit.
- ↩️ **Replies** under each comment, up to the number you choose per comment.
- 🔝 **Top comments or newest first**, the same two orders as on YouTube.
- ❤️ **Rich comment data**: likes, reply count, date, pinned, edited, creator heart, and whether the creator wrote it.
- 🎬 **Videos and Shorts**: paste watch URLs, youtu.be links, Shorts URLs or bare video IDs.
- 🔎 **Find videos for you**: add search terms, channels or playlists, and the scraper collects the comments of their videos.
- 📺 **Video context included**: each video is saved once with its title, views, likes and exact comment count, followed by its comments, so you can group and filter them.
- ✅ **Pay only for what is saved**, and set a maximum cost per run if you want one.

### What data can you extract from YouTube comments?

| Item | Data |
| --- | --- |
| **Comment** | comment ID, text, author name or @handle, author channel ID and URL, likes, reply count, date (and YouTube's "2 weeks ago" text), edited, pinned, creator heart, written by the video's creator |
| **Reply** | the same fields, plus `parentId`: the comment it answers |
| **Video** | title, URL, publish date, views, likes, exact comment count, comments turned off, channel name and subscribers |

### How to scrape YouTube comments

1. Open YouTube Comments Scraper on Apify and click **Try for free**.
2. Paste **video URLs or IDs**, one per line (or add search terms, channels or playlists).
3. Set **Max comments per video** and, if you want replies, **Max replies per comment**.
4. Choose **Top comments** or **Newest first**.
5. Click **Start** and download the comments as CSV, Excel, JSON, XML or HTML. The **Comments** view shows them as a table.

#### How to export YouTube comments to Excel or CSV

Run the scraper, open the **Comments** view of the results, and click **Export** with CSV or Excel. Each row is one comment or reply, with the video it belongs to.

#### How to get the newest comments of a video

Choose **Newest first** and set **Max comments per video** to how many recent comments you need. Run it on a schedule to follow a video's new comments.

#### How to scrape the comments of a whole channel

Paste the channel URL (for example `https://www.youtube.com/@NASA`) and set **Videos per channel or playlist**: the scraper takes the channel's newest videos and collects the comments of each.

### How much does it cost to scrape YouTube comments?

Pay per result, with platform usage and proxies included and no monthly fee for the Actor:

| Result | Price per 1,000 | Silver plan | Gold plan |
| --- | --- | --- | --- |
| Comments (replies included) | **$0.30** | $0.27 | $0.24 |
| Videos (saved once each, before their comments) | **$0.61** | $0.549 | $0.488 |

Each run also has Apify's standard **Actor start** charge: $0.001 per run (one event per GB of memory, at least one; this Actor uses at most 1 GB, so one event per run).

Examples:

- **One video with 10,000 comments**: $3.00 + $0.00061 = **$3.00**.
- **100 videos with 500 comments each** (50,000 comments): $15.00 + $0.06 = **$15.06**.

Apify's free plan comes with $5 of platform credit every month, enough for about 16,000 comments. Set a **maximum cost per run** and the scraper stops cleanly before the first result that would go over it.

### Input example

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://youtu.be/VIDEO_ID",
    "https://www.youtube.com/shorts/SHORT_ID"
  ],
  "maxCommentsPerVideo": 1000,
  "maxRepliesPerComment": 10,
  "commentsSortBy": "top",
  "searchQueries": ["iphone 18 review"],
  "maxResultsPerQuery": 10
}
```

### Output example

Each result has a `dataType`. A comment:

```json
{
  "dataType": "comment",
  "id": "COMMENT_ID",
  "videoId": "jNQXAC9IVRw",
  "videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "videoTitle": "Me at the zoo",
  "text": "The beginning of everything.",
  "author": "@viewer",
  "authorChannelId": "AUTHOR_CHANNEL_ID",
  "authorChannelUrl": "https://www.youtube.com/channel/AUTHOR_CHANNEL_ID",
  "authorIsChannelOwner": false,
  "authorIsVerified": false,
  "likeCount": 4100,
  "replyCount": 93,
  "publishedAt": "2025-11-08T00:00:00.000Z",
  "publishedTimeText": "1 year ago",
  "isEdited": false,
  "isPinned": false,
  "hasCreatorHeart": false,
  "parentId": null,
  "scrapedAt": "2026-11-08T10:30:00.000Z"
}
```

A reply has the same fields, with `parentId` set to the ID of the comment it answers. Each video comes once, before its comments, with `dataType` `video` and its title, views, likes and `commentCount`.

### Use cases

- **Sentiment analysis and opinion mining**: what viewers think about a product, a brand or a topic.
- **Product and market research**: feature requests, complaints and questions under review videos.
- **Community management**: follow new comments on your videos, find questions to answer.
- **Influencer vetting**: the real engagement under a creator's videos.
- **AI and NLP datasets**: large, dated collections of real comments and replies.

### Use it via API, Python, JavaScript and integrations

Run it and get the comments in one call with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/socialscrapers~youtube-comments-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "maxCommentsPerVideo": 200}'
```

Python, with the [Apify client](https://docs.apify.com/api/client/python):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("socialscrapers/youtube-comments-scraper").call(run_input={
    "startUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
    "maxCommentsPerVideo": 500,
    "maxRepliesPerComment": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["dataType"] == "comment":
        print(item["author"], item["likeCount"], item["text"][:80])
```

JavaScript, with the [Apify client](https://docs.apify.com/api/client/js):

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('socialscrapers/youtube-comments-scraper').call({ startUrls: ['jNQXAC9IVRw'], commentsSortBy: 'newest' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const comments = items.filter((i) => i.dataType === 'comment');
```

Schedule runs, get a webhook when one finishes, or send the comments to **Make, Zapier, n8n, Google Sheets** and other tools through [Apify integrations](https://docs.apify.com/integrations). AI agents and assistants can run it through [Apify's MCP server](https://docs.apify.com/mcp).

### YouTube Data API vs YouTube Comments Scraper

| | Official YouTube Data API | YouTube Comments Scraper |
| --- | --- | --- |
| Setup | Google Cloud project and API key | None: paste video URLs or IDs |
| Limits | 10,000 quota units a day by default | No quota |
| Finding videos | A separate search, 100 quota units each | Search terms, channels and playlists in the same run |
| Price | Free within the quota | $0.30 per 1,000 comments |

### Limits

- **Public videos only.** Comments of age-restricted videos need a signed-in account, so those videos are saved without comments. Videos with comments turned off are saved with `commentsTurnedOff: true`.
- **Dates** are estimated from YouTube's "2 weeks ago" text, to the day for dates a day or more back. Comment likes are as precise as YouTube shows them ("1.2K" becomes 1200).
- **Speed**: comments come about 20 per request, so very large threads take a while. In test runs, 500 comments took under half a minute.
- Live chat is not collected; live streams have a chat instead of comments.
- **Datacenter proxy choices fall back to residential.** If you pick Apify Proxy without the RESIDENTIAL group, the first session YouTube refuses moves the run to RESIDENTIAL, in the same country; custom proxy URLs are used exactly as given.
- **Share links work as they are**: `youtu.be/…` links, links with the app's `?si=…` share parameter, `m.youtube.com`, `music.youtube.com`, `/shorts/…`, `/live/…` and `/embed/…` links all name the same video, channel or playlist.
- **A run with 0 results still succeeds.** When a video is private or deleted, a channel does not exist or a search finds nothing, the run ends as Succeeded with a status message naming each input and why, and nothing is charged. When nothing in the input can be used at all, the run also ends as Succeeded, with a status message that starts "Nothing to scrape:" and says what to fix; no results are charged. A run fails only when YouTube refuses every one of 3 or more inputs and a well-known public channel is refused too (the scraper is then blocked; try again later).

### FAQ

**Is it legal to scrape YouTube comments?**
YouTube Comments Scraper collects only comments that anyone can see without signing in. Comments contain personal data (names and opinions), which laws such as the GDPR protect, so collect only what you need and have a legitimate reason for it. You are responsible for how you use the data and for following YouTube's terms and the laws that apply to you.

**Do I need a YouTube account or API key?**
No. Paste the videos and start the run.

**How many comments can I get from one video?**
As many as YouTube lists; there is no upper limit in the scraper.

**Why did I get fewer comments than the video's comment count?**
The count includes replies and comments YouTube holds back or later removed; set **Max replies per comment** to collect replies too.

**Can I scrape YouTube Shorts comments?**
Yes. Paste the Shorts URL like any other video.

**Do I pay for the videos?**
Each video is saved once before its comments, at $0.61 per 1,000 videos, which is $0.00061 a video.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

## `startUrls` (type: `array`):

Video and Shorts URLs or IDs, one per line: <code>https://www.youtube.com/watch?v=jNQXAC9IVRw</code>, <code>https://youtu.be/…</code>, <code>https://www.youtube.com/shorts/…</code> or a bare 11-character ID. Channel and playlist URLs work too: the comments of their videos are collected.

## `maxCommentsPerVideo` (type: `integer`):

How many top-level comments to save for each video. No upper limit. Example: <code>1000</code>.

## `maxRepliesPerComment` (type: `integer`):

How many replies to save under each comment. 0 saves no replies. Example: <code>20</code>.

## `commentsSortBy` (type: `string`):

Top comments or newest first.

## `searchQueries` (type: `array`):

Also collect the comments of the videos YouTube finds for these terms, one per line. Example: <code>iphone 18 review</code>.

## `maxResultsPerQuery` (type: `integer`):

How many videos to take from each search term. Example: <code>20</code>.

## `maxVideosPerChannel` (type: `integer`):

How many of the newest videos to take from each channel or playlist URL. Example: <code>20</code>.

## `includeComments` (type: `boolean`):

Save each video's comments as separate items, right after the video.

## `proxyConfiguration` (type: `object`):

Residential proxies give the most reliable results.

## `maxConcurrency` (type: `integer`):

How many videos are read at the same time. Example: <code>20</code>.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxCommentsPerVideo": 10,
  "maxRepliesPerComment": 0,
  "commentsSortBy": "top",
  "maxResultsPerQuery": 20,
  "maxVideosPerChannel": 20,
  "includeComments": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 20
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "maxCommentsPerVideo": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/youtube-comments-scraper").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 = {
    "startUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
    "maxCommentsPerVideo": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/youtube-comments-scraper").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 '{
  "startUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxCommentsPerVideo": 10
}' |
apify call socialscrapers/youtube-comments-scraper --silent --output-dataset

```

## MCP server setup

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

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/929cnznyhT8dSmkmD/builds/eb8n7hhcqmdYFCOzU/openapi.json
