In this guide

Top Charts

The most popular videos in a country.

Action referenceRead

What this action does #

First, connect YouTube in Services. Then open Actions → + → YouTube and choose Top Charts.

More about this action

YouTube's own charts. Since July 2025 these are the Music, Movies and Gaming charts rather than a general trending list — choose one with Category (Music is 10, Gaming 20).

Inputs to fill in #

Open an input to choose its value. Keep a fixed value with Text, receive it from Shortcuts, ask when the action runs, or use an Earlier Step. Read how input sources work.

Region

OptionalText

The country whose chart it is.

This input offers a picker for region from your connected account. You can also supply its value directly.

Example value (replace with your own):
US

Category

OptionalText

Which chart. Music is 10, Gaming 20.

This input offers a picker for category from your connected account. You can also supply its value directly.

Example value (replace with your own):
10

How Many

OptionalWhole number

1–50 a page. YouTube sends 5 when it's left empty.

Example value (replace with your own):
10

Page Token

OptionalText

Where the previous page left off — its nextPageToken.

What comes back #

In the action editor, open Output → Returned Value to choose fields for your shortcut. These are the response fields described by the app; a service may omit an optional field or return an empty list. JSON File contains the full response.

Returned fieldTypeMeaning
itemsarrayA list of values.
items[].idstringThe video ID. Its page is youtube.com/watch?v= followed by it.
items[].snippetobjectA group of named values.
items[].snippet.titlestringText value.
items[].snippet.descriptionstringText value.
items[].snippet.channelIdstringText value.
items[].snippet.channelTitlestringText value.
items[].snippet.publishedAtstringISO 8601.
items[].snippet.tagsarrayMissing when the video has none.
items[].snippet.categoryIdstringText value.
items[].snippet.liveBroadcastContentstringlive, upcoming or none.
items[].snippet.defaultAudioLanguagestringText value.
items[].snippet.thumbnailsobjectSizes default, medium, high, standard and maxres — not every video has every size.
items[].snippet.thumbnails.defaultobjectA group of named values.
items[].snippet.thumbnails.default.urlstringText value.
items[].snippet.thumbnails.default.widthintegerWhole-number value.
items[].snippet.thumbnails.default.heightintegerWhole-number value.
items[].snippet.thumbnails.mediumobjectA group of named values.
items[].snippet.thumbnails.medium.urlstringText value.
items[].snippet.thumbnails.medium.widthintegerWhole-number value.
items[].snippet.thumbnails.medium.heightintegerWhole-number value.
items[].snippet.thumbnails.highobjectA group of named values.
items[].snippet.thumbnails.high.urlstringText value.
items[].snippet.thumbnails.high.widthintegerWhole-number value.
items[].snippet.thumbnails.high.heightintegerWhole-number value.
items[].snippet.thumbnails.standardobjectA group of named values.
items[].snippet.thumbnails.standard.urlstringText value.
items[].snippet.thumbnails.standard.widthintegerWhole-number value.
items[].snippet.thumbnails.standard.heightintegerWhole-number value.
items[].snippet.thumbnails.maxresobjectA group of named values.
items[].snippet.thumbnails.maxres.urlstringText value.
items[].snippet.thumbnails.maxres.widthintegerWhole-number value.
items[].snippet.thumbnails.maxres.heightintegerWhole-number value.
items[].contentDetailsobjectA group of named values.
items[].contentDetails.durationstringISO 8601 — PT4M13S is 4 minutes 13 seconds.
items[].contentDetails.definitionstringhd or sd.
items[].contentDetails.captionstring"true" when the video has captions.
items[].statisticsobjectA group of named values.
items[].statistics.viewCountstringA number, sent as text.
items[].statistics.likeCountstringMissing when likes are hidden.
items[].statistics.commentCountstringMissing when comments are off.
items[].statusobjectA group of named values.
items[].status.privacyStatusstringpublic or unlisted — private videos aren't returned.
items[].status.embeddablebooleanTrue or false.
items[].status.madeForKidsbooleanTrue or false.
nextPageTokenstringText value.

Run it from Shortcuts #

  1. Give the action a recognizable name and tap Save.
  2. In Apple Shortcuts, add Shortcutify’s Execute Action and select the saved action.
  3. Supply any Param or File slots you bound in the inputs, then run the shortcut.

If the result is unexpected, open Logs in Shortcutify, select the run, and inspect this step’s inputs and response.

This action supports multiple pages of results. Open its Fetch setting to retrieve more pages when one page is not enough. Each page adds a service request.

Advanced reference #

Request, permissions, and identifiers

Request: GET https://www.googleapis.com/youtube/v3/videos

Action identifier: youtube.videos.chart.v1

No additional per-action permissions are declared in the app’s catalog. The integration’s connection and account access rules still apply.

InputRequest keyLocation
RegionregionCodequery
CategoryvideoCategoryIdquery
How ManymaxResultsquery
Page TokenpageTokenquery

YouTube API reference