YouTube Trending Videos (Official API) — Top Videos by Country
Pricing
from $0.40 / 1,000 video results
YouTube Trending Videos (Official API) — Top Videos by Country
Bring your own free YouTube API key. Get YouTube's most-popular chart for any list of countries, optionally per category (Music, Gaming, News…), with rank, views, likes, comments, duration and tags, from the official YouTube Data API v3. $0.40 per 1,000 videos.
Pricing
from $0.40 / 1,000 video results
Rating
0.0
(0)
Developer
ActorForge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
15 days ago
Last modified
Categories
Features
Share
Bring your own free YouTube API key. Get YouTube's most-popular chart for any list of countries, optionally per category (Music, Gaming, News…), with rank, views, likes, comments, duration and tags, from the official YouTube Data API v3. $0.40 per 1,000 videos.
Bring your own free YouTube API key and get YouTube's most-popular videos per country from the official YouTube Data API v3 (videos.list with chart=mostPopular), with no scraping and no blocks. List the countries you care about and, optionally, one category (Music, Gaming, News & Politics, Sports, Education …), and every chart position comes back as one row with country, rank, views, likes, comment count, duration, title, tags, category, publish date, channel and thumbnails.
YouTube retired its public Trending page in 2025, but the API still serves this most-popular chart. Use it for trend and content research, tracking what breaks out in each market, music and gaming chart monitoring, or a daily snapshot into Sheets, BigQuery, Make, n8n or Zapier (schedule the actor once a day).
$0.40 per 1,000 videos. A 50-video chart costs 1 of your 10,000 free daily quota units, so 10 countries a day cost about 10 units.
Get your free API key (about 60 seconds, no billing account)
- Open the Google Cloud Console and sign in with any Google account. Create a project (top bar → New project).
- Go to APIs & Services → Library, search for YouTube Data API v3 and click Enable.
- Go to APIs & Services → Credentials → Create credentials → API key and copy the key (it starts with
AIza). - Paste it into the YouTube API key field of this actor and run. The field is a secret input: Apify stores it encrypted, and the actor never logs it or writes it to the output.
You do not need to add a billing account. Each Google Cloud project gets 10,000 free quota units per day, which reset at midnight Pacific Time. If you restrict the key, allow YouTube Data API v3 and leave out HTTP-referrer or IP restrictions, because Apify runs on changing server IPs.
Official API only, and your data stays yours
- All data comes from the official YouTube Data API v3 (
https://www.googleapis.com/youtube/v3/) using your own key and quota. Nothing is scraped from youtube.com, and there are no proxies, cookies or logins. - We never hold, share or pool API keys, and no default key is built in. ActorForge sells the API client; the data is fetched under your key.
- ActorForge keeps no copy of API data after the run. Rows go only to your run's dataset, which belongs to you. YouTube's Developer Policies require stored API data to be refreshed or deleted at least every 30 days, so set a retention period on your datasets or re-run to refresh them. Statistics such as view counts change constantly anyway.
- By using this actor you also agree to the YouTube Terms of Service. Google's handling of API requests is covered by the Google Privacy Policy. You can review or revoke your key at any time in the Google Cloud Console, and revoke API access for your Google account at Google security settings.
This actor uses YouTube API Services. It is not affiliated with or endorsed by YouTube or Google.
What data does it return?
Every run outputs clean, schema-validated rows like these:
| trendingRegion | trendingRank | title | channelTitle | publishedAt | durationSec | viewCount | likeCount | commentCount | categoryId |
|---|---|---|---|---|---|---|---|---|---|
| US | 1 | LISA - Tarantino (Official Music Video) | LISAOfficialVEVO | 2026-10-23T04:00:07Z | 217 | 15112917 | 529176 | 41892 | 10 |
| US | 2 | Mass Effect 5 Trailer Leak | deyoku | 2026-10-22T19:20:27Z | 138 | 141169 | 3972 | 1280 | 20 |
| GB | 1 | LISA - Tarantino (Official Music Video) | LISAOfficialVEVO | 2026-10-23T04:00:07Z | 217 | 15112917 | 529176 | 41892 | 10 |
| GB | 2 | The Rings of Power - Season 3 Official Trailer | Prime Video | Prime Video | 2026-10-21T16:30:20Z | 134 | 5036927 | 22706 | 2725 | 24 |
How much does it cost?
Transparent pay-per-event pricing — you only pay for what you get, and the actor always respects your run budget: set a maximum total charge and it stops cleanly at the cap instead of overrunning.
| Event | Price | Charged | Worked example |
|---|---|---|---|
video-result | $0.0004 | per video row delivered (full details and stats) | 1,000 chart videos = $0.40 (leading YouTube trending scrapers: $1.00-5.00 per 1,000) |
apify-actor-start | $0.00005 | per run per GB of memory (platform start fee) | One run at 256 MB = $0.0000125 |
Input options
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey | string | no | — | Required. Your own free YouTube Data API v3 key (starts with AIza). Get one in about a minute: console.cloud.google.com → create a project → APIs & Services → Library → enable "YouTube Data API v3" → Credentials → Create credentials → API key. No billing account is needed, and the free quota is 10,000 units per day. The key is stored encrypted by Apify, used only for this run's calls to googleapis.com, and never logged or written to the output. |
mode | string | no | "trending" | Always trending on this listing (most-popular chart per country). |
regionCodes | array | no | [] | Two-letter country codes (US, GB, IN, DE, BR, JP …), one per line. Each country's chart is read separately. Empty = US. |
videoCategoryId | string | no | — | Optional: the chart for one video category only (leave empty for all categories). Not every category has a chart in every country; those come back as a free error row. |
maxResultsPerQuery | integer | no | 50 | Chart positions to read per country (YouTube serves at most 200). Every 50 videos cost 1 of your 10,000 free daily quota units. |
Limits & honest notes
- This is YouTube's API "most popular" chart: it is not the personalised home feed and can differ from what the YouTube app shows. YouTube serves at most 200 positions per country and category.
- Countries or categories without a chart (some categories are not charted in some countries) come back as a free row of type error; the other countries still run.
- You need your own free YouTube Data API v3 key (see the 4-step guide above). Without one the run finishes at once with a free row of instructions, and nothing is charged.
- Only public data the API returns for an API key: no dislike counts (removed by YouTube), no revenue and no watch time. Like counts hidden by the creator come back as null.
- You must refresh or delete stored API data within 30 days (YouTube Developer Policies III.E.4). We keep nothing after the run.
- The run's spend limit is respected: each page of videos is charged before it is delivered, and the run stops cleanly at the cap. If your key's quota runs out, the run stops cleanly and keeps what was delivered.
Related ActorForge actors
- YouTube Scraper (Official API) — Videos, Search & Stats — search, channels and comments with the same key
- YouTube Search Scraper (Official API) — YouTube search results by keyword
- Google Trends — search interest over time, including YouTube search
Changelog
- 2026-10-23 — Initial release: new trending mode of the YouTube Scraper (official API), most-popular chart per country and category with rank, $0.40 per 1,000 videos.
Built and maintained by ActorForge. Reliability first: every actor in the portfolio is monitored by an automated nightly self-test, and breakages are typically fixed the same day.