YouTube Scraper & API | EveryInfra avatar

YouTube Scraper & API | EveryInfra

Pricing

from $1.00 / 1,000 search requests

Go to Apify Store
YouTube Scraper & API | EveryInfra

YouTube Scraper & API | EveryInfra

Unofficial YouTube data via one Actor: search, profile, user_posts, video, comments, followers, transcript, shorts. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.

Pricing

from $1.00 / 1,000 search requests

Rating

0.0

(0)

Developer

ECHO

ECHO

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Retrieve YouTube videos, Shorts, comments, captions, subscriber counts, and channel metadata.

Provide channel handles or video URLs. Subscriber counts are totals, not subscriber lists.

Actions

ActionWhat you getRequiredOptionalResults per requestPrice per request
searchSearch YouTube videos by keyword, up to 50 per call. Get channel, description, views, likes, comments, duration and publish date. sort orders by relevance, newest, most views or top rating. Results are not complete, and the ranking is not explained.keywordsort10 (up to 50)$0.0010
profileGet a YouTube channel from its channel URL. Get bio, subscriber, video and view counts, verification, location, avatar, banner and creation date. It does not expose YouTube Analytics or a list of subscribers.url—1$0.0009
user_postsList videos from a YouTube channel URL, up to 50 per call. Get title, description, views, likes, comments, duration and publish date. Use since for a start date and sort for newest, oldest or popular. One batch may not cover the whole channel archive.urlsince, sort10 (up to 50)$0.0014
videoFetch the title, description, channel, views, likes, comment count, duration and publish date of one YouTube video from its watch or share link. Comments and the transcript come from their own actions, comments and transcript.url—1$0.0010
commentsRead comments on a YouTube video, up to 100 per call. Each comment has text, author, likes, reply count, date and a reply flag. Sort by newest or popular, and set a start date with since. Use reply_to_id to link replies. The full thread is not promised.urlsince, sort20 (up to 100)$0.0014
followersCheck the subscriber count of a YouTube channel from its handle. Get following, post, like and connection counts and a precision flag for rounded figures. Pass the @handle in username. It returns aggregate counts, not a list of subscribers.usernamechannel1$0.0013
transcriptPull the captions of a YouTube video as full text and timestamped segments, with the track language, available languages and channel details. language requests a track, but not every video has captions and automatic translation is not guaranteed.urllanguage1$0.0008
shortsBrowse the Shorts of a YouTube channel by handle, up to 100 per call. Get title, thumbnail, views, likes, duration and publish date. Pass a handle in username, not a UC channel ID. One batch may not include every Short on the channel.usernamechannel, since, sort20 (up to 100)$0.0016

Input

Pick an action and fill the fields it uses. Example:

{
"action": "search",
"keyword": "espresso"
}

Fields that another action needs are ignored when left empty. API users can also pass {"action": ..., "params": {...}}.

Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's OUTPUT record holds next_page_token.

  • search: id, url, title, text, author_name, author_username, author_id, author_url, like_count, comment_count, view_count, duration, posted_at, thumbnail_url, hashtags, is_comments_disabled, is_members_only, is_paid_partnership, author_follower_count, author_video_count, author_view_count, author_created_at, description_links, search_rank, platform
  • profile: channel_id, name, url, bio, subscriber_count, video_count, view_count, is_verified, location, avatar_url, banner_url, created_at, platform
  • user_posts: id, url, title, text, author_name, author_username, author_id, author_url, like_count, comment_count, view_count, duration, posted_at, thumbnail_url, hashtags, is_comments_disabled, is_members_only, is_paid_partnership, author_follower_count, author_video_count, author_view_count, author_created_at, description_links, search_rank, platform
  • video: id, url, title, text, author_name, author_username, author_id, author_url, like_count, comment_count, view_count, duration, posted_at, thumbnail_url, hashtags, is_comments_disabled, is_members_only, is_paid_partnership, author_follower_count, author_video_count, author_view_count, author_created_at, description_links, search_rank, platform
  • comments: id, text, author_name, like_count, reply_count, posted_at, is_reply, reply_to_id, platform
  • followers: id, username, url, follower_count, following_count, post_count, like_count, connection_count, precision, platform
  • transcript: id, url, title, text, segments, language, available_languages, channel_id, channel_name, channel_username, view_count, like_count, comment_count, posted_at, platform
  • shorts: id, url, title, thumbnail_url, view_count, like_count, duration, posted_at, author_name, author_id, author_url, platform

Field notes

  • is_creator: Whether the channel owner wrote this comment or reply.
  • is_pinned: Whether it is pinned.
  • is_hearted: Whether the channel owner gave it a heart.
  • is_edited: Whether it was edited after it was posted.
  • video_id: ID of the video it belongs to; null for replies to a channel post comment. On channel posts, the ID of the video attached to the post, or null if none is attached.
  • post_id: ID of the channel post it belongs to; null for replies to a video comment.
  • author_is_verified: Whether the channel has a verified badge.
  • published_text: Publish time as written on the YouTube page, in relative form (e.g. 2 years ago), returned as is; null when the page shows none.
  • badges: Badges shown on the video, as an array of strings (e.g. 4K, CC, New); an empty array when there are none.
  • is_live: Whether the video is live now.
  • is_upcoming: Whether it is a premiere or scheduled live stream that has not started yet.
  • playlist_id: ID of the playlist or mix when the row is one; otherwise null.
  • is_backfill: In Shorts search, whether YouTube added this item as related content because there were not enough matches.
  • channel_url: Channel link built on the channel ID (youtube.com/channel/UC…).
  • matched_by: How the channel was matched. Present only when channel is a channel name: handle (the name matched as an @handle) or search (the first channel found by name search; check that it is the channel you wanted). Absent when channel is a link, an @handle or a UC channel ID.
  • attachment_type: What the post carries: image (one image), multi_image (several images), video or poll; null for text-only posts.
  • video_title: Title of the video attached to the post; null if no video is attached.
  • poll_options: Poll options, as an array of strings; an empty array if the post is not a poll.
  • poll_total_votes: Total votes on the poll, as an integer. YouTube shows an approximate count, so 1.8M is returned as 1800000; null if the post is not a poll.
  • links: Links in the post text, as an array.
  • keyword: One suggested search term.
  • available_qualities: Resolutions available for the video (e.g. 1080p, 720p).
  • formats: Formats that keep audio and video in one file, as an array. Each item has itag, mime_type, quality_label, bitrate, width, height, fps, content_length, audio_quality and more; in media_links each item also has a playback url, in video_formats it does not.
  • adaptive_formats: Formats that keep audio and video in separate files, as an array; each item has the same keys as formats. has_audio is false for video-only items and has_video is false for audio-only items.
  • hls_manifest_url: HLS manifest URL, present for live streams; otherwise null.
  • dash_manifest_url: DASH manifest URL; null when there is none.
  • expires_at: When the playback URLs expire (ISO 8601, UTC), about 6 hours after they are issued.
  • expires_in_seconds: Seconds left until the playback URLs expire.
  • itag: YouTube format ID.
  • mime_type: File type and codec, e.g. audio/mp4; codecs="mp4a.40.2".
  • quality_label: Resolution label, e.g. 720p; null for audio-only formats.
  • content_length: File size in bytes.
  • author_avatar_url: Link to the author's avatar image (on most platforms the link is signed and expires).
  • author_video_count: Total number of videos on the channel.
  • author_view_count: Total views of the channel.
  • available_languages: List of available subtitle languages.
  • banner_url: Channel banner.
  • channel_id: Channel ID (starts with UC).
  • channel_name: Channel name.
  • channel_username: Channel @handle.
  • connection_count: Number of connections.
  • description_links: Links in the video description: text, url.
  • duration: Duration.
  • is_comments_disabled: Whether comments are turned off.
  • is_members_only: Whether the video is for members only.
  • is_paid_partnership: Whether the video includes a paid promotion.
  • is_reply: Whether this is a reply.
  • precision: Data precision flag (marks values such as subscriber counts that YouTube rounds).
  • rank: Position of this row in the chart or results, starting at 1. For what the chart ranks by and over what period, see the action description.
  • reply_to_id: ID of the comment being replied to.
  • search_rank: Position in this search's results, starting at 1.
  • segments: Subtitle segments (timestamped text).
  • subscriber_count: Subscriber count.
  • video_count: Number of videos.
  • author_created_at: When the channel was created, ISO 8601 in UTC; absent on some results.

Pricing

Pay per event, charged only when a run delivers data:

  • search: $0.0010, one event per started block of 10 results.
  • profile: $0.0009, one event per non-empty request, whatever the row count.
  • user_posts: $0.0014, one event per started block of 10 results.
  • video: $0.0010, one event per non-empty request, whatever the row count.
  • comments: $0.0014, one event per started block of 20 results.
  • followers: $0.0013, one event per non-empty request, whatever the row count.
  • transcript: $0.0008, one event per non-empty request, whatever the row count.
  • shorts: $0.0016, one event per started block of 20 results.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

Notes

  • Results reflect what is publicly visible when the run happens; counts can be lower than requested.
  • One run makes one request. For more pages, start another run with page_token where the action supports it.
  • This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by YouTube or its owner; names and trademarks belong to their respective owners.

Support

Open an issue on this Actor's Issues tab with the run ID.