Endpoint Search
Name
search
Description
No description available [API reference]
Parameters
| Parameter | Required | Options | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Name:
Label: part |
YES | |||||||||||||||
|
Name:
Label: forMine (search in my account only) If set to 'true', parameter 'type' must be set to 'video'. |
|
|||||||||||||||
|
Name:
Label: query (search term) |
||||||||||||||||
|
Name:
Label: type Must be set to 'video' if 'forMine' is set to 'true'. |
|
|||||||||||||||
|
Name:
Label: channelId |
||||||||||||||||
|
Name:
Label: channelType |
|
|||||||||||||||
|
Name:
Label: eventType |
|
|||||||||||||||
|
Name:
Label: location |
||||||||||||||||
|
Name:
Label: locationRadius |
||||||||||||||||
|
Name:
Label: maxResults |
||||||||||||||||
|
Name:
Label: onehalfOfContentOwner |
||||||||||||||||
|
Name:
Label: order |
|
|||||||||||||||
|
Name:
Label: publishedAfter |
||||||||||||||||
|
Name:
Label: publishedBefore |
||||||||||||||||
|
Name:
Label: regionCode |
||||||||||||||||
|
Name:
Label: relevanceLanguage |
||||||||||||||||
|
Name:
Label: safeSearch |
|
|||||||||||||||
|
Name:
Label: topicId |
||||||||||||||||
|
Name:
Label: videoCaption |
|
|||||||||||||||
|
Name:
Label: videoCategoryId |
||||||||||||||||
|
Name:
Label: videoDefinition |
|
|||||||||||||||
|
Name:
Label: videoDimension |
|
|||||||||||||||
|
Name:
Label: videoDuration |
|
|||||||||||||||
|
Name:
Label: videoEmbeddable |
|
|||||||||||||||
|
Name:
Label: videoLicense |
|
|||||||||||||||
|
Name:
Label: videoSyndicated |
|
|||||||||||||||
|
Name:
Label: videoType |
|
|||||||||||||||
|
Name:
Label: forContentOwner |
|
|||||||||||||||
|
Name:
Label: forDeveloper |
|
|||||||||||||||
|
Name:
Label: relatedToVideoId |
Output Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
|---|---|---|---|---|
| id_kind |
DT_WSTR
|
nvarchar(200)
|
200 | |
| videoId |
DT_WSTR
|
nvarchar(100)
|
100 | |
| publishedAt |
DT_DBTIMESTAMP
|
datetime
|
||
| title |
DT_WSTR
|
nvarchar(1200)
|
1200 | |
| description |
DT_NTEXT
|
nvarchar(MAX)
|
||
| channelId |
DT_WSTR
|
nvarchar(300)
|
300 | |
| thumbnails_default_url |
DT_WSTR
|
nvarchar(400)
|
400 | |
| thumbnails_default_width |
DT_I8
|
bigint
|
||
| thumbnails_default_height |
DT_I8
|
bigint
|
||
| thumbnails_medium_url |
DT_WSTR
|
nvarchar(400)
|
400 | |
| thumbnails_medium_width |
DT_I8
|
bigint
|
||
| thumbnails_medium_height |
DT_I8
|
bigint
|
||
| thumbnails_high_url |
DT_WSTR
|
nvarchar(400)
|
400 | |
| thumbnails_high_width |
DT_I8
|
bigint
|
||
| thumbnails_high_height |
DT_I8
|
bigint
|
||
| channelTitle |
DT_WSTR
|
nvarchar(200)
|
200 | |
| liveBroadcastContent |
DT_WSTR
|
nvarchar(200)
|
200 | |
| publishTime |
DT_DBTIMESTAMP
|
datetime
|
||
| etag |
DT_WSTR
|
nvarchar(300)
|
300 | |
| kind |
DT_WSTR
|
nvarchar(150)
|
150 |
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
| Required Parameters | |
|---|---|
| part | Fill-in the parameter... |
| Optional Parameters | |
| forMine (search in my account only) | true |
| query (search term) | |
| type | video |
| channelId | |
| channelType | |
| eventType | |
| location | |
| locationRadius | |
| maxResults | 50 |
| onehalfOfContentOwner | |
| order | |
| publishedAfter | |
| publishedBefore | |
| regionCode | |
| relevanceLanguage | |
| safeSearch | |
| topicId | |
| videoCaption | |
| videoCategoryId | |
| videoDefinition | |
| videoDimension | |
| videoDuration | |
| videoEmbeddable | |
| videoLicense | |
| videoSyndicated | |
| videoType | |
| forContentOwner | |
| forDeveloper | |
| relatedToVideoId | |
API Destination
| Required Parameters | |
|---|---|
| part | Fill-in the parameter... |
| Optional Parameters | |
| forMine (search in my account only) | true |
| query (search term) | |
| type | video |
| channelId | |
| channelType | |
| eventType | |
| location | |
| locationRadius | |
| maxResults | 50 |
| onehalfOfContentOwner | |
| order | |
| publishedAfter | |
| publishedBefore | |
| regionCode | |
| relevanceLanguage | |
| safeSearch | |
| topicId | |
| videoCaption | |
| videoCategoryId | |
| videoDefinition | |
| videoDimension | |
| videoDuration | |
| videoEmbeddable | |
| videoLicense | |
| videoSyndicated | |
| videoType | |
| forContentOwner | |
| forDeveloper | |
| relatedToVideoId | |
ODBC application
Use these SQL queries in your ODBC application data source:
Search for videos in whole YouTube
SELECT * FROM search WITH (q='ZappySys Tutorials', maxResults='50')
Search for videos in a channel
SELECT * FROM search WITH (q='GPU', maxResults='50', channelId='UCXuqSBlHAE6Xw-yeJA0Tunw')
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Search for videos in whole YouTube
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM search WITH (q=''ZappySys Tutorials'', maxResults=''50'')';
EXEC (@MyQuery) AT [LS_TO_YOUTUBE_IN_GATEWAY];
Search for videos in a channel
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM search WITH (q=''GPU'', maxResults=''50'', channelId=''UCXuqSBlHAE6Xw-yeJA0Tunw'')';
EXEC (@MyQuery) AT [LS_TO_YOUTUBE_IN_GATEWAY];