YouTube Most Popular Videos (Top by Country & Category) avatar

YouTube Most Popular Videos (Top by Country & Category)

Pricing

from $2.40 / 1,000 video results

Go to Apify Store
YouTube Most Popular Videos (Top by Country & Category)

YouTube Most Popular Videos (Top by Country & Category)

Most popular YouTube videos by country and category. Multi-select regions, choose [All] or specific categories, paginate results, and get clean JSON with rank, video + channel metadata, stats, and timestamps. Great for research, trend tracking, and dashboards.

Pricing

from $2.40 / 1,000 video results

Rating

0.0

(0)

Developer

Delowar Munna

Delowar Munna

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Share

Fetch the top most-popular YouTube videos by country and category using the YouTube Data API v3. API-only — no browser automation, fast, reliable, and cost-effective.

YouTube Most Popular Videos

Features

  • Fetch most popular videos for 50 countries via dropdown selector
  • Filter by 32 YouTube categories (Music, Gaming, News, etc.) or select [All categories]
  • Multi-region and multi-category batching in a single run
  • Human-readable category names (videoCategoryTitle) alongside category IDs
  • Pagination support (fetch more than 50 results per combo)
  • Deduplication across region-category combinations
  • Rank numbering per region-category combo
  • Run summary saved to Key-Value Store
  • Pay-per-event ready (video-result)

How it works

  1. Select one or more regions (countries) from the dropdown
  2. Select one or more categories — or choose [All categories] for the overall most popular
  3. The actor calls videoCategories.list once per region to resolve category names
  4. Then loops: regions → categories → pages, calling videos.list(chart=mostPopular)
  5. Each video is ranked, deduplicated, and pushed to the dataset with 24 fields

Input Parameters

ParameterTypeDefaultDescription
regionsstring[]requiredSelect countries from dropdown (50 available). e.g., ["US","AU","GB"]
categoryIdsstring[][]Select from dropdown: "[All categories]", "Music (10)", "Gaming (20)", etc. Empty = all
maxResultsPerPageinteger50Results per API page (1-50)
maxPagesinteger1Pages per region-category combo
apiKeystringOptional YouTube Data API v3 key (added to built-in rotation pool)
languagestringLanguage code for localization (e.g., en, ja)
dedupeAcrossCombosbooleantrueSkip duplicate videos across combos
includeTopicDetailsbooleanfalseAdd topicDetails to response
includeStatusbooleanfalseAdd status to response
includeLiveStreamingDetailsbooleanfalseAdd liveStreamingDetails to response
requestTimeoutSecsinteger30API request timeout
maxRetriesinteger3Retries for transient 5xx errors
minDelayMsinteger0Delay between pages (rate smoothing)
debugbooleanfalseVerbose logging

Input examples

Example 1 — All categories for US and Australia

{
"categoryIds": ["all"],
"dedupeAcrossCombos": true,
"regions": ["US", "AU"],
"maxResultsPerPage": 50,
"maxPages": 1
}

Example 2 — Specific categories (Short Movies + Autos) for AU and US

{
"categoryIds": ["18", "2"],
"dedupeAcrossCombos": true,
"regions": ["AU", "US"],
"maxResultsPerPage": 50,
"maxPages": 1
}

Output

Output Table View — Most Popular Videos

Table view — All Fields

Output Table View — All Fields

Output fields (24 fields)

FieldTypeDescription
videoIdstringYouTube video ID
videoUrlstringFull video URL
rankintegerPosition in the most-popular list
regionCodestringRegion this result was fetched for
videoCategoryIdstringCategory ID
videoCategoryTitlestringCategory name (e.g., "Music", "Gaming")
titlestringVideo title
descriptionstringVideo description
publishedAtstringISO 8601 publish date
channelIdstringChannel ID
channelTitlestringChannel name
thumbnailsobjectThumbnail URLs (default, medium, high, standard, maxres)
tagsstring[]Video tags
categoryIdFromSnippetstringRaw category ID from video snippet
durationstringISO 8601 duration (e.g., PT5M10S)
definitionstringhd or sd
captionstring"true" or "false"
licensedContentbooleanWhether the content is licensed
viewCountintegerTotal views
likeCountintegerTotal likes (null if hidden)
commentCountintegerTotal comments (null if disabled)
liveBroadcastContentstringnone, live, or upcoming
retrievedAtstringISO 8601 timestamp when data was fetched

JSON output example

{
"videoId": "iAtoZar5W58",
"videoUrl": "https://www.youtube.com/watch?v=iAtoZar5W58",
"retrievedAt": "2026-02-26T07:13:43.093Z",
"rank": 1,
"regionCode": "US",
"videoCategoryId": "10",
"videoCategoryTitle": "Music",
"title": "Aaya Sher - Lyrical | The Paradise | Nani | Anirudh Ravichander | Srikanth Odela",
"description": "Presenting the first single \"Aaya Sher\" from 'The Paradise'...",
"publishedAt": "2026-02-24T14:44:06Z",
"channelId": "UC68nKdrLbLL0Vj7ilVkLmmg",
"channelTitle": "Saregama Telugu",
"thumbnails": {
"default": { "url": "https://i.ytimg.com/vi/iAtoZar5W58/default.jpg", "width": 120, "height": 90 },
"medium": { "url": "https://i.ytimg.com/vi/iAtoZar5W58/mqdefault.jpg", "width": 320, "height": 180 },
"high": { "url": "https://i.ytimg.com/vi/iAtoZar5W58/hqdefault.jpg", "width": 480, "height": 360 }
},
"tags": ["Anirudh Ravichander", "The Paradise Theme OST", "Nani The Paradise theme"],
"categoryIdFromSnippet": "10",
"duration": "PT4M57S",
"definition": "hd",
"caption": "false",
"licensedContent": true,
"viewCount": 19761396,
"likeCount": 789769,
"commentCount": 23899,
"liveBroadcastContent": "none"
}

Quota usage

  • videos.list costs 1 quota unit per request (up to 50 results)
  • videoCategories.list costs 1 quota unit per region (called once per region)
  • Total quota = regions + (regions x categories x pages)
  • Example: 5 regions x 3 categories x 2 pages + 5 lookups = 35 units

Supported regions (50 countries)

RegionCountryRegionCountry
USUnited StatesJPJapan
GBUnited KingdomKRSouth Korea
AUAustraliaTWTaiwan
CACanadaHKHong Kong
INIndiaSGSingapore
DEGermanyIDIndonesia
FRFranceTHThailand
ITItalyPHPhilippines
ESSpainMYMalaysia
PTPortugalVNVietnam
BRBrazilRURussia
MXMexicoUAUkraine
ARArgentinaPLPoland
COColombiaNLNetherlands
CLChileBEBelgium
SESwedenZASouth Africa
NONorwayEGEgypt
DKDenmarkNGNigeria
FIFinlandKEKenya
ATAustriaGHGhana
CHSwitzerlandAEUAE
IEIrelandSASaudi Arabia
NZNew ZealandILIsrael
TRTurkeyCZCzech Republic
GRGreeceRORomania

Common category IDs

IDCategoryIDCategory
1Film & Animation24Entertainment
2Autos & Vehicles25News & Politics
10Music26Howto & Style
15Pets & Animals27Education
17Sports28Science & Technology
20Gaming29Nonprofits & Activism
22People & Blogs30Movies
23Comedy44Trailers

Note: Not all categories are available in every region. The actor automatically resolves available categories per region.

Run summary

Each run saves a RUN_SUMMARY to the Key-Value Store with:

  • Total videos emitted, API calls made, duplicates skipped
  • Per-combo breakdown (region, category, count, errors)