# YouTube Hashtag Scraper: Titles, Views & Dates per Video (`h1018y/anvil-youtube-hashtags`) Actor

Scrapes YouTube hashtag pages and search results for the hashtags you give. Give it hashtags or hashtag links; get each video's title, URL, views, length, channel and publish date as rows, with an onlyNew option for schedules.

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

## Pricing

from $1.01 / 1,000 results

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

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube Hashtag Scraper: Titles, Views & Dates per Video

**YouTube Hashtag Scraper** - Give it hashtags, get every video with its title, views, length, channel and date.

### What does YouTube Hashtag Scraper do?

Returns title, view count, duration, channel link and an approximate publish date for each video (the leader gives only channel name and URL), goes past the first screen of results, and has an onlyNew switch that returns just the videos not seen in the last run.

- Title, views, duration, channel name and link, thumbnail and approximate publish date on every row
- Sort by newest or most viewed and filter by hour, today, week, month, year or a from/to date
- Goes past the first 8 videos of a hashtag page by following the search results
- onlyNew switch for schedules: only videos not seen in the last run
- Same input and output field names as sasky/youtube-hashtag-videos-urls-scraper - switch by changing the actor id

### Who uses YouTube Hashtag Scraper, and for what

- Marketers - see which videos rank for a campaign hashtag and how many views they have
- Creators - find recent videos under a hashtag to study titles and length
- Agencies - check every morning which new videos appeared under a client hashtag
- Researchers - collect video lists for a topic hashtag into a spreadsheet

### Why this YouTube Hashtag Scraper?

A bare list of URLs and channel names forces a second tool or manual lookup before anyone can judge a video. This YouTube Hashtag Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from YouTube Hashtag Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `hashtag` | travelvlog |
| `video_url` | https://www.youtube.com/watch?v=jVlvhiUHFpE |
| `videoId` | jVlvhiUHFpE |
| `title` | Nathula Pass Travel Vlog / India–China Border / Gangtok / Si... |
| `channel_name` | Geo Traveller |
| `channel_url` | https://www.youtube.com/@GeoTraveller9 |
| `views` | 157732 |
| `duration` | 11:35 |
| `durationSeconds` | 695 |
| `publishedText` | 12d ago |
| `publishedApprox` | 2026-10-20 |
| `description` | For Darjeeling Sikkim Tour Package Contact - Etripto.in Call... |
| `thumbnail` | https://i.ytimg.com/vi/jVlvhiUHFpE/hqdefault.jpg |
| `source` | search |
| `error` | null |
| `changeType` | new |

### How to use YouTube Hashtag Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** (with **only new** on, where the form has it) to get just what is new every day; add a **webhookUrl** to get each run's rows sent to your own system, Zapier, Make or Slack.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "hashtags": [
    "travel"
  ],
  "limit": "5",
  "sortBy": "relevance",
  "date": "any",
  "onlyNew": false,
  "useApifyProxy": true
}
```

#### Output example (a real run)

```json
[
  {
    "hashtag": "travelvlog",
    "video_url": "https://www.youtube.com/watch?v=jVlvhiUHFpE",
    "videoId": "jVlvhiUHFpE",
    "title": "Nathula Pass Travel Vlog | India–China Border | Gangtok | Sikkim Tourism | GeoTraveller #travelvlog ",
    "channel_name": "Geo Traveller",
    "channel_url": "https://www.youtube.com/@GeoTraveller9",
    "views": 157732,
    "duration": "11:35",
    "durationSeconds": 695,
    "publishedText": "12d ago",
    "publishedApprox": "2026-10-20",
    "description": "For Darjeeling Sikkim Tour Package Contact - Etripto.in Call - +918917313559 Whatsapp - https://bit.ly/3Uq5XeR Website: ...",
    "thumbnail": "https://i.ytimg.com/vi/jVlvhiUHFpE/hqdefault.jpg",
    "source": "search",
    "error": null,
    "changeType": "new"
  },
  {
    "hashtag": "travelvlog",
    "video_url": "https://www.youtube.com/watch?v=JY-XWw8k2Vk",
    "videoId": "JY-XWw8k2Vk",
    "title": "Birthday Trip✨ #vlog #travelvlog #youtube #birthday ",
    "channel_name": "Priya Goyal",
    "channel_url": "https://www.youtube.com/@_priyagoyal",
    "views": 113935,
    "duration": "18:40",
    "durationSeconds": 1120,
    "publishedText": "5d ago",
    "publishedApprox": "2026-10-27",
    "description": null,
    "thumbnail": "https://i.ytimg.com/vi/JY-XWw8k2Vk/hqdefault.jpg",
    "source": "search",
    "error": null,
    "changeType": "new"
  }
]
```

One flat row per result.

### Built for pipelines

- **Field names never change** - fixes and new features only ever add fields, so your code keeps working.
- **Every row has the same shape** - a missing value is `null`, never a dropped field.
- **A plain status line** on every run - how many results, and on a problem what to change in the input - for your logs and for AI agents.
- **Runs on its own** - put it on an Apify Schedule and add a `webhookUrl`: each run's rows go straight to your system, Zapier, Make or Slack.

### How much does YouTube Hashtag Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- youtube hashtag videos
- scrape youtube hashtag
- youtube hashtag search
- youtube hashtag monitor
- youtube trending hashtags

### FAQ

**Does YouTube Hashtag Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run YouTube Hashtag Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - YouTube Hashtag Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and YouTube Hashtag Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If YouTube Hashtag Scraper saved you time, a short review on this page helps others find it.

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

### More tools from this developer

- [Tweet Scraper for Twitter & X Posts: By URL, No Login](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript & Captions Scraper: Find Any Word Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper & Meta Ad Spy: Only New Ads](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page & Posts Scraper: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

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

Hashtags to look up, with or without the # sign, or a full youtube.com/hashtag/... link. Example: travel, #cooking.

## `limit` (type: `string`):

How many videos to return for each hashtag, from 1 to 200. Example: 20.

## `sortBy` (type: `string`):

Order of the videos: relevance (YouTube default), newest first, or most viewed first.

## `date` (type: `string`):

Keep only videos uploaded within this time: hour, today, week, month, year, or any.

## `from` (type: `string`):

Keep videos published on or after this day, format YYYY-MM-DD. Dates are approximate (from YouTube's '3 days ago'). Example: 2026-10-01.

## `to` (type: `string`):

Keep videos published on or before this day, format YYYY-MM-DD. Dates are approximate (from YouTube's '3 days ago'). Example: 2026-10-31.

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

Return only videos not seen in the last finished run with the same input. Use it on a schedule to get a feed of new videos.

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

Send requests through the Apify proxy. Leave on unless you know YouTube answers your address directly.

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

Optional Apify proxy groups to use, for example RESIDENTIAL. Leave empty for the default datacenter proxy.

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

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

## Actor input object example

```json
{
  "hashtags": [
    "travel"
  ],
  "limit": "5",
  "sortBy": "relevance",
  "date": "any",
  "onlyNew": false,
  "useApifyProxy": true
}
```

# Actor output Schema

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

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

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "hashtags": [
        "travel"
    ],
    "limit": "5"
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-youtube-hashtags").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"],
    "limit": "5",
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-youtube-hashtags").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"
  ],
  "limit": "5"
}' |
apify call h1018y/anvil-youtube-hashtags --silent --output-dataset

```

## MCP server setup

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

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/d0QdjLeJQcF3E6W6z/builds/Kjw1eZg0wQDg1Dvu5/openapi.json
