youTube.json•11.8 kB
{
"nodeType": "n8n-nodes-base.youTube",
"displayName": "YouTube",
"description": "Consume YouTube API",
"version": 1,
"properties": [
{
"name": "part",
"displayName": "Fields",
"type": "multiOptions",
"default": "['*']",
"description": "The fields parameter specifies a comma-separated list of one or more channel resource properties that the API response will include",
"required": true,
"options": [
{
"name": "*",
"value": "*"
},
{
"name": "Branding Settings",
"value": "brandingSettings"
},
{
"name": "Content Details",
"value": "contentDetails"
},
{
"name": "Content Owner Details",
"value": "contentOwnerDetails"
},
{
"name": "ID",
"value": "id"
},
{
"name": "Localizations",
"value": "localizations"
},
{
"name": "Snippet",
"value": "snippet"
},
{
"name": "Statistics",
"value": "statistics"
},
{
"name": "Status",
"value": "status"
},
{
"name": "Topic Details",
"value": "topicDetails"
}
],
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"channel"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"channel"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 25,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 50
},
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"channel"
],
"returnAll": [
false
]
}
}
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"description": "The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category",
"placeholder": "Add option",
"options": [
{
"name": "categoryId",
"displayName": "Category ID",
"type": "string",
"default": "",
"description": "The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category"
},
{
"name": "forUsername",
"displayName": "For Username",
"type": "string",
"default": "",
"description": "The forUsername parameter specifies a YouTube username, thereby requesting the channel associated with that username"
},
{
"name": "id",
"displayName": "ID",
"type": "string",
"default": "",
"description": "The ID parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the ID property specifies the channel's YouTube channel ID."
},
{
"name": "managedByMe",
"displayName": "Managed By Me",
"type": "boolean",
"default": false,
"description": "Whether to instruct the API to only return channels managed by the content owner that the onBehalfOfContentOwner parameter specifies"
}
],
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"channel"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add option",
"options": [
{
"name": "h1",
"displayName": "Language Code",
"type": "options",
"default": "",
"description": "The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "onBehalfOfContentOwner",
"displayName": "On Behalf Of Content Owner",
"type": "string",
"default": "",
"description": "The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value"
}
],
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"channel"
]
}
}
},
{
"name": "channelId",
"displayName": "Channel ID",
"type": "string",
"default": "",
"description": "ID of the channel",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get"
],
"resource": [
"channel"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "Encapsulates information about the branding of the channel",
"placeholder": "Add Field",
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"channel"
]
}
}
},
{
"name": "binaryProperty",
"displayName": "Input Binary Field",
"type": "string",
"default": "data",
"required": true,
"displayOptions": {
"show": {
"operation": [
"uploadBanner"
],
"resource": [
"channel"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "getAll",
"description": "Retrieve a channel",
"options": [
{
"name": "Get",
"value": "get",
"description": "Retrieve a channel"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Retrieve many channels"
},
{
"name": "Update",
"value": "update",
"description": "Update a channel"
},
{
"name": "Upload Banner",
"value": "uploadBanner",
"description": "Upload a channel banner"
}
],
"displayOptions": {
"show": {
"resource": [
"channel"
]
}
}
},
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "The playlist's title",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"playlist"
]
}
}
},
{
"name": "playlistId",
"displayName": "Playlist ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get"
],
"resource": [
"playlist"
]
}
}
},
{
"name": "videoId",
"displayName": "Video ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"playlistItem"
]
}
}
},
{
"name": "playlistItemId",
"displayName": "Playlist Item ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get"
],
"resource": [
"playlistItem"
]
}
}
},
{
"name": "regionCode",
"displayName": "Region Code",
"type": "options",
"default": "",
"description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
"required": true,
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"videoCategory"
]
}
}
},
{
"name": "categoryId",
"displayName": "Category Name or ID",
"type": "options",
"default": "",
"description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
"displayOptions": {
"show": {
"operation": [
"upload"
],
"resource": [
"video"
]
}
}
},
{
"name": "rating",
"displayName": "Rating",
"type": "options",
"default": "",
"description": "Records that the authenticated user disliked the video",
"options": [
{
"name": "Dislike",
"value": "dislike",
"description": "Records that the authenticated user disliked the video"
},
{
"name": "Like",
"value": "like",
"description": "Records that the authenticated user liked the video"
},
{
"name": "None",
"value": "none",
"description": "Removes any rating that the authenticated user had previously set for the video"
}
],
"displayOptions": {
"show": {
"operation": [
"rate"
],
"resource": [
"video"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "channel",
"options": [
{
"name": "Channel",
"value": "channel"
},
{
"name": "Playlist",
"value": "playlist"
},
{
"name": "Playlist Item",
"value": "playlistItem"
},
{
"name": "Video",
"value": "video"
},
{
"name": "Video Category",
"value": "videoCategory"
}
]
}
],
"credentialsConfig": [
{
"name": "youTubeOAuth2Api",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}