Skip to content

Comment Replies

GET/v1/youtube/video/comment/replies1 credit

Returns the replies to a video comment.

01Query parameters

NameTypeDescription
continuationTokenrequiredstringA comment's `repliesContinuationToken` from Video Comments, or the `continuationToken` of a previous replies page.

02Request

curl "https://api.scrapesocial.ai/v1/youtube/video/comment/replies?continuationToken=Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/youtube/video/comment/replies?continuationToken=Eg0SC2RRdzR3OVdnWGNRGAYygwEaUBIaVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWciAggAKhhVQ3VBWEZrZ3N3MUw3eGFDZm5kNUpKT3cyC2RRdzR3OVdnWGNRQAFICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZw%3D%3D

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "comments": [
    {
      "id": "Ugxzbv_ZeZXNRcfwsSF4AaABAg.91_2FL04Xww97FrL-edZw3",
      "content": "@Sam The Gamer?",
      "publishedTimeText": "6 years ago (edited)",
      "publishedTime": "2020-10-25T17:07:16.638Z",
      "replyLevel": 1,
      "author": {
        "name": "@candycake9531",
        "channelId": "UCNLgzvqrGzFi5SEAbVkFchg",
        "isVerified": false,
        "isCreator": false,
        "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_mEO82VrM8XtyGrBUkJgbAYgpAmDpUZixd1QvK9kyA=s88-c-k-c0x00ffffff-no-rj",
        "channelUrl": "https://youtube.com/@candycake9531"
      },
      "engagement": {
        "likes": 4300,
        "replies": 0
      }
    },
    {
      "id": "Ugxzbv_ZeZXNRcfwsSF4AaABAg.91_2FL04Xww97GlR7ZPKTy",
      "content": "Im pretty sure this was in reddit right r/rareinsults",
      "publishedTimeText": "6 years ago",
      "publishedTime": "2020-10-25T17:07:16.638Z",
      "replyLevel": 1,
      "author": {
        "name": "@estherpunongbayan7586",
        "channelId": "UChrIe7-ni8bI1wZU9OmfImA",
        "isVerified": false,
        "isCreator": false,
        "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_l59F5SCEYbxqIV6MlJmyDpVxJEpfkP4hbKPIXchXLuUOoR=s88-c-k-c0x00ffffff-no-rj",
        "channelUrl": "https://youtube.com/@estherpunongbayan7586"
      },
      "engagement": {
        "likes": 3000,
        "replies": 0
      }
    }
  ],
  "continuationToken": "Eg0SC2RRdzR3OVdnWGNRGAYy2AEKUWdldF9jb21tZW50X3dpdGhfcmVwbGllc19zdHJlYW0tLUNnZ0lnQVFWRjdmUk9CSUZDS0FnR0FFaURRb0xDTXlUNGZVRkVNaWU0UzFRQUZnQhpQEhpVZ3h6YnZfWmVaWE5SY2Z3c1NGNEFhQUJBZyICCAAqGFVDdUFYRmtnc3cxTDd4YUNmbmQ1SkpPdzILZFF3NHc5V2dYY1FAAUgyggECCAEoCkIvY29tbWVudC1yZXBsaWVzLWl0ZW0tVWd4emJ2X1plWlhOUmNmd3NTRjRBYUFCQWc%3D"
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

About 10 replies on the first page, more on later ones. Pass `continuationToken` back for the next page; it is null on the last page. Reply ids have the form `<parent>.<reply>`. A token YouTube does not recognise returns an empty page for 0 credits.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.