Endpoint Get playlists
Name
get_playlists
Description
No description available [API reference]
Related Tables
Parameters
Parameter | Required | Options | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name:
Label: part |
YES |
|
||||||||||||||
Name:
Label: id Get playlist with this Id. If you pass this, don't set 'channelId' nor 'mine'. |
||||||||||||||||
Name:
Label: channelId Set this parameter to show playlists from the specified channel. If you pass this, don't set 'id' nor 'mine'. |
||||||||||||||||
Name:
Label: mine Set this parameter to show playlists for my account. If you pass this, don't set 'id' nor 'channelId'. |
|
|||||||||||||||
Name:
Label: hl |
||||||||||||||||
Name:
Label: maxResults |
||||||||||||||||
Name:
Label: onBehalfOfContentOwner |
||||||||||||||||
Name:
Label: onBehalfOfContentOwnerChannel |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
---|---|---|---|---|
id |
DT_WSTR
|
nvarchar(136)
|
136 | |
publishedAt |
DT_DBTIMESTAMP
|
datetime
|
||
channelId |
DT_WSTR
|
nvarchar(96)
|
96 | |
title |
DT_WSTR
|
nvarchar(36)
|
36 | |
description |
DT_NTEXT
|
nvarchar(MAX)
|
||
thumbnails_default_url |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
thumbnails_default_width |
DT_I8
|
bigint
|
||
thumbnails_default_height |
DT_I8
|
bigint
|
||
thumbnails_medium_url |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
thumbnails_medium_width |
DT_I8
|
bigint
|
||
thumbnails_medium_height |
DT_I8
|
bigint
|
||
thumbnails_high_url |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
thumbnails_high_width |
DT_I8
|
bigint
|
||
thumbnails_high_height |
DT_I8
|
bigint
|
||
channelTitle |
DT_WSTR
|
nvarchar(200)
|
200 | |
localized_title |
DT_WSTR
|
nvarchar(200)
|
200 | |
localized_description |
DT_NTEXT
|
nvarchar(MAX)
|
||
thumbnails_standard_url |
DT_WSTR
|
nvarchar(1000)
|
1000 | |
thumbnails_standard_width |
DT_I8
|
bigint
|
||
thumbnails_standard_height |
DT_I8
|
bigint
|
||
status_privacyStatus |
DT_WSTR
|
nvarchar(100)
|
100 | |
contentDetails_itemCount |
DT_I8
|
bigint
|
||
player_embedHtml |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
kind |
DT_WSTR
|
nvarchar(64)
|
64 | |
etag |
DT_WSTR
|
nvarchar(108)
|
108 |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use YouTube Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
This Endpoint belongs to the MyPlaylists table, therefore it is better to use it, instead of accessing the endpoint directly:
Required Parameters | |
---|---|
part | Fill-in the parameter... |
Optional Parameters | |
id | |
channelId | |
mine | true |
hl | |
maxResults | 50 |
onBehalfOfContentOwner | |
onBehalfOfContentOwnerChannel |

API Destination
This Endpoint belongs to the MyPlaylists table, therefore it is better to use it, instead of accessing the endpoint directly. Use this table and table-operation pair to get playlists:
Required Parameters | |
---|---|
part | Fill-in the parameter... |
Optional Parameters | |
id | |
channelId | |
mine | true |
hl | |
maxResults | 50 |
onBehalfOfContentOwner | |
onBehalfOfContentOwnerChannel |

ODBC application
Use these SQL queries in your ODBC application data source:
Get my playlists of specific channel
SELECT * FROM get_playlists WITH (channelId='UCVGOyzms_XJNk_DHqrffXCw')
Get playlists of my account
SELECT * FROM MyPlaylists
Get my playlists of my account
SELECT * FROM MyPlaylists
get_playlists
endpoint belongs to
MyPlaylists
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get my playlists of specific channel
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_playlists WITH (channelId=''UCVGOyzms_XJNk_DHqrffXCw'')';
EXEC (@MyQuery) AT [LS_TO_YOUTUBE_IN_GATEWAY];
Get playlists of my account
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM MyPlaylists';
EXEC (@MyQuery) AT [LS_TO_YOUTUBE_IN_GATEWAY];
Get my playlists of my account
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM MyPlaylists';
EXEC (@MyQuery) AT [LS_TO_YOUTUBE_IN_GATEWAY];
get_playlists
endpoint belongs to
MyPlaylists
table(s), and can therefore be used via those table(s).