Posting a YouTube comment with HTTP Request

Hey! I’ve managed to upload a YouTube thumbnail using HTTP request, but adding a comment is still eluding me and I’m not sure where to put everything to get this request to work.

The required parameters, headers and body are listed here:

But honestly it’s quite confusing and more complex somehow than uploading a thumbnail.

Could anyone in the know with API’s and HTTP requests let me know what I put where in terms of

So far on n8n I’ve got

Send Body Ticked
Body Content Type JSON
Specifiy Body Using JSON and then

{
  "snippet": {
    "videoId": "anyvideoIDhere",
    "topLevelComment": {
      "snippet": {
        "textOriginal": "My comment text here"
      }
    }
  }
}

Within the box, but I’m not sure if this is correct and am pretty sure I need to fill something out within Query Parameters and Headers.

Many thanks!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @UnluckyForSome

according to the docs, that one seems correct

Thanks @barn4k, does that mean I can leave the “Query Parameters” and “Headers” parts unchecked? Just sending a body seems incorrect but perhaps not?

As i see from docs, you have to provide one parameter part=snippet. Headers are not needed

Got it and it’s working! Cheers again

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.