# Fast YouTube Scraper & Deepfake Detector (`solutionssmart/fast-youtube-scraper`) Actor

Fast HTTP-only YouTube scraper for search results, channels, playlists, hashtags and videos. Scores every video for deepfake / AI-generated content signals and exports the suspicious ones as HTML, JSON, CSV, Excel and XML.

- **URL**: https://apify.com/solutionssmart/fast-youtube-scraper.md
- **Developed by:** [Solutions Smart](https://apify.com/solutionssmart) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 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.

Learn more: https://docs.apify.com/actors/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

### What is Fast YouTube Scraper & Deepfake Detector?

**Fast YouTube Scraper & Deepfake Detector** is a **YouTube scraper** that collects videos from **search results, channels, playlists, hashtags, Shorts, live streams and single video URLs**, and gives every video a **deepfake / AI-generated content score** from 0 to 100. The videos it flags are saved as a ready-to-share **HTML, JSON, CSV, Excel (XLSX) and XML report**.

The easiest way to try it: type a search term such as `AI generated video`, click **Start**, and download the dataset or the suspicious-video report a few seconds later. It works as a **YouTube API alternative**: no API key, no quota, no browser, and no video downloads.

### What can this YouTube scraper do?

- ⚡ **Scrape YouTube fast.** On a direct connection, 50 videos with full details and the deepfake check take about **8 seconds**, and the listing-only mode about 3 seconds. Through Apify's residential proxy, expect about **3 videos per second** with full details (see below).
- 💸 **Costs little.** **$0.40 per 1,000 videos**, and failed items are never billed.
- 🕵️ **Find deepfakes and AI-generated videos.** Every video gets a score, a level (none, low, medium, high) and the reasons behind it. YouTube's own **"Made with AI"** and **"Altered or synthetic content"** labels are captured.
- 🚨 **Spot scams and impersonation.** It flags crypto "giveaway" live streams, unverified channels named after celebrities or brands, and wallet addresses in descriptions.
- 📈 **Get up to 1,000+ videos per search term.** YouTube stops a search after about 300-500 results; the Actor keeps going with upload-date windows and other sort orders.
- 📝 **Download transcripts.** Turn on `downloadTranscripts` to get each video's captions (uploaded or auto-generated) with timestamps.
- 📑 **Export suspicious content.** The flagged videos are written as an HTML table, JSON, CSV, Excel and XML, highest score first.
- 🔁 **Use the Apify platform.** You get scheduling, API access, integrations (Make, Zapier, Slack, Google Sheets, webhooks), proxy rotation and run monitoring.

Typical uses are trust and safety monitoring, brand and celebrity impersonation checks, crypto scam detection, research on synthetic media, and plain YouTube data collection: views, likes, comment counts, subscribers and publish dates.

### What data can you extract from YouTube?

| Field | Description |
|---|---|
| `title`, `url`, `id`, `type` | Video title, link, ID and type (`video`, `shorts` or `stream`) |
| `viewCount`, `likes`, `commentsCount` | Engagement counts |
| `date`, `dateIsApproximate` | Exact publish time, or an estimate from text like "3 days ago" in fast mode |
| `duration`, `durationSeconds` | Length as `HH:MM:SS` and in seconds |
| `text`, `hashtags`, `keywords`, `descriptionLinks` | Description, hashtags, tags and links |
| `category`, `isFamilySafe`, `isUnlisted`, `isLiveNow` | Video metadata |
| `channelName`, `channelUrl`, `channelUsername`, `numberOfSubscribers`, `isChannelVerified` | Channel data |
| `aiLabel`, `aiLabelText`, `aiLabelChecked` | YouTube's "How this content was made" disclosure |
| `deepfakeScore`, `deepfakeLevel`, `isSuspicious`, `deepfakeReasons` | Deepfake score and the signals behind it |
| `transcript` | Captions: language, auto-generated or not, full text and timed segments (when `downloadTranscripts` is on) |
| `input`, `fromYTUrl`, `order`, `scrapedAt` | Where the video was found and when |

### How to scrape YouTube and detect deepfakes

1. Open the Actor and go to the **Input** tab.
2. Enter one or more **search terms**, or paste YouTube **URLs** (video, Short, channel, playlist, search or hashtag pages).
3. Set how many regular videos, Shorts and live streams you want per search term.
4. Choose a **detail level**. Only `deep` (the default) reads YouTube's AI label.
5. Optionally change the **deepfake threshold** (default 40) or keep **only suspicious videos**.
6. Optionally turn on **Download transcripts** and pick the caption language.
7. Click **Start**. When the run finishes, open the **Output** tab to get the dataset and the suspicious-video reports.

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

You pay **$0.40 per 1,000 videos** in the dataset (pay per event: one event per video). Platform compute and datacenter proxy are included in that price, so you only pay for results. Two add-ons apply only when you use them:

| Event | Price |
|---|---|
| Video | $0.40 per 1,000 videos |
| Add-on: transcript | $2.00 per 1,000 transcripts, any length; only videos that have captions are charged |
| Add-on: residential proxy | $0.65 per 1,000 videos, only when `proxyConfiguration` uses Apify's `RESIDENTIAL` group |

Examples without transcripts:

| Videos | Price |
|---|---|
| 100 | $0.04 |
| 1,000 | $0.40 |
| 10,000 | $4.00 |

Apify's free plan includes $5 of monthly credit, which covers about **12,500 videos**. Inputs or videos that fail are listed in the `ERRORS` record, not in the dataset, so you are never charged for them. If you set a maximum cost for a run, the Actor stops when it reaches it, and the reports only contain videos you paid for.

![Bar chart: YouTube scraper price per 1,000 videos on the Apify free plan. Fast YouTube Scraper $0.40, apidojo/youtube-scraper $0.50, streamers/youtube-scraper $4.00](https://api.apify.com/v2/key-value-stores/Y9KUSfixv6qLoZdPC/records/youtube-scraper-price-comparison.svg)

| Actor | Price per 1,000 videos (free plan) | Default memory | Deepfake score and reports |
|---|---|---|---|
| **Fast YouTube Scraper & Deepfake Detector** | **$0.40** | 1024 MB | Included |
| apidojo/youtube-scraper | $0.50 | 256 MB | — |
| streamers/youtube-scraper | $4.00 | 1,024 MB | — |

Competitor prices come from the Apify Store on 27 November 2026; paid Apify plans get tier discounts on some of them. For transcripts, streamers/youtube-scraper charges $48 per 1,000 transcript minutes on the free plan, so one 10-minute video costs $0.48 there and $0.002 here.

### How many videos can I get per search term?

Up to `maxResults` per term. YouTube itself ends a search after roughly 300-500 results. When that happens before `maxResults` is reached, the Actor runs the same search again with the upload-date filters (this year, this month, this week, today) and then sorted by upload date and by views, and keeps only videos it has not seen yet. In a test, one search term (`fitness workout routine`, `maxResults: 1000`, `fast`) returned **1,000 unique videos in 50 seconds with 69 requests**.

The later videos come from those filtered searches, so they are less closely ranked by relevance than the first few hundred. Very narrow search terms can still run out before `maxResults`. If you set `dateFilter` yourself, only that filter is used.

### How fast is it?

Run time for a 50-video search, median of three test runs at 256 MB memory:

![Bar chart: run time for 50 YouTube videos. fast 3.1 seconds with 3 requests, standard 3.4 seconds with 53 requests, deep 8.1 seconds with 103 requests](https://api.apify.com/v2/key-value-stores/5C70HVikqPm3rHM23/records/youtube-scraper-run-time.svg)

| Detail level | What you get | Requests for 50 videos | Run time |
|---|---|---|---|
| `fast` | Listing data: title, views, estimated date, duration, channel | 3 | 3.1 s |
| `standard` | + exact date, likes, full description, keywords, category | 53 | 3.4 s |
| `deep` (default) | + YouTube AI label, comments count, subscribers, verified badge, hashtags, links | 103 | 8.1 s |

These numbers come from a direct connection. Through Apify's residential proxy: 2,000 videos in deep mode (two search terms, `RESIDENTIAL` group, 10 workers) took about 13 minutes, roughly 2.7 videos per second. That run requested each video's two detail responses one after the other; the Actor now requests them in parallel, which should make proxy runs faster still (not measured yet). Datacenter proxy and direct connections are closer to the direct numbers. Times depend on the network and the proxy, so treat them as a guide.

### How does the deepfake detection work?

Each video is scored from its **metadata**: title, tags, description, channel, YouTube's AI label, live status and audience numbers. The points of the signals below are added up and kept between 0 and 100. A YouTube AI label always gives at least 60. The levels are none (0–19), low (20–39), medium (40–69) and high (70–100). A video is `isSuspicious` when its score is at or above `deepfakeThreshold`.

| Signal | Points | Fires when |
|---|---|---|
| S01 YouTube AI label | +70 | `aiLabel` is "Made with AI" or "Altered or synthetic content" (deep only) |
| S02 Explicit AI disclosure | +40 / +20 / +15 | "AI generated", "made with AI", "AI voice"… in the title / tags / description, in many languages |
| S02b Ambiguous AI phrase | +20 / +12 / +10 | "AI made", "AI created", "100% AI", only when S02 did not fire |
| S03 Deepfake terms | +25 / +15 / +10 | "deepfake", "face swap", "voice clone"… |
| S04 AI tool names | +20 / +12 / +10 | Sora 2, Veo 3, Runway Gen-4, Kling AI, HeyGen, ElevenLabs… |
| S05 Weak AI token | +5 | A bare "AI" tag |
| S06 Public figure + synthetic | +15 | A known celebrity or politician in the title together with S02 to S04 |
| S07 Crypto giveaway | +25 | Giveaway phrases together with crypto terms |
| S08 Celebrity + crypto | +20 | A celebrity name together with crypto terms |
| S09 Live scam | +20 | S07 or S08 on a stream that is live now |
| S10 Channel impersonation | +15 | An unverified channel named like a celebrity or brand |
| S11 Handle mismatch | +10 | That channel's @handle does not match its name |
| S12 Wallet address | +10 | A Bitcoin or Ethereum address in the description |
| S13 Audience anomaly | +5 | Under 1,000 subscribers, over 100,000 views, longer than 3 minutes |
| N01 Discussion context | −25 / −10 | "how to detect", "explained", "news", "report", "review"… in the title / description |
| N02 Verified channel | −10 | The channel has the verified badge |
| N03 Verified news or education | −10 | Verified, and the category is News, Education or Science & Technology |
| N04 Camera provenance | −40 | YouTube shows "Captured with a camera" |

Every signal that fired is listed in `deepfakeReasons` with its points, the field it matched and the matched text, so you can check each score yourself.

#### What are the limits of the deepfake score?

- **It reads metadata, it does not analyse the video.** No frames or audio are checked. A deepfake with a neutral title and description scores low, and a video *about* deepfakes can score high (N01 lowers this, but does not remove it).
- **YouTube's AI label is a disclosure, not a detection.** The creator adds it, or YouTube adds it when the file's C2PA data says so. A missing label proves nothing, and labelled videos can be harmless (art, satire, news segments that show AI clips).
- **Use the score to decide what to look at first.** Review the videos yourself before you act on them.
- English keywords have the widest coverage. The main AI disclosure terms are also covered in other languages.

### Input

See the **Input** tab for every option. The main ones:

- `searchQueries`: search terms. Each term is searched separately for regular videos (`maxResults`), Shorts (`maxResultsShorts`) and live streams (`maxResultStreams`). Live and past streams that appear in the regular results are left out, so they do not use up `maxResults`.
- `startUrls`: YouTube URLs. For channel, playlist, search and hashtag URLs, `maxResults` caps the videos per URL. A channel URL ending in `/shorts` or `/streams` lists that tab. You can also link a remote text file with one URL per line.
- `sortingOrder`, `dateFilter`, `videoType`, `lengthFilter` and the feature filters (`isHD`, `is4K`, `hasSubtitles`, `isLive`…): YouTube's search filters. `date` sorting sorts each search's results by publish date.
- `sortVideosBy` (NEWEST, POPULAR, OLDEST): the order of a channel's videos. `oldestPostDate` (`YYYY-MM-DD`, or relative like `30 days`, `2 weeks`, `12 hours`; `1 day` means today) skips older videos. When it is set, channels are listed newest first.
- `detailLevel`: `fast`, `standard` or `deep`, see the table above.
- `downloadTranscripts` (default off) and `transcriptLanguage` (default `en`). Uploaded captions in that language are preferred, then auto-generated ones; a video with no captions in that language gets its first available track.
- `deepfakeThreshold` (0–100, default 40), `onlySuspicious`, `exportFormats`, `maxConcurrency`, `country` and `proxyConfiguration`.

Search with full details:

```json
{
	"searchQueries": ["AI generated deepfake video"],
	"maxResults": 15,
	"maxResultsShorts": 5,
	"detailLevel": "deep",
	"exportFormats": ["html", "json", "csv", "xlsx", "xml"]
}
```

A channel, a playlist and one video:

```json
{
	"startUrls": [
		{ "url": "https://www.youtube.com/@mkbhd" },
		{ "url": "https://www.youtube.com/playlist?list=PLT26wpyuKBpMf99VVaNuCmYeUXcTOQEwJ" },
		{ "url": "https://www.youtube.com/watch?v=hTbf_PCuCJM" }
	],
	"maxResults": 5,
	"detailLevel": "standard"
}
```

### Output

You can download the dataset as JSON, HTML, CSV, Excel and other formats. Here is a real item from the first input example, shortened:

```json
{
	"id": "hTbf_PCuCJM",
	"url": "https://www.youtube.com/watch?v=hTbf_PCuCJM",
	"type": "video",
	"title": "10 Creepiest AI Deepfakes That Fooled Everyone",
	"viewCount": 9183,
	"date": "2026-05-11T15:01:13.000Z",
	"dateIsApproximate": false,
	"duration": "00:12:53",
	"likes": 326,
	"commentsCount": 16,
	"hashtags": ["#Creepy", "#Deepfake", "#Mystery", "#AI", "#Technology"],
	"category": "Entertainment",
	"channelName": "MostAmazingTop10",
	"channelUrl": "https://www.youtube.com/@MostAmazingTop10",
	"numberOfSubscribers": 7850000,
	"isChannelVerified": true,
	"aiLabel": "Made with AI",
	"aiLabelText": "Sounds or visuals were altered or fully generated. Learn more",
	"aiLabelChecked": true,
	"deepfakeScore": 100,
	"deepfakeLevel": "high",
	"isSuspicious": true,
	"deepfakeReasons": [
		{ "signal": "S01_yt_ai_label", "points": 70, "field": "aiLabel", "match": "Made with AI" },
		{ "signal": "S03_deepfake_terms", "points": 25, "field": "title", "match": "deepfake" },
		{ "signal": "S02_explicit_ai_disclosure", "points": 20, "field": "tags", "match": "ai generated" },
		{ "signal": "N02_verified_channel", "points": -10, "field": "channel", "match": "verified" }
	],
	"input": "AI generated deepfake video",
	"fromYTUrl": "https://www.youtube.com/results?search_query=AI+generated+deepfake+video&sp=EgIQAQ%3D%3D",
	"order": 4,
	"scrapedAt": "2026-11-27T19:35:14.000Z"
}
```

With `downloadTranscripts` on, each video also has a `transcript` (shortened):

```json
"transcript": {
	"language": "en",
	"languageName": "English (auto-generated)",
	"isAutoGenerated": true,
	"text": "to a place where we don't know ...",
	"segments": [
		{ "start": 14.08, "duration": 4.08, "text": "to a place where we don't know" }
	]
}
```

The **Transcripts** view of the dataset shows the title, link and transcript text side by side. The JSON and XML reports include the transcript; the HTML, CSV and Excel reports do not.

#### How do I download the suspicious-video report?

The suspicious videos (score at or above the threshold, highest first) are saved in the run's **key-value store**:

| Record | Contents |
|---|---|
| `suspicious.html` | Report page with a colour-coded table; click a column to sort |
| `suspicious.json` | Full items as a JSON array |
| `suspicious.csv` | 18 columns, opens directly in Excel |
| `suspicious.xlsx` | Excel sheet with a frozen header, filters and clickable links |
| `suspicious.xml` | `<videos><video>…</video></videos>` with all fields |
| `OUTPUT` | Run summary: counts, suspicious count, AI-label hits and report links |
| `ERRORS` | Inputs or videos that failed (empty when nothing failed) |

Open them from the run's **Output** tab or **Storage → Key-value store**, or download them through the API:
`https://api.apify.com/v2/key-value-stores/{storeId}/records/suspicious.xlsx`.

### Tips for faster and cheaper runs

- Use `detailLevel: "fast"` when you don't need YouTube's AI label or exact dates. It sends about one request per 20 videos instead of two per video.
- Leave `maxResultsShorts` and `maxResultStreams` at 0 unless you need them.
- Turn on `onlySuspicious` to keep only the flagged videos in the dataset and on your bill.
- **Pick the proxy by run size.** Both work; the trade-off is price against speed. Measured with the same input (2 search terms, 1,000 videos each, deep):

  | Proxy group | Speed | Extra price |
  |---|---|---|
  | Datacenter (default) | slower: about 1 video per second (1,533 videos in about 25 minutes) | none: the running cost is very low (about $0.05 per 1,000 videos in that run) and is covered by the $0.40 video price |
  | `RESIDENTIAL` | faster: about 2.7 videos per second (2,000 videos in 13 minutes), no blocks | $0.65 per 1,000 videos |

  Datacenter is the cheapest way to run the Actor: you pay only the video price. Use it for small and medium runs, or when time does not matter. Use residential for large runs that must finish fast, or when datacenter requests get blocked (`BLOCKED` in `ERRORS`). The `UNBLOCKER` group is not supported: the run stops with an input error.
- **Speed.** Scoring works on up to **Max concurrency** videos at a time (default 8), but never more than the number of proxy sessions (16 on Apify Proxy). Each video's details are requested in parallel. Memory does not change speed; the Actor uses about 30 MB, so the default memory is fine.
- Transcripts need a proxy for more than a few videos: YouTube limits caption downloads per IP address much more tightly than search.

### Limitations

- Only public videos are scraped. Age-restricted, private and members-only videos are listed as `VIDEO_UNAVAILABLE` in `ERRORS`. When YouTube asks to "confirm you're not a bot", the request is retried through another proxy session and reported as `BLOCKED` if it keeps failing.
- Shorts listings have no dates. With `oldestPostDate`, each Short's date is looked up and older ones are skipped. A channel's Shorts tab stops at the date; Shorts from search do not stop early.
- Hashtag pages for regular videos return one page (about 16 videos). Shorts hashtag pages can be paged.
- Some filter combinations return nothing on YouTube itself, for example Shorts + sort by views + this week.
- `sortingOrder: "date"` sorts the videos that were found. It does not fetch the newest videos on YouTube.
- Channel About-page fields (links, country, join date) are not scraped.
- Caption downloads are rate-limited per IP address. A blocked transcript is listed as `TRANSCRIPT_FAILED` in `ERRORS` and the video is kept without it (and without the transcript charge). After 20 blocked caption requests in a row, the run stops asking for transcripts and adds one `TRANSCRIPTS_STOPPED` record.

### FAQ

#### Is it legal to scrape YouTube?

This Actor extracts only data that creators have chosen to publish, and no private user data such as email addresses. Your results can still contain personal data, such as channel names. Personal data is protected by the GDPR in the European Union and by other laws worldwide. Don't scrape personal data unless you have a legitimate reason to do so, and if you're unsure, consult your lawyers.

#### Does a high score mean the video is a deepfake?

No. The score tells you what to review first. See [What are the limits of the deepfake score?](#what-are-the-limits-of-the-deepfake-score)

#### Can I use it through the API or with integrations?

Yes. Start runs and fetch results with the [Apify API](https://docs.apify.com/api/v2) (see the **API** tab for ready-made code), schedule runs in Apify Console, or send the results to Google Sheets, Slack, Make, Zapier or a webhook through the **Integrations** tab.

#### Something isn't working?

Check the `ERRORS` record and the run log, then open an issue in the **Issues** tab. If you need a custom version, such as other platforms, more signals or a different report layout, ask there as well.

# Actor input Schema

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

Terms to search on YouTube, one per line. Each term is searched separately.

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

Direct YouTube URLs: videos, Shorts, channels (@handle, /channel/UC..., /c/, /user/), playlists, search result pages and hashtag pages. A linked remote text file is downloaded once and every URL in it is used.

## `maxResults` (type: `integer`):

Maximum regular videos per search term. YouTube stops one search after about 300-500 results; to go further, the Actor repeats the search with upload-date windows (this year, month, week, today) and other sort orders, and keeps only new videos. For URLs, the maximum number of items per URL.

## `maxResultsShorts` (type: `integer`):

Maximum Shorts per search term (0 = none).

## `maxResultStreams` (type: `integer`):

Maximum live streams per search term (0 = none).

## `sortingOrder` (type: `string`):

Order of search results. "Upload date" sorts the fetched search results by date (use it together with the upload date filter). Channel and playlist URLs keep their own order.

## `dateFilter` (type: `string`):

Only videos uploaded within this period.

## `videoType` (type: `string`):

Restrict regular-video search results to videos or movies.

## `lengthFilter` (type: `string`):

Video length filter.

## `isHD` (type: `boolean`):

Only HD videos.

## `is4K` (type: `boolean`):

Only 4K videos.

## `hasSubtitles` (type: `boolean`):

Only videos with subtitles.

## `hasCC` (type: `boolean`):

Only Creative Commons videos.

## `isLive` (type: `boolean`):

Only live videos.

## `is3D` (type: `boolean`):

Only 3D videos.

## `is360` (type: `boolean`):

Only 360° videos.

## `isHDR` (type: `boolean`):

Only HDR videos.

## `isVR180` (type: `boolean`):

Only VR180 videos.

## `hasLocation` (type: `boolean`):

Only videos with a location.

## `isBought` (type: `boolean`):

Only purchased videos.

## `sortVideosBy` (type: `string`):

Order in which channel videos are listed. Ignored when an oldest video date is set: channels are then listed newest first.

## `oldestPostDate` (type: `string`):

Skip videos older than this date (YYYY-MM-DD) or relative age (e.g. "30 days", "2 weeks", "12 hours"; "1 day" means today). Channel listings stop at the first older video.

## `detailLevel` (type: `string`):

Fast: listing data only. Standard: adds full description, keywords, exact date, likes and category. Deep: also adds YouTube's own AI label, comments count, subscribers, verification, hashtags and links (best deepfake detection).

## `deepfakeThreshold` (type: `integer`):

Videos with a deepfake score at or above this value (0-100) are marked suspicious.

## `onlySuspicious` (type: `boolean`):

Save only suspicious videos to the dataset.

## `downloadTranscripts` (type: `boolean`):

Add each video's captions (uploaded or auto-generated) to the dataset as the transcript field: language, full text and timed segments. Paid add-on per transcript found; videos without captions cost nothing extra.

## `transcriptLanguage` (type: `string`):

Preferred caption language code, e.g. en, de, es. Uploaded captions are preferred over auto-generated ones. When a video has no captions in this language, its first available track is used.

## `exportFormats` (type: `array`):

Formats of the suspicious-videos report saved to the key-value store.

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

Maximum parallel requests to YouTube.

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

YouTube country code (gl), e.g. "US".

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

Optional proxies. Datacenter (the default group) adds nothing to the price. RESIDENTIAL was about 3 times faster on large runs and adds $0.65 per 1,000 videos. The UNBLOCKER group is not supported.

## Actor input object example

```json
{
  "searchQueries": [
    "deepfake"
  ],
  "maxResults": 10,
  "maxResultsShorts": 0,
  "maxResultStreams": 0,
  "sortingOrder": "relevance",
  "dateFilter": "",
  "videoType": "",
  "lengthFilter": "",
  "isHD": false,
  "is4K": false,
  "hasSubtitles": false,
  "hasCC": false,
  "isLive": false,
  "is3D": false,
  "is360": false,
  "isHDR": false,
  "isVR180": false,
  "hasLocation": false,
  "isBought": false,
  "sortVideosBy": "NEWEST",
  "detailLevel": "deep",
  "deepfakeThreshold": 40,
  "onlySuspicious": false,
  "downloadTranscripts": false,
  "transcriptLanguage": "en",
  "exportFormats": [
    "html",
    "json",
    "csv",
    "xlsx",
    "xml"
  ],
  "maxConcurrency": 8,
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset with all scraped videos and their deepfake scores

## `output` (type: `string`):

JSON summary: counts, suspicious count, error count and the URLs of the suspicious-video exports (suspicious.html/.json/.csv/.xlsx/.xml, as selected in exportFormats)

## `errors` (type: `string`):

JSON array of inputs or videos that failed (empty when nothing failed)

# 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 = {
    "searchQueries": [
        "deepfake"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("solutionssmart/fast-youtube-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 = { "searchQueries": ["deepfake"] }

# Run the Actor and wait for it to finish
run = client.actor("solutionssmart/fast-youtube-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 '{
  "searchQueries": [
    "deepfake"
  ]
}' |
apify call solutionssmart/fast-youtube-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solutionssmart/fast-youtube-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/uI0ojyvzq3aoF4Q5G/builds/aEwmzqIVnI7xn0XZN/openapi.json
