YouTube Search & Channel Videos — Fast & Cheap avatar

YouTube Search & Channel Videos — Fast & Cheap

Pricing

from $1.00 / 1,000 videos

Go to Apify Store
YouTube Search & Channel Videos — Fast & Cheap

YouTube Search & Channel Videos — Fast & Cheap

Get YouTube videos by search query or list all videos of a channel via the public innertube API. No login, public videos only, pay per result.

Pricing

from $1.00 / 1,000 videos

Rating

0.0

(0)

Developer

Владислав Новік

Владислав Новік

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Pricing: $1.00 per 1,000 videos with title, views, duration, date and channel. Error rows are free.

Apify actor that gets YouTube video data in two modes with one input:

  1. Search — videos for search queries, the same results you see on youtube.com/results.
  2. Channels — the list of videos on a channel's Videos tab.

It talks to the same public innertube API the YouTube page itself calls (youtubei/v1/search, youtubei/v1/browse, navigation/resolve_url). No login, no cookies, no captchas — just public data, fast and cheap.

Who is it for

Lead generation, competitor monitoring, niche research, market analysis — anything where you need lists of videos with titles, view counts, publish dates and durations for many queries or many channels, without paying $4 per 1,000 results.

Pricing

$1.00 per 1,000 videos — you pay the video paid event for each video row returned. Error rows and empty results are not charged. For comparison, the most popular YouTube scraper on Apify Store charges around $4 per 1,000 results.

Input

FieldTypeDefaultDescription
searchQuerieslist of strings["lofi hip hop"]Search queries, one per line. Required — at least this one is prefilled.
channelUrlslist of stringsemptyChannel URLs (https://www.youtube.com/@handle, /channel/UC..., /c/..., /user/...). Optional — leave empty to run search only.
maxResultsPerQueryinteger (1–500)50Max videos per search query.
maxVideosPerChannelinteger (1–1000)50Max videos per channel (Videos tab).
sortByselectrelevanceSearch sort order: relevance, date (newest), views (most viewed). Applies to search only.
includeShortsbooleantrueInclude Shorts in the results.
maxConcurrencyinteger (1–10)3How many queries/channels run at the same time.
proxyConfigurationproxy editorApify datacenter proxyThe default datacenter proxy works well for YouTube and keeps the run cheap.

Output example

Each dataset item is one video (type: "video") or an error row (status: "error", not charged):

{
"type": "video",
"videoId": "nx32Ue0AAA0",
"url": "https://www.youtube.com/watch?v=nx32Ue0AAA0",
"title": "a rainy night 🌧️ lofi rain for deep focus",
"channelName": "Lofi Girl",
"channelId": "UCSJ4gkVC6NrvII8umztf0Ow",
"channelUrl": "https://www.youtube.com/@LofiGirl",
"viewCount": 506000,
"viewCountText": "506K views",
"publishedText": "8 days ago",
"durationSeconds": 28800,
"isShort": false,
"isLive": false,
"thumbnailUrl": "https://i.ytimg.com/vi/nx32Ue0AAA0/hq720.jpg",
"descriptionSnippet": "a rainy night lofi rain for deep focus...",
"source": "channel:https://www.youtube.com/@LofiGirl"
}

Error row example (not charged):

{
"type": "error",
"status": "error",
"error": "YouTube asks for sign-in / bot check: Sign in to confirm you're not a bot",
"source": "search:some query"
}

Notes on the data

  • Requests always use hl=en, gl=US, so numbers and dates come back in English ("1.2M views", "3 days ago") and are parsed into viewCount (integer) and durationSeconds (seconds, from "12:34" or "1:02:03").
  • Live streams have isLive: true and durationSeconds: null.
  • In search results, Shorts are detected from reelItemRenderer / shortsLockupViewModel; on channels, both the classic videoRenderer rows and the newer lockupViewModel rows are parsed.
  • Ads, playlists, channels and "mixes" in search results are skipped.

Limitations

  • Public videos only. No login, cookies, captchas or stealth tricks, so private, members-only and age-restricted videos are not available.
  • If YouTube asks for a sign-in or bot check, the task returns an error row instead of pretending; the actor retries twice with a fresh proxy and then moves on.
  • viewCount for live streams is the number of current watchers ("watching"), as YouTube reports it.
  • The User-Agent honestly identifies the actor; this is not a browser emulator.

FAQ

How do I get more than 500 results for one query? Search itself stops at ~500 per query (maxResultsPerQuery max). Split a broad query into several narrower ones; each query is an independent task.

Can I combine search and channels? Yes — fill both searchQueries and channelUrls; every item is marked in source (search:<query> or channel:<url>).

Why do view counts differ from what I see on YouTube? YouTube rounds counts per viewer locale ("73 тис.", "7,3 Tsd."). This actor always reads the English UI, so viewCount is exact when YouTube gives the full number and an approximation (rounded) when only the short form ("1.2M") is available; viewCountText always keeps the original text.

Are Shorts included on channel pages? The actor reads the channel's Videos tab, the same as on youtube.com. Shorts that appear there are included unless you untick includeShorts.

Does it download videos or comments? No — metadata rows only.

Why is it so cheap? It calls YouTube's public page API directly through the datacenter proxy you already have, with no browser overhead and no paid events for anything but video rows.

Use responsibly and check YouTube's terms for your use case.

More actors from the same developer

Pay only for results, no logins: