Skip to content
Browse all functions

List YouTube Comments

youtube/listyoutubecomments

listyoutubecomments (List YouTube Comments) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/listyoutubecomments, 2 credits per call. It works in Make, n8n, scripts and AI agents as a plain HTTP call.

This function is deprecated and will be removed in a future release.

Lists YouTube comments.

  • This service is provided by an external service provider: YouTube. The data of the call is sent to the provider. More about service providers

Try it in the 1001fx app

Run listyoutubecomments in your browser with your API key – fill the form, click Run and get the answer or the file.

listyoutubecomments in the 1001fx app: the form with example values
List YouTube Comments in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/youtube/listyoutubecomments
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • credentialKeystringrequired

    Your 1001fx credential key. See https://1001fx.com/app/credentials/list

    Example:
    yourCredentialKey
  • idsarray<string>optional

    The id parameter specifies a comma-separated list of comment IDs for the resources that are being retrieved.

    Min items:
    1
  • parentIdstringoptional

    The parentId parameter specifies the ID of the comment for which replies should be retrieved. YouTube currently supports replies only for top-level comments.

    Min items:
    1
    Example:
    UgwW1S95-KHLW2bUI-14AaABAg
  • maxResultsnumberoptional

    Defines how many comment threads to retrieve. Defaults to 20.

    Default:
    20
    Min:
    1
    Max:
    100
    Example:
    10
  • pageTokenstringoptional

    If your last request did not retrieve all comment threads a nextPageToken is returned to fetch the next set of comment threads.

  • textFormatenumoptional

    This parameter indicates whether the API should return comments formatted as HTML or as plain text. Defaults to html.

    Values:
    html
    plainText
    Default:
    html
    Example:
    html

Examples

Comments by ID

Loads the comments with the given ids.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "ids": [
    "UgwW1S95-KHLW2bUI-14AaABAg.9LOCAvGg5kO9oyVHXRxXa3",
    "UgwW1S95-KHLW2bUI-14AaABAg.9LOCAvGg5kO9o8BjQEJxO0"
  ],
  "maxResults": 10,
  "textFormat": "html"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/listyoutubecomments' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","ids":["UgwW1S95-KHLW2bUI-14AaABAg.9LOCAvGg5kO9oyVHXRxXa3","UgwW1S95-KHLW2bUI-14AaABAg.9LOCAvGg5kO9o8BjQEJxO0"],"maxResults":10,"textFormat":"html"}'

Replies to a comment

Loads the replies to the comment in parentId.

Input

Expects a json body
{
  "credentialKey": "yourCredentialKey",
  "parentId": "UgwW1S95-KHLW2bUI-14AaABAg",
  "maxResults": 10,
  "textFormat": "html"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/listyoutubecomments' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","parentId":"UgwW1S95-KHLW2bUI-14AaABAg","maxResults":10,"textFormat":"html"}'

Try listyoutubecomments now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.019.04.2023created
Ask 1001fx