# YouTube Hashtag Scraper (`neuro-scraper/youtube-hashtag-scraper`) Actor

YouTube Hashtag Scraper SD - YouTube Hashtag Scraper is a video data tool that extracts YouTube videos and Shorts for any #hashtag: title, channel, views, duration, upload date, thumbnails, plus optional likes, comments, tags and channel subscribers, country and totals, no login.

- **URL**: https://apify.com/neuro-scraper/youtube-hashtag-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Videos, Social media, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Hashtag Scraper

The YouTube Hashtag Scraper collects public YouTube hashtag data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the YouTube Hashtag Scraper your input, start it and get structured YouTube data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

> ⭐ **Featured by Neuro Scraper: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. [Try the Facebook Reels Scraper →](https://apify.com/neuro-scraper/facebook-reels-scraper)

> **Also from neuro-scraper:** the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export public Facebook Reels with views, reactions, comments, captions and video links in one click.

**YouTube Hashtag Scraper** extracts the videos and Shorts tagged with any YouTube #hashtag: title, video URL, channel, views, duration, upload age, thumbnails and the hashtag's total video and channel counts - and, on request, likes, comment count, category, exact publish date, full description, tags, the language of the title and the channel's subscribers, total views, video count, country and joined date. The YouTube Hashtag Scraper runs on Apify, needs no account, no login and no browser extension, and it delivers clean rows you can download as JSON, CSV, Excel or HTML, or pull through the Apify API. It serves marketers and agencies who track topics, brands that monitor campaign hashtags, creators who look for trends and content ideas, influencer scouts, and researchers who need hashtag datasets.

#### What the YouTube Hashtag Scraper does

- Reads the videos and Shorts YouTube lists for a hashtag (#travel, #cooking, #ai ...), then continues with more results for the same hashtag page after page until your limit.
- Every row: video id, URL, title, type (video, short or live), channel name, id and URL, verified badge, views (number and text), duration (text and seconds), upload age, approximate publish date, thumbnail and animated preview.
- The hashtag's size: how many videos and channels use it (for example "68M videos / 9.4M channels").
- Optional video stats: likes, comment count, category, exact publish date, full description and tags.
- Optional channel data: subscribers, total channel views, number of videos, country, joined date, description and avatar (read once per channel, then reused).
- Filters: videos only or Shorts only, title keywords, published within the last N days, plus language detection of the title.
- Several hashtags in one run; the limit applies per hashtag.

Every row the YouTube Hashtag Scraper returns has the same columns in the same order, numbers are real numbers and dates are ISO 8601 in UTC, so the YouTube Hashtag Scraper output drops straight into a spreadsheet, a database, Google Sheets or a BI dashboard.

#### Why use the YouTube Hashtag Scraper?

Doing this by hand means opening a hashtag, scrolling, opening every video and copying values. The YouTube Hashtag Scraper does it for you at scale and on a schedule: paste your hashtags, press Start, and the YouTube Hashtag Scraper returns structured data in minutes. Because the YouTube Hashtag Scraper follows YouTube's own "next page" for every hashtag, a limit of 500 really gives up to 500 videos (or everything YouTube shows, when that is less). The YouTube Hashtag Scraper also reports in its log and final status message which hashtags failed and why, so nothing is lost silently.

- Trend research: see which videos and Shorts lead a hashtag and how fast new uploads gain views.
- Campaign monitoring: schedule the YouTube Hashtag Scraper on your brand or campaign hashtag and keep a daily history.
- Influencer discovery: turn on channel data and sort the channels of a hashtag by subscribers and country.
- Content ideas: filter a hashtag by title keywords and the last 7 days to see what is working right now.
- Research and machine learning: build labelled video datasets per hashtag with titles, tags and languages.

#### How to use the YouTube Hashtag Scraper

1. Open the YouTube Hashtag Scraper in Apify Console and click **Try for free** (an Apify account is free to create).
2. Fill in the input: `hashtags` is the only required field (one hashtag per line, with or without #). Everything else is optional - limits, filters and the stats and channel options.
3. Click **Start**. The log shows, for every hashtag, its size ("68M videos / 9.4M channels"), how many videos the hashtag list held, how many result pages were read after it and how many videos were kept. Rows appear in the dataset while the YouTube Hashtag Scraper runs.
4. Download the results as JSON, CSV, Excel, XML or HTML from the Output tab, or read them through the Apify API (see below).
5. To repeat it, create a Schedule in Apify Console (daily or hourly) and connect an integration - Google Sheets, Zapier, Make, n8n or a webhook - so every new run lands where you need it.

#### Input of the YouTube Hashtag Scraper

| Field | Type | Default | What it does |
|---|---|---|---|
| `hashtags` | array | \["travel"] (prefill) | Hashtags with or without #, or youtube.com/hashtag/... URLs, one per line. |
| `contentType` | string | "all" | all, videos or shorts. |
| `maxItemsPerHashtag` | integer | 30 | Videos per hashtag (1-10000). |
| `keywords` | array | - | Keep only titles containing one of these words. |
| `publishedWithinDays` | integer | 0 | Keep only uploads of the last N days (0 = any time). |
| `includeVideoStats` | boolean | false | Add likes, comments, category, exact date, description, tags. |
| `includeChannelAnalytics` | boolean | false | Add channel subscribers, views, videos, country, joined date. |
| `detectLanguage` | boolean | false | Add the language of each title. |
| `country` | string | - | Two-letter country code for regional results. |
| `language` | string | "en" | Language of YouTube's texts. |
| `maxItems` | integer | 0 | Total limit for the run (0 = none). |
| `proxyConfiguration` | object | residential US | Proxy settings. |

Example input for the YouTube Hashtag Scraper (the 30 newest-listed videos and Shorts of one hashtag):

```json
{
  "hashtags": ["travel"],
  "maxItemsPerHashtag": 30
}
```

More ready-to-copy inputs for the YouTube Hashtag Scraper:

Only Shorts of three hashtags, 50 per hashtag (up to 150 rows), with likes, comments and exact dates:

```json
{
  "hashtags": ["#cooking", "#recipe", "#food"],
  "contentType": "shorts",
  "maxItemsPerHashtag": 50,
  "includeVideoStats": true
}
```

Influencer scouting: videos of the last 30 days whose title mentions "review", with the channel's subscribers and country and the title language, for India:

```json
{
  "hashtags": ["tech"],
  "contentType": "videos",
  "keywords": ["review"],
  "publishedWithinDays": 30,
  "includeChannelAnalytics": true,
  "detectLanguage": true,
  "country": "in",
  "maxItemsPerHashtag": 100
}
```

Many hashtags with a hard cap of 200 rows for the whole run:

```json
{
  "hashtags": ["travel", "hiking", "camping", "roadtrip"],
  "maxItemsPerHashtag": 100,
  "maxItems": 200
}
```

#### Features and how they work in the scraper

The YouTube Hashtag Scraper returns one row per video (or Short) per hashtag. Every input option is explained below: what it does, how the YouTube Hashtag Scraper applies it, its values and default, an example, a tip and how it combines with the other options.

##### `hashtags` - which hashtags to read

**What it does:** the main input of the YouTube Hashtag Scraper - the hashtags whose videos you want. **How it works:** write a hashtag with or without # (travel, #travel) or paste a youtube.com/hashtag/... link, one per line; the YouTube Hashtag Scraper reads YouTube's list for the hashtag first and then continues with more results for the same hashtag, page after page, until `maxItemsPerHashtag` is reached. A line with spaces or symbols that cannot be a hashtag is skipped with an ERROR in the log. **Values:** array of strings; prefilled with travel. **Example:** `"hashtags": ["travel", "#cooking"]`. **Tip:** the `hashtag` column of every row tells you which hashtag found it, so many hashtags can go into one run. **Combinations:** each hashtag gets its own limit; a video is returned once per hashtag.

##### `contentType` - videos, Shorts or both

**What it does:** chooses which kind of content the YouTube Hashtag Scraper returns. **How it works:** `all` keeps regular videos and Shorts, `videos` keeps only regular videos (and live streams), `shorts` opens the hashtag's Shorts tab when YouTube offers one and keeps only Shorts. Every row says what it is in `type` (video, short, live) and `contentType` (videos or shorts). **Values:** `all`, `videos`, `shorts`; default `all`. **Example:** `"contentType": "shorts"`. **Tip:** some hashtags are almost only Shorts - with `videos` such a hashtag can return few rows. **Combinations:** works together with `keywords` and `publishedWithinDays`; skipped items do not count toward the limit.

##### `maxItemsPerHashtag` - limit per hashtag

**What it does:** sets how many videos the YouTube Hashtag Scraper returns for each hashtag. **How it works:** the limit is per hashtag: 3 hashtags x 30 = up to 90 rows. YouTube's hashtag list itself ends after one page (measured: 8 videos for #travel, 36 for #cooking), so the YouTube Hashtag Scraper continues with more results for the same hashtag and follows their next-page token until the limit is reached or no more results come; `listSource` says which part each row came from. **Values:** integer 1-10000; default 30. **Example:** `"maxItemsPerHashtag": 200`. **Tip:** only videos that pass your filters count, so strict filters make the run take longer. **Combinations:** `maxItems` caps the total across all hashtags.

##### `keywords` - title keywords

**What it does:** keeps only videos whose title contains at least one of these words. **How it works:** the YouTube Hashtag Scraper compares each word with the title without regard to upper or lower case; a video matching any one word is kept, the others are skipped and do not count toward the limit. **Values:** array of words or phrases; empty = keep all. **Example:** `"keywords": ["review", "unboxing"]`. **Tip:** short words also match inside longer words ("art" matches "start"), so prefer whole words or phrases. **Combinations:** a video must pass `contentType` and `publishedWithinDays` too; the hashtag itself does not need to be in the title.

##### `publishedWithinDays` - only recent uploads

**What it does:** keeps only videos uploaded in the last N days. **How it works:** YouTube shows the upload age on each card ("3 days ago", "2w ago"); the YouTube Hashtag Scraper converts it to seconds and skips videos older than the limit, and writes an approximate `publishedDate` from it (the exact date comes with `includeVideoStats`). Shorts cards show no age: such a video is opened once and filtered on its exact publish date instead. 0 turns the filter off. **Values:** integer 0 or more; default 0. **Example:** `"publishedWithinDays": 7`. **Tip:** ages on cards are rounded ("1 month ago"), so allow a small margin. **Combinations:** with a daily schedule, `publishedWithinDays: 2` gives the newest uploads of a hashtag every day.

##### `includeVideoStats` - likes, comments and exact dates

**What it does:** adds likes, comment count, category, exact publish date, full description and tags to every row. **How it works:** for each video the YouTube Hashtag Scraper opens the video once and fills `likeCount`, `commentCount`, `category`, `publishedDate` (exact), `description`, `tags` and a 200-character `descriptionSnippet`; (channel, duration, verified badge and the exact date of Shorts are always completed, because their cards show none - that needs no option). When YouTube asks one IP address to confirm it is not a bot, the video is retried on a fresh proxy session (measured: this turned 10 failed videos into 0). **Values:** true or false; default false. **Example:** `"includeVideoStats": true`. **Tip:** it adds one request per video, so runs take longer; the price per row does not change. **Combinations:** combine with `includeChannelAnalytics` for a full video + channel record.

##### `includeChannelAnalytics` - channel subscribers, views and country

**What it does:** adds data about the channel of every video. **How it works:** the YouTube Hashtag Scraper opens each channel once (and its About panel) and fills `channelSubscriberCount`, `subscriberCount`, `channelSubscribers` (as shown), `channelViewCount`, `channelVideoCount`, `channelCountry`, `channelJoinedDate`, `channelDescription` and `channelAvatarUrl`; a channel seen again in the same run is taken from memory, so it costs no extra time. **Values:** true or false; default false. **Example:** `"includeChannelAnalytics": true`. **Tip:** `channelCountry` stays empty when the channel did not set a country. **Combinations:** works with every `contentType`; the channel of Shorts is read from the video itself.

##### `detectLanguage` - language of the title

**What it does:** adds the language of each video title. **How it works:** the YouTube Hashtag Scraper runs a language detector on the title and writes a two-letter code (en, es, hi, ro ...) into `language`. **Values:** true or false; default false. **Example:** `"detectLanguage": true`. **Tip:** titles made only of hashtags or emojis can be detected wrongly - check rows with very short titles. **Combinations:** useful with several hashtags to split the dataset by language, or together with `country`.

##### `country` - regional results

**What it does:** asks YouTube for the results of one country. **How it works:** give a two-letter code (us, gb, in, br ...); the YouTube Hashtag Scraper passes it with the hashtag list and with the further results, so the order and choice of videos follow that country. Empty = YouTube's default for the proxy location. **Values:** text, optional. **Example:** `"country": "gb"`. **Tip:** run the same hashtag with two countries to compare regional trends. **Combinations:** independent of the proxy country; use `language` for the language of YouTube's texts.

##### `language` - language of YouTube's texts

**What it does:** sets the language YouTube uses for texts such as view counts and upload ages. **How it works:** the YouTube Hashtag Scraper opens every page in this language, so `viewCountText`, `publishedText` and category names come in it; numbers are parsed into `viewCount` and `durationSeconds` either way. **Values:** a language code such as en, es, de, fr; default en. **Example:** `"language": "de"`. **Tip:** keep en when you use `publishedWithinDays` - the age filter understands English ages only, so with another language every video passes the filter and `publishedDate` comes only from Add video stats. **Combinations:** works with `country`.

##### `maxItems` - limit for the whole run

**What it does:** stops the YouTube Hashtag Scraper after this many rows in total. **How it works:** every saved video counts across all hashtags; when the total is reached the run ends cleanly and the log says so. 0 means no total limit (only `maxItemsPerHashtag` applies). **Values:** integer 0 or more; default 0. **Example:** `"maxItems": 200`. **Tip:** use it as a hard cost cap when you add many hashtags. **Combinations:** hashtags are read in input order, so the first hashtags fill the total first.

##### `titleFilter` - one title phrase

**What it does:** keeps only videos whose title contains this text. **How it works:** it is checked exactly like the words of `keywords` (without regard to upper or lower case); a video matching either is kept, the others are skipped and do not count toward the limit. **Values:** text, optional. **Example:** `"titleFilter": "review"`. **Tip:** use `keywords` for several alternatives and `titleFilter` for one phrase. **Combinations:** works with `contentType` and `publishedWithinDays`.

##### `maxConcurrency` - hashtags read at the same time

**What it does:** sets how many hashtags the YouTube Hashtag Scraper reads in parallel. **How it works:** every hashtag runs on its own connection and IP address with its own video-stats session, so a run with several hashtags takes about as long as the slowest one. **Values:** integer 1-20; default 5. **Example:** `"maxConcurrency": 3`. **Tip:** keep the default. **Combinations:** changes only the speed, never the rows or the price.

##### `outputVideoId` - column switch for `videoId`, `id`

**What it does:** turns the videoId, id column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputVideoId": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputVideoUrl` - column switch for `url`, `videoUrl`

**What it does:** turns the url, videoUrl column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputVideoUrl": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputTitle` - column switch for `title`

**What it does:** turns the title column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputTitle": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputChannelName` - column switch for `channelName`

**What it does:** turns the channelName column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputChannelName": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputChannelId` - column switch for `channelId`

**What it does:** turns the channelId column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputChannelId": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputChannelUrl` - column switch for `channelUrl`

**What it does:** turns the channelUrl column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputChannelUrl": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputIsVerified` - column switch for `isVerified`

**What it does:** turns the isVerified column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputIsVerified": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputThumbnailUrl` - column switch for `thumbnailUrl`, `movingThumbnailUrl`

**What it does:** turns the thumbnailUrl, movingThumbnailUrl column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputThumbnailUrl": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputPublishedText` - column switch for `publishedText`, `publishedTime`

**What it does:** turns the publishedText, publishedTime column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputPublishedText": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputDuration` - column switch for `duration`, `durationText`

**What it does:** turns the duration, durationText column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputDuration": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputDurationSeconds` - column switch for `durationSeconds`

**What it does:** turns the durationSeconds column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputDurationSeconds": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `outputScrapedAt` - column switch for `scrapedAt`

**What it does:** turns the scrapedAt column(s) on or off. **How it works:** with true (default) the YouTube Hashtag Scraper fills the column(s) as usual; with false they stay empty in every row, which keeps CSV and Excel exports small when you do not need them. The data is still read, so filters keep working. **Values:** true or false; default true. **Example:** `"outputScrapedAt": false`. **Tip:** you can also pick columns when exporting the dataset. **Combinations:** independent of the other options; the price per row stays the same.

##### `proxyConfiguration` - proxy

**What it does:** chooses the proxy of the YouTube Hashtag Scraper. **How it works:** the default is Apify residential proxies in the United States; visitors from some countries (for example the EU) first see a consent page, which the US default avoids, every hashtag and every channel gets its own IP session, and video stats switch to a new session when YouTube refuses one. **Values:** Apify proxy settings; default residential US. **Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}`. **Tip:** keep the default - datacenter IPs are refused by YouTube much more often. **Combinations:** independent of `country`.

#### Output of the scraper

Each dataset row of the YouTube Hashtag Scraper holds the fields below. A field is empty (null) only when YouTube does not publish that value for the video or the option that fills it is off - the table says when.

| Field | Type | Meaning | Example | Empty when |
|---|---|---|---|---|
| `hashtag` | string | Hashtag the video was found for | travel | never |
| `position` | integer | Position within the hashtag in this run | 1 | never |
| `listSource` | string | hashtag page (YouTube's hashtag list) or hashtag search (further results) | hashtag page | never |
| `videoId` | string | Video id | 62MBlICIAnY | never |
| `id` | string | Video id (same as videoId) | 62MBlICIAnY | never |
| `url` | string | Video URL | https://www.youtube.com/watch?v=62MBlICIAnY | never |
| `videoUrl` | string | Video URL (same as url) | https://www.youtube.com/watch?v=62MBlICIAnY | never |
| `title` | string | Video title | The USA says DO NOT TRAVEL, I went anyway... | never |
| `type` | string | video, short or live | video | never |
| `contentType` | string | videos or shorts | videos | never |
| `channelName` | string | Channel name | Best Ever Food Review Show | only when the video could not be opened (`error` says why) |
| `channelId` | string | Channel id | UCcAd5Np7fO8SeejB1FVKcYw | same as channelName |
| `channelUrl` | string | Channel URL | https://www.youtube.com/channel/UCcAd5Np7fO8SeejB1FVKcYw | same as channelName |
| `isVerified` | boolean | Channel has the verified badge | true | only when the video could not be opened |
| `viewCount` | integer | Views | 2139718 | rarely, when YouTube hides views |
| `viewCountNumber` | integer | Views (same as viewCount) | 2139718 | same as viewCount |
| `viewCountText` | string | Views as shown | 2,139,718 views | same as viewCount |
| `duration` | string | Length as shown | 25:49 | only when the video could not be opened |
| `durationText` | string | Length as shown (same as duration) | 25:49 | same as duration |
| `durationSeconds` | integer | Length in seconds | 1549 | same as duration |
| `publishedText` | string | Upload age as shown | 7mo ago | Shorts - their cards show no upload age (`publishedDate` is still filled from the video) |
| `publishedTime` | string | Upload age (same as publishedText) | 7mo ago | same as publishedText |
| `publishedDate` | string | Publish date: exact for Shorts and with Add video stats, else approximate from the age | 2026-04-17T05:30:18-07:00 | only when the card shows no age and the video could not be opened |
| `isLive` | boolean | Live stream now | false | rarely, when the card shows no live badge and the video was not opened |
| `thumbnailUrl` | string | Thumbnail image | https://i.ytimg.com/vi/.../hqdefault.jpg | never |
| `movingThumbnailUrl` | string | Animated preview | https://i.ytimg.com/an_webp/... | when YouTube shows no animated preview (Shorts) |
| `descriptionSnippet` | string | Short description | Our top travel spots... | Add video stats off (hashtag-list and Shorts cards carry no snippet); videos with no description |
| `description` | string | Full description (Add video stats) | ... | Add video stats off; videos whose uploader wrote no description (measured: some Shorts) |
| `content` | string | Description, else snippet, else title | ... | never |
| `likeCount` | integer | Likes (Add video stats) | 34375 | Add video stats off; uploader hid likes |
| `commentCount` | integer | Comments (Add video stats) | 3000 | Add video stats off; comments turned off |
| `category` | string | YouTube category (Add video stats) | Travel & Events | Add video stats off |
| `tags` | array | Uploader's tags (Add video stats) | \["travel", "vlog"] | Add video stats off; the uploader set no tags (measured: many Shorts) |
| `language` | string | Language of the title (Detect language) | en | Detect language off |
| `channelSubscriberCount` | integer | Channel subscribers (Add channel data) | 12200000 | Add channel data off; channel unknown |
| `subscriberCount` | integer | Subscribers (same as channelSubscriberCount) | 12200000 | same |
| `channelSubscribers` | string | Subscribers as shown | 12.2M subscribers | same |
| `channelVideoCount` | integer | Videos of the channel (Add channel data) | 1021 | same |
| `channelViewCount` | integer | Total channel views (Add channel data) | 3308234268 | same |
| `channelCountry` | string | Channel country (Add channel data) | United States | the channel set no country |
| `channelJoinedDate` | string | Date the channel was created, as shown | Sep 23, 2010 | Add channel data off |
| `channelDescription` | string | Channel description | ... | Add channel data off; empty channel description |
| `channelAvatarUrl` | string | Channel avatar | https://yt3.ggpht.com/... | Add channel data off |
| `hashtagVideoCount` | integer | Videos that use the hashtag | 68000000 | YouTube shows no count for the hashtag |
| `hashtagChannelCount` | integer | Channels that use the hashtag | 9400000 | same |
| `keyword` | string | The hashtag as searched | #travel | never |
| `searchKeyword` | string | The hashtag, on rows from the further results | #travel | rows from the hashtag list itself |
| `status` | string | ok | ok | never |
| `error` | string | Why the video itself could not be opened (stats or Shorts details missing) | - | the video was opened, or did not need to be |
| `fetchedInSeconds` | number | Seconds since the hashtag started | 12.4 | never |
| `scrapedAt` | string | When the row was scraped (UTC) | 2026-11-21T14:24:25Z | never |

Example YouTube Hashtag Scraper row (shortened):

```json
{
  "hashtag": "travel",
  "position": 1,
  "listSource": "hashtag page",
  "videoId": "62MBlICIAnY",
  "title": "The USA says DO NOT TRAVEL, I went anyway...",
  "type": "video",
  "channelName": "Best Ever Food Review Show",
  "viewCount": 2139718,
  "viewCountText": "2,139,718 views",
  "duration": "25:49",
  "publishedText": "7mo ago",
  "publishedDate": "2026-04-17T05:30:18-07:00",
  "likeCount": 34375,
  "commentCount": 3000,
  "category": "Travel & Events",
  "channelSubscriberCount": 12200000,
  "channelCountry": "United States",
  "hashtagVideoCount": 68000000,
  "hashtagChannelCount": 9400000,
  "language": "en"
}
```

#### Which columns can be empty in the scraper

Measured on our latest test run (24 rows, run DIrxHxPUW5vHmCO1e): every column that was empty on more than 10% of the rows, and why. A column is empty only when YouTube or Facebook does not publish the value for that row or the option that fills it is off.

- `channelCountry` (6 of 24 rows empty in the test): the channel set no country.
- `description` (8 of 24 rows empty in the test): Add video stats off; videos whose uploader wrote no description (measured: some Shorts).
- `descriptionSnippet` (8 of 24 rows empty in the test): Add video stats off (hashtag-list and Shorts cards carry no snippet); videos with no description.
- `movingThumbnailUrl` (4 of 24 rows empty in the test): when YouTube shows no animated preview (Shorts).
- `publishedText` (4 of 24 rows empty in the test): Shorts - their cards show no upload age (`publishedDate` is still filled from the video).
- `publishedTime` (4 of 24 rows empty in the test): same as publishedText.
- `tags` (11 of 24 rows empty in the test): Add video stats off; the uploader set no tags (measured: many Shorts).

#### The scraper vs. the top 5 YouTube hashtag Actors in the Apify Store

We compared the YouTube Hashtag Scraper with the five most used Store Actors of the same kind (Apify Store, November 2026) and built every feature that works without a login. "Top 5" = how many of those five offer the feature.

| Feature | Top 5 | YouTube Hashtag Scraper | Note |
|---|---|---|---|
| Several hashtags per run | 5/5 | Yes | `hashtags` |
| Videos / Shorts / both | 3/5 | Yes | `contentType` |
| Max videos per hashtag, paginated | 4/5 | Yes | `maxItemsPerHashtag` follows the next-page token after the hashtag list |
| Title filter | 1/5 | Yes | `keywords` |
| Published within N days | 1/5 | Yes | `publishedWithinDays` |
| Video stats (likes, comments, category, date, description, tags) | 2/5 | Yes | `includeVideoStats` |
| Channel data (subscribers, views, videos, country, joined) | 1/5 | Yes | `includeChannelAnalytics` |
| Language detection | 1/5 | Yes | `detectLanguage` |
| Country and language | 1/5 | Yes | `country`, `language` |
| Per-field output switches | 1/5 | No | every row has all columns; pick columns when exporting |
| Concurrency setting | 1/5 | No | the run paces itself to avoid blocks |
| Proxy configuration | 2/5 | Yes | residential US by default |

#### How much does the scraper cost?

The YouTube Hashtag Scraper uses pay-per-result pricing: you pay a small fee per dataset row plus the Apify platform usage of the run, and nothing for hashtags that return no rows. On the Apify free plan (monthly free credit) you can run the YouTube Hashtag Scraper many times before paying anything. Measured on our test runs: 24 rows with video stats, channel data and language detection used $0.0487 in platform usage; 20 rows with the same options used $0.0318.

**Price per result:** one result = one dataset row = one video for one hashtag. The YouTube Hashtag Scraper costs $1.49 per 1,000 results on the Apify Free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business. The stats, channel and language options do not change the price per row.

**Worked example:** 5 hashtags x 40 videos = 200 rows = 200 / 1,000 x $1.49 = **$0.298** on the Free plan, plus a few cents of platform usage when video stats are on (about $0.002 per row measured).

**How to cap the cost:** set `maxItems` (a hard total) and a small `maxItemsPerHashtag` while testing; in Apify Console you can also set a maximum cost per run, and the YouTube Hashtag Scraper stops when it is reached. Measured limits: YouTube's hashtag list holds one page (8-36 videos measured), further results are followed page after page.

#### Use the scraper through the API

Start a run and read the rows - from the Apify API (cURL):

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~youtube-hashtag-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"hashtags": ["travel"], "maxItemsPerHashtag": 30}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/youtube-hashtag-scraper").call(
    run_input={"hashtags": ["travel"], "maxItemsPerHashtag": 30})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["title"], row["viewCount"], row["url"])
```

Node.js (`npm install apify-client`):

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('neuro-scraper/youtube-hashtag-scraper').call({
    hashtags: ['travel'], maxItemsPerHashtag: 30 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'videos');
```

#### Tips for the scraper

- Turn on Add video stats whenever you need likes, comments, description and tags.
- Combine `publishedWithinDays` with a daily schedule to collect only fresh uploads of a hashtag.
- Schedule the YouTube Hashtag Scraper (daily or hourly) in Apify Console to build a history and spot changes over time.
- Use the YouTube Hashtag Scraper with webhooks or the Apify API to push new rows into your CRM, Slack or a database automatically.
- Keep the default residential proxy: YouTube limits anonymous visitors per IP address, and the YouTube Hashtag Scraper switches IPs when needed.

#### Limits of the scraper

- YouTube's hashtag list itself is one page long (8 videos for #travel and 36 for #cooking measured on 2026-11-21); more videos come from further results for the same hashtag, so later rows are ranked by YouTube's relevance rather than by the hashtag list.
- Upload ages on cards are rounded ("1 month ago"); `publishedDate` is exact for Shorts and with Add video stats, otherwise approximate from the age.
- Some uploaders write no description and set no tags (measured on Shorts) - those fields stay empty.
- The YouTube Hashtag Scraper reads public data only. It never logs in and cannot see private, deleted or age-restricted content.

#### FAQ about the scraper

**Why did the YouTube Hashtag Scraper return fewer videos than my maximum?**

A small hashtag simply has fewer videos, and `contentType`, `keywords` and `publishedWithinDays` skip the videos that do not match. The log prints for every hashtag how many videos its list held, how many result pages were read after it and how many videos were kept.

**Why is a field empty in the YouTube Hashtag Scraper output?**

Likes, comments, category, description and tags come only with Add video stats; subscribers and country only with Add channel data; some uploaders hide likes or write no description. The output table above says for every field when it can be empty.

**How do I get only new videos with the YouTube Hashtag Scraper?**

Set `publishedWithinDays` (for example 2) and schedule the run daily; keep the `videoId` values you already have to drop repeats.

**Can I run many hashtags in one YouTube Hashtag Scraper run?**

Yes - put them all into `hashtags`. Each hashtag gets its own `maxItemsPerHashtag` limit, and `maxItems` caps the whole run.

**Do I need a YouTube account to use the YouTube Hashtag Scraper?**

No. The YouTube Hashtag Scraper works without any YouTube account, cookie or login.

**Can I export the YouTube Hashtag Scraper results to Excel or Google Sheets?**

Yes. The YouTube Hashtag Scraper dataset downloads as CSV, Excel (XLSX), JSON, XML or HTML, and the Google Sheets integration sends rows to a sheet after every run.

**Is it legal to use the YouTube Hashtag Scraper?**

The YouTube Hashtag Scraper collects publicly available data only. You are responsible for how you use it: personal data is protected by laws such as the GDPR, so only process it when you have a legitimate reason, and respect YouTube's terms for your use case. Ask a lawyer when unsure.

**What happens when a hashtag fails in the YouTube Hashtag Scraper?**

The YouTube Hashtag Scraper logs an ERROR naming the hashtag and the reason, continues with the next hashtag, and lists the failed hashtags in the final status message of the run.

#### Other Actors that work well with the scraper

- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - public Facebook Reels with views, reactions, comments and video links.
- [YouTube Trending Videos Scraper](https://apify.com/neuro-scraper/youtube-trending-videos-scraper) - trending lists per country.
- [Youtube Most Replayed Scraper](https://apify.com/neuro-scraper/youtube-most-replayed-scraper) - the most replayed moments of videos.
- [YouTube Community Posts Scraper](https://apify.com/neuro-scraper/youtube-community-posts-scraper) - posts, polls and images of channels.

#### Feedback on the scraper

Found a bug in the YouTube Hashtag Scraper, or missing a field? Open an issue on the YouTube Hashtag Scraper Issues tab in Apify Console and we will look at it quickly. Tell us which input you used and what you expected - it helps us improve the YouTube Hashtag Scraper for everyone.

### Why use the scraper

The YouTube Hashtag Scraper is a YouTube scraper and YouTube data extractor for anyone who needs public YouTube hashtag data as clean data. The YouTube Hashtag Scraper handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the YouTube Hashtag Scraper for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

- No login and no code: the YouTube Hashtag Scraper runs on Apify with one click or one API call.
- Pay per result: the YouTube Hashtag Scraper charges only for rows delivered - no monthly YouTube API fee.
- Complete fields: the YouTube Hashtag Scraper returns every public field, with a stable schema for automation.
- Integrations: connect the YouTube Hashtag Scraper to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

### The scraper use cases

- Market research: the YouTube Hashtag Scraper collects YouTube hashtag data at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the YouTube Hashtag Scraper on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the YouTube Hashtag Scraper gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the YouTube Hashtag Scraper keeps a fresh copy of YouTube data through an Apify schedule and a webhook.
- Analytics and dashboards: send the YouTube Hashtag Scraper output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the YouTube Hashtag Scraper returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the YouTube Hashtag Scraper turns public YouTube data into a dataset you can diff run by run.
- Automation workflows: connect the YouTube Hashtag Scraper to Zapier, Make or n8n so every new row starts your next step.

### How to run it with the API, Python and Node.js

Start the YouTube Hashtag Scraper from the Apify Console, or call it from code. The YouTube Hashtag Scraper returns its dataset as JSON, CSV or Excel. With the Apify API you can run the YouTube Hashtag Scraper from Python or Node.js, wait for it to finish and read the rows, which makes the YouTube Hashtag Scraper easy to plug into an automation, a data pipeline or a scheduled export.

1. Open the YouTube Hashtag Scraper on Apify and fill in the input (or send the same input as JSON to the API).
2. Start the YouTube Hashtag Scraper. Follow the run log while the YouTube Hashtag Scraper collects public YouTube data.
3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
4. Schedule the YouTube Hashtag Scraper to keep your YouTube data fresh for monitoring and analytics.

### Tips for better results

- Start small: run the YouTube Hashtag Scraper with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller YouTube Hashtag Scraper runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each YouTube Hashtag Scraper run adds to your YouTube data over time.
- Filter early: use the input filters of the YouTube Hashtag Scraper so you only pay for the YouTube hashtag data you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every YouTube Hashtag Scraper result straight to Google Sheets, a CRM or a database.
- Watch the run log: the YouTube Hashtag Scraper writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

### The scraper FAQ

### Get started

Open the YouTube Hashtag Scraper, paste your input and press Start. In a few minutes the YouTube Hashtag Scraper hands you clean YouTube data as JSON, CSV or Excel, ready for analytics, monitoring, research or your CRM. Questions or a missing field? Write to us from the YouTube Hashtag Scraper page on Apify - we answer fast and add features users ask for.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| ⭐ **[Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper) | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Scraper](https://apify.com/neuro-scraper/amazon-keyword-scraper) | Amazon data with all public fields, exported to JSON, CSV or Excel |
| [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| [Facebook Video Details Scraper](https://apify.com/neuro-scraper/facebook-video-details-scraper) | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Scraper Advanced](https://apify.com/neuro-scraper/facebook-reels-scraper-advanced) | Facebook reels  advanced data with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Downloader](https://apify.com/neuro-scraper/facebook-reels-downloader) | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-video-scraper-advanced) | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper) | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| [Instagram Hashtag Scraper](https://apify.com/neuro-scraper/instagram-reeel-scraper) | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Profile Scraper](https://apify.com/neuro-scraper/tiktok-profile-scraper) | TikTok profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Best Sellers Scraper](https://apify.com/neuro-scraper/amazon-per-result-scraper) | Amazon best sellers with all public fields, exported to JSON, CSV or Excel |
| [Facebook Photos Scraper](https://apify.com/neuro-scraper/facebook-photo-posts-scraper) | Facebook photos with all public fields, exported to JSON, CSV or Excel |

# Actor input Schema

## `hashtags` (type: `array`):

Hashtags with or without # (travel, #travel) or youtube.com/hashtag/... URLs, one per line.

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

Which kind of content to return.

## `maxItemsPerHashtag` (type: `integer`):

How many videos per hashtag (3 hashtags x 30 = 90 rows). After the hashtag's own list the Actor continues with YouTube's results for the hashtag, page after page.

## `keywords` (type: `array`):

Keep only videos whose title contains one of these words (checked by the Actor).

## `publishedWithinDays` (type: `integer`):

Keep only videos uploaded in the last N days (YouTube shows ages such as "3 days ago"). 0 = any time.

## `includeVideoStats` (type: `boolean`):

Add likes, comment count, category, exact publish date, full description and tags (one extra request per video).

## `includeChannelAnalytics` (type: `boolean`):

Add each channel's subscribers, total views, video count, country, joined date, description and avatar (two requests per channel, cached).

## `detectLanguage` (type: `boolean`):

Add the language of each video title.

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

Optional two-letter country code (us, gb, in ...) for YouTube's regional results.

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

Language code for YouTube's texts (en, es, de ...).

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

Stops the whole run after this many dataset rows.

## `titleFilter` (type: `string`):

Keep only videos whose title contains this text (same check as Title keywords).

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

How many hashtags are read at the same time, each on its own connection.

## `outputVideoId` (type: `boolean`):

Fill the column(s) videoId, id. Off = left empty (smaller exports).

## `outputVideoUrl` (type: `boolean`):

Fill the column(s) url, videoUrl. Off = left empty (smaller exports).

## `outputTitle` (type: `boolean`):

Fill the column(s) title. Off = left empty (smaller exports).

## `outputChannelName` (type: `boolean`):

Fill the column(s) channelName. Off = left empty (smaller exports).

## `outputChannelId` (type: `boolean`):

Fill the column(s) channelId. Off = left empty (smaller exports).

## `outputChannelUrl` (type: `boolean`):

Fill the column(s) channelUrl. Off = left empty (smaller exports).

## `outputIsVerified` (type: `boolean`):

Fill the column(s) isVerified. Off = left empty (smaller exports).

## `outputThumbnailUrl` (type: `boolean`):

Fill the column(s) thumbnailUrl, movingThumbnailUrl. Off = left empty (smaller exports).

## `outputPublishedText` (type: `boolean`):

Fill the column(s) publishedText, publishedTime. Off = left empty (smaller exports).

## `outputDuration` (type: `boolean`):

Fill the column(s) duration, durationText. Off = left empty (smaller exports).

## `outputDurationSeconds` (type: `boolean`):

Fill the column(s) durationSeconds. Off = left empty (smaller exports).

## `outputScrapedAt` (type: `boolean`):

Fill the column(s) scrapedAt. Off = left empty (smaller exports).

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

Residential proxies in the United States (the default) give the most reliable results: visitors from some countries (e.g. the EU) first get a consent page.

## Actor input object example

```json
{
  "hashtags": [
    "travel"
  ],
  "contentType": "all",
  "maxItemsPerHashtag": 30,
  "keywords": [],
  "publishedWithinDays": 0,
  "includeVideoStats": false,
  "includeChannelAnalytics": false,
  "detectLanguage": false,
  "language": "en",
  "maxItems": 0,
  "maxConcurrency": 5,
  "outputVideoId": true,
  "outputVideoUrl": true,
  "outputTitle": true,
  "outputChannelName": true,
  "outputChannelId": true,
  "outputChannelUrl": true,
  "outputIsVerified": true,
  "outputThumbnailUrl": true,
  "outputPublishedText": true,
  "outputDuration": true,
  "outputDurationSeconds": true,
  "outputScrapedAt": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

One row per result, in the run's default dataset.

# 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 = {
    "hashtags": [
        "travel"
    ],
    "keywords": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/youtube-hashtag-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 = {
    "hashtags": ["travel"],
    "keywords": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/youtube-hashtag-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 '{
  "hashtags": [
    "travel"
  ],
  "keywords": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call neuro-scraper/youtube-hashtag-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/youtube-hashtag-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/52jkq1JvdJmMRPk2B/builds/xtgWDFKZE1ZGJke7S/openapi.json
