Skip to Content

Post Comment Replies

A comment's replies, 10 a page.

GET
/v1/youtube/post/comment/replies

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

token*string

The comment's ext.repliesToken.

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.youtube.postCommentReplies({ token: "Eg0SC0lwNUVpcWJ1QnBFGAYygwEaUBIaVWd4SWJsNnUzMEV2Um52WjhXNTRBYUFCQWciAggAKhhVQ1h1cVNCbEhBRTZYdy15ZUpBMFR1bncyC0lwNUVpcWJ1QnBFQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3hJYmw2dTMwRXZSbnZaOFc1NEFhQUJBZw%3D%3D" });
Example Response
{  "data": [    {      "id": "UgxIbl6u30EvRnvZ8W54AaABAg.AdZkak57gSlAd_wuN30rch",      "postId": "Ip5EiqbuBpE",      "parentId": null,      "text": "Yo Linus, the U.S. link for the Tech Sling on the bundle's website takes you to the $60 Tech Sack instead :D It threw me off a little bit! I Was like WHY is the bundle WAY more expensive?!",      "createdAt": null,      "author": {        "id": "UChwFVpA3vr24SSnnnrmZVlA",        "username": "AlTheEngineer",        "displayName": null,        "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_kyfydLc293VbbjgrpePSv3dbHu7agXv5XldsfMTFs=s88-c-k-c0x00ffffff-no-rj",        "verified": false,        "url": "https://www.youtube.com/@AlTheEngineer"      },      "likes": 0,      "replies": 0,      "ext": {        "publishedText": "1 day ago",        "edited": true,        "pinned": false,        "byCreator": false,        "repliesToken": null      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}