Skip to content
//YouTube Scraper example\\

Most viewed Python tutorials this year, 5 videos

Search results sorted by views.

Updated December 5, 2026

What this example returns

This example returns up to 5 videos.

The dataset’s “Overview” view shows 9 columns: Video Title, Channel, Views, Likes, Published, Duration, Type, Video URL, and Comments. See every output field.

What each setting does

The input this example runs YouTube Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Search terms searchQueries

python tutorial

Enter search terms just like you would enter it in YouTube's search bar.

Maximum videos per search term maxResults

5

Limit the number of videos you want to crawl. If you scrape a channel, acts as a limit for regular videos. No upper limit: listings are read until YouTube has no more (a search typically ends after several hundred videos).

Default: 10 → this example uses 5

Date filter dateFilter

This year

Select Youtube upload date filter for search

Sorting order sortingOrder

View count

Select Youtube sorting parameter for search

.json
{
  "searchQueries": [
    "python tutorial"
  ],
  "maxResults": 5,
  "sortingOrder": "views",
  "dateFilter": "year"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Resultfrom $0.00102One saved YouTube video, Short or stream row
  • Date filterfrom $0.00033Per result when dateFilter (search) or oldestPostDate (channels) is set and applied

Full pricing

Other ways to run YouTube Scraper

All examples of YouTube Scraper

About YouTube Scraper

Scrape public YouTube videos, channels, playlists, hashtags, and search results. Get titles, views, likes, durations, upload dates, descriptions, and channel details.

Price:
From $1.02 / 1,000 results
Developer:
Echofield
Categories:
Videos, Social media

YouTube Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.