youtube / action / schema v1
Search YouTube
Search public YouTube videos, channels, and playlists (costs 100× a normal read, avoid running it on a short schedule)
Prerequisites
- Add the youtube plugin inside this workflow.
Parameters
| Parameter | Type | Description |
|---|---|---|
Search queryq | text Required | |
Resource typetype | select Optional | Options: Videos (video), Channels (channel), Playlists (playlist), All () |
Orderorder | select Optional | Options: Relevance (relevance), Date (date), Rating (rating), Title (title), View count (viewCount) |
Channel IDchannelId | text Optional | |
Published afterpublishedAfter | text Optional | |
Published beforepublishedBefore | text Optional | |
Region coderegionCode | text Optional | |
LanguagerelevanceLanguage | text Optional | |
Maximum resultsmaxResults | number Optional | |
Page tokenpageToken | text Optional | Use nextPageToken from a previous execution. |
Inputs and outputs
Inputs
execute- Execute (input)
Outputs
done- Done (output)kind- YouTube response kind (output)etag- Response ETag (output)nextPageToken- Next page token (output)prevPageToken- Previous page token (output)pageInfo- Pagination information (output)items- YouTube resources returned by the API (output)error- Error (output)
Output data schema
[
{
"key": "kind",
"type": "string",
"description": "YouTube response kind",
"label": "YouTube response kind",
"optional": true
},
{
"key": "etag",
"type": "string",
"description": "Response ETag",
"label": "Response ETag",
"optional": true
},
{
"key": "nextPageToken",
"type": "string",
"description": "Next page token",
"label": "Next page token",
"optional": true
},
{
"key": "prevPageToken",
"type": "string",
"description": "Previous page token",
"label": "Previous page token",
"optional": true
},
{
"key": "pageInfo",
"type": "object",
"description": "Pagination information",
"label": "Pagination information",
"optional": true,
"fields": [
{
"key": "totalResults",
"type": "number",
"optional": true
},
{
"key": "resultsPerPage",
"type": "number",
"optional": true
}
]
},
{
"key": "items",
"type": "array",
"description": "YouTube resources returned by the API",
"label": "YouTube resources returned by the API",
"items": {
"key": "item",
"type": "any",
"optional": true
}
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
601735a984ae8c9e93673369c9efa8702f58a7c5189087a60e93b461b19add5d