YouTube search results scraper in n8n

Search YouTube by keyword for videos, Shorts, channels, or playlists, with view counts, duration, and channel details, filterable by upload date, duration, sort order, and region.

What this workflow does

Import it and n8n runs the YouTube Search Results & Entity Type Scraper Actor on Apify every day at 08:00 with the starter input below. Each row comes back with video id, title, channel, views and 38 more; repeats with the same url are dropped. A Google Sheets append is included and stays off until you add your sheet. The only credential it needs is your Apify API token.

Read from the workflow file, built for YouTube Search Results & Entity Type Scraper version 1.1.2. Updated 2026-11-14.
YouTube Social media and trends Runs daily at 08:00

How the rows travel

6 nodes, in the order n8n runs them. The yellow stop is the call to the Apify Actor; the dashed stop is optional.

  1. Daily trigger Schedule trigger
  2. Configure input Code
  3. Run Apify Actor HTTP Request
  4. Normalize + dedupe Code
  5. Rows ready No operation
  6. Google Sheets (optional) Google Sheets, off until you switch it on

Input

The Configure input node holds the starter input. Change it there; every setting the Actor accepts is listed below.

{
  "searchQueries": [
    "apify"
  ],
  "maxResults": 25,
  "type": "video"
}
Input settings of YouTube Search Results & Entity Type Scraper
SettingTypeRequiredDefaultWhat it does
searchQueries array Yes – One or more YouTube search terms. Each query is scraped separately and its results are combined in the dataset.
maxResults integer No 20 Maximum number of results per query. YouTube may serve fewer rows for a given query, entity type, session, or IP; the run reports the requested and actual counts and whether the…
scrapeAllResults boolean No false Keep loading pages until YouTube stops offering results. This ignores Max Results Per Query and can take longer on broad searches.
sortBy string No relevance Order of the search results. YouTube currently supports relevance and popularity (view count).
uploadDate string No – Only return results uploaded in the selected period. Applies to videos and Shorts. One of: last_hour, today, this_week, this_month, this_year.
type string No – Restrict results to one entity type. Legacy plural value shorts is accepted and mapped to Shorts.
duration string No – Filter videos by length. Applies to video and Shorts searches. One of: short, medium, long.
features array No – Filter videos by features. Multiple selections are combined. Legacy aliases cc, location, and purchased are accepted for saved tasks; cc maps to subtitles and the other two are…
market string No US Country used for YouTube's search context (gl). Results and labels follow this market. 31 choices.
language string No auto Language for YouTube labels and search text (hl). Auto follows the selected market. 34 choices.
includeVideoDetails boolean No false Fetch each video's public detail payload to add exact publish date, views, likes, category, tags, and full description. Adds one request per video and makes runs slower.

What each row holds

Every field the Actor returns stays in the row (42 in its dataset schema). Normalize + dedupe trims text, drops empty fields, removes repeats with the same url and adds _source and _scrapedAt. The main fields:

Main output fields of YouTube Search Results & Entity Type Scraper
FieldWhat it is
videoIdVideo ID
titleTitle
channelNameChannel
viewCountViews
publishedAtPublished At
publishedTimeTextPublished
durationDuration
urlURL

What the first run costs

Each run starts at $0.40 on the Free plan (4 GB of memory), then $0.99 per 1,000 results, plus platform usage.

The Actor lists $0.99 per 1,000 results; its catalogue page breaks the price down by Apify plan. The Apify Free plan includes $5 of usage a month.

The Actor behind it

YouTube Search Results & Entity Type Scraper: Search YouTube by keyword for videos, Shorts, channels, or playlists, with view counts, duration, and channel details, filterable by upload date, duration, sort order, and region.

The same job from an AI agent

The matching agent skill gives Claude Code, Codex, Cursor and other agents the same Actor, input and fields. Install it in one line:

npx skills add https://scraperfinder.com --skill youtube-search-results-and-entity-type-scraper

The youTube search results scraper skill, with manual install and run steps

Questions people ask

How do I import this workflow into n8n?

Copy https://scraperfinder.com/n8n/youtube-search-results-and-entity-type-scraper.json. In n8n, open a new workflow, click the three-dot menu, choose Import from URL and paste it. Or download the JSON file and use Import from File; both give the same 6 nodes.

Do I need an Apify account?

Yes. The workflow calls the YouTube Search Results & Entity Type Scraper Actor through the Apify API with your own token, and each run is billed to your Apify account. The Free plan includes $5 of usage a month.

What does a run cost?

Each run starts at $0.40 on the Free plan (4 GB of memory), then $0.99 per 1,000 results, plus platform usage. The Actor's Store page shows the current price.

Can I change what it collects?

Yes: edit the input object in the Configure input node. The Actor takes 11 settings; the table on this page lists each one with its default. Raise maxResults once the first rows look right.

Does it work without Google Sheets?

Yes. The rows wait in the Rows ready node, so you can connect any other node there: a database, Airtable, a webhook or an email. The Google Sheets node is only one option.

Workflow updated 2026-11-14