In this guide

Get Comments

A video's comments, top or newest first.

Action referenceRead

What this action does #

First, connect YouTube in Services. Then open Actions → + → YouTube and choose Get Comments.

More about this action

The comments under a video, without their replies — each has a reply count, and Get Replies reads them with its ID. A video with comments turned off is an error, not an empty list.

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.

Video

RequiredText

A video link or ID.

Example value (replace with your own):
https://youtu.be/dQw4w9WgXcQ

Sort By

OptionalChoice

relevance is top comments first; time is newest first.

Choices: relevance, time

Containing

OptionalText

Only comments with these words.

How Many

OptionalWhole number

1–100 a page. YouTube sends 20 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 comment's ID, for Get Replies.
items[].snippetobjectA group of named values.
items[].snippet.totalReplyCountintegerWhole-number value.
items[].snippet.topLevelCommentobjectA group of named values.
items[].snippet.topLevelComment.snippetobjectA group of named values.
items[].snippet.topLevelComment.snippet.textDisplaystringThe comment as plain text.
items[].snippet.topLevelComment.snippet.authorDisplayNamestringText value.
items[].snippet.topLevelComment.snippet.authorChannelUrlstringText value.
items[].snippet.topLevelComment.snippet.likeCountintegerWhole-number value.
items[].snippet.topLevelComment.snippet.publishedAtstringISO 8601.
items[].snippet.topLevelComment.snippet.updatedAtstringDiffers from publishedAt when it was edited.
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/commentThreads

Action identifier: youtube.commentThreads.list.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
VideovideoIdquery
Sort Byorderquery
ContainingsearchTermsquery
How ManymaxResultsquery
Page TokenpageTokenquery

YouTube API reference