I run a visa agency in Bali. A lot of my clients arrive having already watched a YouTube video about their visa, so I like to know what those videos say and which ones people actually watch. The question sounds simple: search YouTube the way a tourist would, take the top results, and get real numbers for each one, meaning views, likes, comments, the publish date, and the full description with its links.
Doing that by hand means opening ten tabs and copying numbers. The YouTube Data API needs a key and a quota, and every search costs quota points. So I use my own Actor, YouTube Video Stats Scraper: you give it search queries, video URLs or channels, and it returns one row per video. This post is about one small run on 27 November 2026, ten videos for bali visa extension, and what the rows showed.
The input
{
"searchQueries": ["bali visa extension"],
"maxResultsPerQuery": 10
}
All the other inputs stayed at their defaults: relevance sort, any upload date, any duration, regular videos, details on. The run took 5.4 seconds and charged $0.015, which is ten videos at $0.0015 each. The dataset had eleven rows, not ten. The eleventh is a notice:
{
"type": "notice",
"notice": "Run summary: 10 row(s) delivered, 0 free; charged video ×10 = $0.015. This row is free and is not part of your data — filter it out with type != \"notice\"."
}
If you load the dataset straight into a spreadsheet, filter on type first.
What one row looks like
Here is position 6, trimmed. It's the one that matters for the rest of the post:
{
"source": "search",
"sourceValue": "bali visa extension",
"position": 6,
"videoId": "uxX3XHfVqNg",
"title": "BALI TOURIST eVISA APPLICATION - A COMPLETE STEP THROUGH GUIDE FOR LAPTOPS",
"viewsText": "24,501 views",
"views": 24510,
"publishedText": "1y ago",
"publishedAt": "2025-06-14",
"duration": "10:22",
"durationSeconds": 622,
"likes": 184,
"comments": 66,
"channelName": "Bali Days",
"channelHandle": "@bali-days",
"channelSubscribersText": "6.53K subscribers",
"channelSubscribers": 6530,
"hashtags": ["#balidays", "#evisa", "#balivisa"],
"descriptionLinks": [
"https://evisa.imigrasi.go.id/web/application_voa",
"https://evisa.imigrasi.go.id/",
"https://evisa.imigrasi.go.id/web/find-batch"
]
}
Each row comes from two places. viewsText, publishedText and the position come from the search results page. views, likes, comments, publishedAt, the full description, the hashtags and the links come from opening the video itself. That second step is what includeDetails does. You can turn it off for a faster, rougher list, but then you only get what the search card shows.
One video held three quarters of the views
The ten videos had 32,385 views between them. The median was 804.5. Position 6 alone had 24,510, which is 75.7% of the total.
It also isn't about extensions. It's a step-by-step walkthrough of the tourist eVisa application, the thing you do before you fly, not the thing you do once you're here. YouTube ranked it sixth for "extension", and it got more views than the other nine combined, about three times over. My guess is that people who search for extensions are often still at the planning stage, and a complete application guide answers a question they haven't asked yet. That's a guess, not something the data proves. What the data does show is that "top ten for my keyword" and "what my audience watched" are very different lists. If you rank results by position, you get YouTube's opinion. If you sort by views, you get the audience's.
For a business reading this kind of data, that difference is useful. If I made one video for clients, the numbers say to make it about the application, not the extension.
The search card was nine views behind
For nine of the ten videos, the number in viewsText from the search card matched views from the watch page exactly. For position 6, the card said 24,501 and the watch page said 24,510.
Both numbers came from the same run, seconds apart. The search results page and the watch page don't read the counter at the same moment, and on a video that's still getting views, they drift. Nine views out of 24,510 doesn't matter for ranking anything. It matters if you're tracking daily change: if your Monday read comes from search cards and your Tuesday read from watch pages, part of the "growth" is just the two pages disagreeing. Pick one source and stick to it. In this Actor, views always comes from the watch page when details are on, and viewsText is kept only so you can see what the card showed.
Empty is not zero
Three rows had a null:
| videoId | views | likes | comments |
|---|---|---|---|
| 0aXORwglcUU | 92 | 1 | null |
| pKL-U4w2om8 | 89 | null | 1 |
| dvtozBize9g | 304 | 8 | null |
null means the page didn't show the counter, either because the creator hid it or turned it off, or because there was nothing to show. It doesn't mean zero, and I deliberately don't write 0 there. If you compute an average like-rate, decide what to do with those rows before you divide. If you treat null as 0, you pull the average down. If you drop the rows, you're looking at a different set of videos. Across the seven rows with both counters, likes per view ranged from 0.6% to 3.5%. The 24,510-view video sat at 0.8%: a big audience that mostly watched and left.
Subscribers are rounded, views are not
Look at the two channel fields again: "6.53K subscribers" and 6530. YouTube only shows subscriber counts to three significant figures, so channelSubscribers is the displayed figure converted to a number. The real count is somewhere from 6,530 to 6,539. Views, likes and comments on the watch page are exact.
That matters for the "views per subscriber" ratio people like to use to find small channels that punch above their weight. In this sample, the ratio ran from 0.05 to 18.4. The 18.4 belongs to a 62-second Short from a channel with 5 subscribers and 92 views. The 6,530-subscriber channel above got 3.75. For small channels, rounding doesn't change much. For a channel shown as "1.23M", the real count could be anywhere in a 10,000-subscriber range, so don't report the ratio to two decimals.
Where the description links go
This is the part I actually ran the search for. The ten descriptions contained 38 links. descriptionLinks gives the full addresses. YouTube's own redirect wrapper is removed, so you see where a click really goes. By domain:
-
bit.ly: 7 -
evisa.imigrasi.go.id, the official Indonesian immigration eVisa site: 3, all in the same video -
calendly.com: 3 -
wa.meandinstagram.com: 2 each - the remaining 21 links went to 21 different domains: affiliate shops, course platforms, a Bali lawyer, an Airbnb listing, a gold dealer, Etsy, a crypto research site
So three of 38 links in the top ten visa videos pointed to the government site where the application is actually filed, and all three came from the one video people watched most. The shortened links hide where they go until you follow them, which this Actor doesn't do. If you need the final address, resolve bit.ly links yourself with a HEAD request.
Hashtags are similarly lopsided. There were 58 across the ten videos: one Short carried 16, two videos had none.
Calling it from code
The same run over the API with curl (put your own token in APIFY_TOKEN):
curl -s -X POST \
"https://api.apify.com/v2/acts/lergassy~youtube-video-stats-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries": ["bali visa extension"], "maxResultsPerQuery": 10}'
And in Python, sorting by what people watched instead of where YouTube put it:
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("lergassy/youtube-video-stats-scraper").call(
run_input={"searchQueries": ["bali visa extension"], "maxResultsPerQuery": 10}
)
rows = [r for r in client.dataset(run["defaultDatasetId"]).iterate_items()
if r.get("type") != "notice"]
total = sum(r["views"] for r in rows)
for r in sorted(rows, key=lambda r: r["views"], reverse=True):
print(f'{r["position"]:>2} {r["views"]:>7} {r["views"] / total:6.1%} {r["title"][:60]}')
Other inputs work the same way: videoUrls for exact stats on videos you already know, channels for a channel's newest uploads, and uploadDate, duration, sortBy and minViews to narrow the search. Videos removed by minViews aren't charged.
When this isn't the right tool
-
You need history. Each row is a snapshot at
scrapedAt. For a views curve, run it on a schedule and store the rows yourself. - You need exact subscriber counts. You can't get those from public pages, and the YouTube API rounds them too.
- You need the comments themselves. You get the count, not the text. That's a separate scraper.
- You need watch time, retention or traffic sources. Those are YouTube Studio numbers that only the channel owner sees, and no scraper can read them.
- Ten rows is not research. Everything above is one query, ten videos, one afternoon. It's enough to show the shape of the data, not to make claims about YouTube as a whole.
If what you want is the version of the search results with real numbers, so you can sort by what people watched and see where the links go, the Actor does exactly that. As for my clients: the video they've most likely watched is the eVisa application guide.
Top comments (0)