YouTube Connector for SSIS
Read / write YouTube data inside your app, perform many Youtube operations without coding using easy to use high performance API Connector for YouTube You can use this connector to integrate YouTube data inside SSIS and SQL Server. Let's take a look at the steps below to see how exactly to accomplish that.
Download
Documentation
If you are new with SSIS and ZappySys SSIS PowerPack then check below links to get started.
|
Connect to YouTube in other apps
|
Video Tutorial - Integrate YouTube data in SSIS
This video covers following and more so watch carefully. After watching this video follow the steps described in this article.
- How to download / install required driver for YouTube integration in SSIS
- How to configure connection for YouTube
- Features about API Source (Authentication / Query Language / Examples / Driver UI)
- Using YouTube Connection in SSIS
Prerequisites
Before we perform steps listed in this article, you will need to make sure following prerequisites are met:
- SSIS designer installed. Sometimes it is referred as BIDS or SSDT (download it from Microsoft site).
- Basic knowledge of SSIS package development using Microsoft SQL Server Integration Services.
- Make sure ZappySys SSIS PowerPack is downloaded and installed (download it). Check Getting started section for more information.
- Optional (If you want to Deploy and Schedule ) - Deploy and Schedule SSIS Packages
How to read data from YouTube in SSIS (Export data)
In this section we will learn how to configure and use YouTube Connector in API Source to extract data from YouTube.
-
Begin with opening Visual Studio and Create a New Project.
Select Integration Service Project and in new project window set the appropriate name and location for project. And click OK.
-
In the new SSIS project screen you will find the following:
- SSIS ToolBox on left side bar
- Solution Explorer and Property Window on right bar
- Control flow, data flow, event Handlers, Package Explorer in tab windows
- Connection Manager Window in the bottom
Note: If you don't see ZappySys SSIS PowerPack Task or Components in SSIS Toolbox, please refer to
this help link.
-
Now, Drag and Drop SSIS Data Flow Task from SSIS Toolbox. Double click on the Data Flow Task to see Data Flow designer.
-
From the SSIS toolbox drag and API Source (Predefined Templates) on the data flow designer surface, and double click on it to edit it:
-
Select New Connection to create a new connection:
-
Use a preinstalled YouTube Connector from Popular Connector List or press Search Online radio button to download YouTube Connector. Once downloaded simply use it in the configuration:
YouTube
-
Proceed with selecting the desired Authentication Type. Then select API Base URL (in most cases default one is the right one). Finally, fill in all the required parameters and set optional parameters if needed. You may press a link Steps to Configure which will help set certain parameters. More info is available in Authentication section.
Steps to get YouTube Credentials
This walkthrough will help you create an API Key which you will be able to use in all requests and authenticate accordingly.
- Go to Google API Console
- From the Project Dropdown (usually found at the top bar) click Select Project
- On Project Popup click CREATE PROJECT
- Once project is created you can click Select Project to switch the context (You can click on Notification link or Choose from Top Dropdown)
- Click ENABLE APIs AND SERVICES
- Now we need to Enable three APIs one by one (YouTube Data API, YouTube Analytics API, YouTube Reporting API).
- Search YouTube Data API. Select and click ENABLE
- Search YouTube Analytics API. Select and click ENABLE
- Search YouTube Reporting API. Select and click ENABLE
- Go to back to main screen of Google API Console
- Click OAuth Consent Screen Tab. Enter necessary details and Save.
- Click Credentials Tab
- Click CREATE CREDENTIALS (some where in topbar) and select API key option.
- In the popup, copy API Key from the field "Your API key", close this window, and use it in the UI configuration, "key" field
YouTube
API Key [Http]
https://youtube.googleapis.com/youtube/v3
Steps to get YouTube Credentials
To register a custom app, perform the following steps (detailed steps found in the help link at the end)
- Go to Google API Console
- From the Project Dropdown (usually found at the top bar) click Select Project
- On Project Popup click CREATE PROJECT
- Once project is created you can click Select Project to switch the context (You can click on Notification link or Choose from Top Dropdown)
- Click ENABLE APIs AND SERVICES
- Now we need to Enable three APIs one by one (YouTube Data API, YouTube Analytics API, YouTube Reporting API).
- Search YouTube Data API. Select and click ENABLE
- Search YouTube Analytics API. Select and click ENABLE
- Search YouTube Reporting API. Select and click ENABLE
- Go to back to main screen of Google API Console
- Click OAuth Consent Screen Tab. Enter necessary details and Save.
- Click Credentials Tab
- Click CREATE CREDENTIALS (some where in topbar) and select OAuth Client ID option.
- When prompted Select Application Type as Desktop App and click Create to receive your ClientID and Secret. Later on you can use this information now to configure Connection.
- Go to OAuth Consent Screen tab. Under Publishing Status click PUBLISH APP to ensure your refresh token doesnt expire often. If you planning to use App for Private use then do not have to worry about Verification Status after Publish.
YouTube
User Account [OAuth]
https://youtube.googleapis.com/youtube/v3
Steps to get YouTube Credentials
Use these steps to authenticate as service account rather than Google / GSuite User. Learn more about service account
here
Basically to call Google API as Service account we need to perform following steps listed in 3 sections (Detailed steps found in the help link at the end)
Create Project
First thing is create a Project so we can call Google API. Skip this section if you already have Project (Go to next section)
- Go to Google API Console
- From the Project Dropdown (usually found at the top bar) click Select Project
- On Project Popup click CREATE PROJECT
- Once project is created you can click Select Project to switch the context (You can click on Notification link or Choose from Top Dropdown)
- Click ENABLE APIs AND SERVICES
- Now we need to Enable three APIs one by one (YouTube Data API, YouTube Analytics API, YouTube Reporting API)
- Search YouTube Data API. Select and click ENABLE
- Search YouTube Analytics API. Select and click ENABLE
- Search YouTube Reporting API. Select and click ENABLE
Create Service Account
Once Project is created and APIs are enabled we can now create a service account under that project. Service account has its ID which looks like some email ID (not to confuse with Google /Gmail email ID)
- Go to Create Service Account
- From the Project Dropdown (usually found at the top bar) click Select Project
- Enter Service account name and Service account description
- For Role, do not select anything for now and Click Continue and then click Done. Next we will create Key.
Create Key
Once service account is created we need to create key file (i.e. credentials).
- In the Cloud Console, click the email address for the service account that you created.
- Click Keys.
- Click Add key, then click Create new key.
- Click Create and select P12 format. A P12 key file is downloaded to your computer. We will use this file in our API connection.
- Click Close.
- Now you may use downloaded *.p12 key file as secret file and Service Account Email as Client ID (e.g. some-service-account-name@your-project-id.iam.gserviceaccount.com ).
Add Permission
Now last thing is give read/write permission to Service Account. Basically you can create or open Google Sheet and add the Service Account as an editor to it as below.
- Copy the email address of your service account we created in previous step (its usually like this some-service-account-name@your-project-id.iam.gserviceaccount.com).
- Create or select an existing Google Sheet.
- Navigate to Sheet for which you like to give read/write access to Service Account.
- Click on the Share button in the top right, and add the email address of the service account as an editor. Here is how to share file(s) with specific people. Juse share with Service Account (use Service Account Email found on previous section)
YouTube
Service Account (Using Private Key File) [OAuth]
https://youtube.googleapis.com/youtube/v3
-
Select the desired endpoint, change/pass the properties values, and click on Preview Data button to make the API call.
API Source - YouTube
Read / write YouTube data inside your app, perform many Youtube operations without coding using easy to use high performance API Connector for YouTube
-
That's it! We are done! Just in a few clicks we configured the call to YouTube using YouTube Connector.
You can load the source data into your desired destination using the Upsert Destination, which supports SQL Server, PostgreSQL, and Amazon Redshift. We also offer other destinations such as CSV, Excel, Azure Table, Salesforce, and more. You can check out our SSIS PowerPack Tasks and components for more options. (*loaded in Trash Destination)
Load YouTube data in SQL Server using Upsert Destination (Insert or Update)
Once you read data from the desired source, now let's see how to Load YouTube data in SQL Server using Upsert Destination.
Upsert Destination can Merge/Synchronize data from source to target for Microsoft SQL Server, PostgreSql and Redshift. It supports very fast Bulk Upsert (Update or Insert) operation along and Bulk delete.
-
From the SSIS toolbox drag and drop Upsert Destination on the dataflow designer surface
Connect our Source component to Upsert Destination
-
Double click on Upsert Destination component to configure it.
-
Select the desired Microsoft SQL Server/PostgreSql/Redshift Target Connection or click NEW to create new connection. Select Target Table or click NEW to create new table based on source columns.
Configure SSIS Upsert Destination Connection - Loading data (REST / SOAP / JSON / XML /CSV) into SQL Server or other target using SSIS
-
Set Action to Upsert => (insert if not matching in target else update). Select Target Connection and Target Table. Check on Insert and Update. Click on Map All to Mappings all columns and check on Only Primary Key columns.
-
Click on OK to save Upsert Destination settings UI.
-
That's it. Run the SSIS Package and it will read the data from the YouTube and load the data in the SQL Server/PostgreSql/Redshift using Upsert Destination.
Video Tutorial - Write or lookup data to YouTube using SSIS
This video covers following and more so watch carefully. After watching this video follow the steps described in this article.
- How to download SSIS PowerPack for YouTube integration in SSIS
- How to configure connection for YouTube
- How to Write or lookup data to YouTube
- Features about SSIS API Destination
- Using YouTube Connector in SSIS
How to write or lookup data to YouTube in SSIS (Import data)
In upper section we learned how to read data, now in this section we will learn how to configure YouTube in the API Source to Post data to the YouTube.
-
Read the data from the source, being any desired source component. In example we will use ZappySys Dummy Data Source component.
-
From the SSIS Toolbox drag and drop API Destination (Predefined Templates) on the Data Flow Designer surface and connect source component with it, and double click to edit it.
-
Select New Connection to create a new connection:
API Destination - YouTube
Read / write YouTube data inside your app, perform many Youtube operations without coding using easy to use high performance API Connector for YouTube
-
Use a preinstalled YouTube Connector from Popular Connector List or press Search Online radio button to download YouTube Connector. Once downloaded simply use it in the configuration:
YouTube
-
Proceed with selecting the desired Authentication Type. Then select API Base URL (in most cases default one is the right one). Finally, fill in all the required parameters and set optional parameters if needed. You may press a link Steps to Configure which will help set certain parameters. More info is available in Authentication section.
Steps to get YouTube Credentials
This walkthrough will help you create an API Key which you will be able to use in all requests and authenticate accordingly.
- Go to Google API Console
- From the Project Dropdown (usually found at the top bar) click Select Project
- On Project Popup click CREATE PROJECT
- Once project is created you can click Select Project to switch the context (You can click on Notification link or Choose from Top Dropdown)
- Click ENABLE APIs AND SERVICES
- Now we need to Enable three APIs one by one (YouTube Data API, YouTube Analytics API, YouTube Reporting API).
- Search YouTube Data API. Select and click ENABLE
- Search YouTube Analytics API. Select and click ENABLE
- Search YouTube Reporting API. Select and click ENABLE
- Go to back to main screen of Google API Console
- Click OAuth Consent Screen Tab. Enter necessary details and Save.
- Click Credentials Tab
- Click CREATE CREDENTIALS (some where in topbar) and select API key option.
- In the popup, copy API Key from the field "Your API key", close this window, and use it in the UI configuration, "key" field
YouTube
API Key [Http]
https://youtube.googleapis.com/youtube/v3
Steps to get YouTube Credentials
To register a custom app, perform the following steps (detailed steps found in the help link at the end)
- Go to Google API Console
- From the Project Dropdown (usually found at the top bar) click Select Project
- On Project Popup click CREATE PROJECT
- Once project is created you can click Select Project to switch the context (You can click on Notification link or Choose from Top Dropdown)
- Click ENABLE APIs AND SERVICES
- Now we need to Enable three APIs one by one (YouTube Data API, YouTube Analytics API, YouTube Reporting API).
- Search YouTube Data API. Select and click ENABLE
- Search YouTube Analytics API. Select and click ENABLE
- Search YouTube Reporting API. Select and click ENABLE
- Go to back to main screen of Google API Console
- Click OAuth Consent Screen Tab. Enter necessary details and Save.
- Click Credentials Tab
- Click CREATE CREDENTIALS (some where in topbar) and select OAuth Client ID option.
- When prompted Select Application Type as Desktop App and click Create to receive your ClientID and Secret. Later on you can use this information now to configure Connection.
- Go to OAuth Consent Screen tab. Under Publishing Status click PUBLISH APP to ensure your refresh token doesnt expire often. If you planning to use App for Private use then do not have to worry about Verification Status after Publish.
YouTube
User Account [OAuth]
https://youtube.googleapis.com/youtube/v3
Steps to get YouTube Credentials
Use these steps to authenticate as service account rather than Google / GSuite User. Learn more about service account
here
Basically to call Google API as Service account we need to perform following steps listed in 3 sections (Detailed steps found in the help link at the end)
Create Project
First thing is create a Project so we can call Google API. Skip this section if you already have Project (Go to next section)
- Go to Google API Console
- From the Project Dropdown (usually found at the top bar) click Select Project
- On Project Popup click CREATE PROJECT
- Once project is created you can click Select Project to switch the context (You can click on Notification link or Choose from Top Dropdown)
- Click ENABLE APIs AND SERVICES
- Now we need to Enable three APIs one by one (YouTube Data API, YouTube Analytics API, YouTube Reporting API)
- Search YouTube Data API. Select and click ENABLE
- Search YouTube Analytics API. Select and click ENABLE
- Search YouTube Reporting API. Select and click ENABLE
Create Service Account
Once Project is created and APIs are enabled we can now create a service account under that project. Service account has its ID which looks like some email ID (not to confuse with Google /Gmail email ID)
- Go to Create Service Account
- From the Project Dropdown (usually found at the top bar) click Select Project
- Enter Service account name and Service account description
- For Role, do not select anything for now and Click Continue and then click Done. Next we will create Key.
Create Key
Once service account is created we need to create key file (i.e. credentials).
- In the Cloud Console, click the email address for the service account that you created.
- Click Keys.
- Click Add key, then click Create new key.
- Click Create and select P12 format. A P12 key file is downloaded to your computer. We will use this file in our API connection.
- Click Close.
- Now you may use downloaded *.p12 key file as secret file and Service Account Email as Client ID (e.g. some-service-account-name@your-project-id.iam.gserviceaccount.com ).
Add Permission
Now last thing is give read/write permission to Service Account. Basically you can create or open Google Sheet and add the Service Account as an editor to it as below.
- Copy the email address of your service account we created in previous step (its usually like this some-service-account-name@your-project-id.iam.gserviceaccount.com).
- Create or select an existing Google Sheet.
- Navigate to Sheet for which you like to give read/write access to Service Account.
- Click on the Share button in the top right, and add the email address of the service account as an editor. Here is how to share file(s) with specific people. Juse share with Service Account (use Service Account Email found on previous section)
YouTube
Service Account (Using Private Key File) [OAuth]
https://youtube.googleapis.com/youtube/v3
-
Select the desired endpoint, change/pass the properties values, and go to the Mappings tab to map the columns.
API Destination - YouTube
Read / write YouTube data inside your app, perform many Youtube operations without coding using easy to use high performance API Connector for YouTube
-
Finally, map the desired columns:
API Destination - YouTube
Read / write YouTube data inside your app, perform many Youtube operations without coding using easy to use high performance API Connector for YouTube
-
That's it; we successfully configured the POST API Call. In a few clicks we configured the YouTube API call using ZappySys YouTube Connector
Advanced topics
Actions supported by YouTube Connector
YouTube Connector support following actions for REST API integration. If some actions are not listed below then you can easily edit Connector file and enhance out of the box functionality.
Read videos details by IDs or chart or myRating (pass one of them) [
Read more...]
Parameter |
Description |
Ids (up to 25 comma-separated) |
Comma-separated IDs of YouTube videos (max 25 IDs)
|
chart |
The chart parameter identifies the chart that you want to retrieve.
Option |
Value |
mostPopular |
mostPopular |
|
myRating |
Option |
Value |
like |
like |
dislike |
dislike |
|
part |
Option |
Value |
contentDetails |
contentDetails |
fileDetails |
fileDetails |
id |
id |
liveStreamingDetails |
liveStreamingDetails |
localizations |
localizations |
player |
player |
processingDetails |
processingDetails |
recordingDetails |
recordingDetails |
snippet |
snippet |
statistics |
statistics |
status |
status |
suggestions |
suggestions |
topicDetails |
topicDetails |
|
hl |
|
maxHeight |
Acceptable values are 72 to 8192, inclusive.
|
maxResults |
Acceptable values are 1 to 50, inclusive. Default value is 5.
|
maxWidth |
Acceptable values are 72 to 8192, inclusive.
|
onBehalfOfContentOwner |
|
regionCode |
|
videoCategoryId |
|
[
Read more...]
Parameter |
Description |
id |
|
onBehalfOfContentOwner |
|
[
Read more...]
Parameter |
Description |
part |
Option |
Value |
contentDetails |
contentDetails |
id |
id |
localizations |
localizations |
player |
player |
snippet |
snippet |
status |
status |
|
id |
Get playlist with this Id. If you pass this, don't set 'channelId' nor 'mine'.
|
channelId |
Set this parameter to show playlists from the specified channel. If you pass this, don't set 'id' nor 'mine'.
|
mine |
Set this parameter to show playlists for my account. If you pass this, don't set 'id' nor 'channelId'.
Option |
Value |
true |
true |
false |
false |
|
hl |
|
maxResults |
|
onBehalfOfContentOwner |
|
onBehalfOfContentOwnerChannel |
|
[
Read more...]
Parameter |
Description |
part |
Option |
Value |
contentDetails |
contentDetails |
id |
id |
snippet |
snippet |
status |
status |
|
id |
|
playlistId |
|
maxResults |
|
onBehalfOfContentOwner |
|
videoId |
|
[
Read more...]
Parameter |
Description |
part |
Option |
Value |
id |
id |
replies |
replies |
snippet |
snippet |
|
allThreadsRelatedToChannelId |
|
channelId |
|
id |
|
videoId |
|
maxResults |
|
moderationStatus |
Option |
Value |
heldForReview |
heldForReview |
likelySpam |
likelySpam |
published |
published |
|
order |
Option |
Value |
time |
time |
relevance |
relevance |
|
searchTerms |
|
textFormat |
Option |
Value |
html |
html |
plainText |
plainText |
|
[
Read more...]
Parameter |
Description |
part |
Option |
Value |
auditDetails |
auditDetails |
brandingSettings |
brandingSettings |
contentDetails |
contentDetails |
contentOwnerDetails |
contentOwnerDetails |
id |
id |
localizations |
localizations |
snippet |
snippet |
statistics |
statistics |
status |
status |
topicDetails |
topicDetails |
|
mine |
Option |
Value |
true |
true |
false |
false |
|
forUsername |
|
id |
|
managedByMe |
Option |
Value |
true |
true |
false |
false |
|
hl |
|
maxResults |
|
onBehalfOfContentOwner |
|
[
Read more...]
Parameter |
Description |
forMine (search in my account only) |
Option |
Value |
true |
true |
false |
false |
|
query (search term) |
|
channelId |
|
channelType |
Option |
Value |
any |
any |
show |
show |
|
eventType |
Option |
Value |
completed |
completed |
live |
live |
upcoming |
upcoming |
|
location |
|
locationRadius |
|
maxResults |
|
onehalfOfContentOwner |
|
order |
Option |
Value |
date |
date |
rating |
rating |
relevance |
relevance |
title |
title |
videoCount |
videoCount |
viewCount |
viewCount |
|
publishedAfter |
|
publishedBefore |
|
regionCode |
|
relevanceLanguage |
|
safeSearch |
Option |
Value |
moderate |
moderate |
none |
none |
strict |
strict |
|
topicId |
|
videoCaption |
Option |
Value |
any |
any |
closedCaption |
closedCaption |
none |
none |
|
videoCategoryId |
|
videoDefinition |
Option |
Value |
any |
any |
high |
high |
standard |
standard |
|
videoDimension |
Option |
Value |
2d |
2d |
3d |
3d |
any |
any |
|
videoDuration |
Option |
Value |
any |
any |
long |
long |
medium |
medium |
short |
short |
|
videoEmbeddable |
Option |
Value |
any |
any |
true |
true |
|
videoLicense |
Option |
Value |
any |
any |
creativeCommon |
creativeCommon |
youtube |
youtube |
|
videoSyndicated |
Option |
Value |
any |
any |
true |
true |
|
videoType |
Option |
Value |
any |
any |
episode |
episode |
movie |
movie |
|
forContentOwner |
Option |
Value |
true |
true |
false |
false |
|
forDeveloper |
Option |
Value |
true |
true |
false |
false |
|
relatedToVideoId |
|
[
Read more...]
Parameter |
Description |
part |
|
forMine (search in my account only) |
If set to 'true', parameter 'type' must be set to 'video'.
Option |
Value |
true |
true |
false |
false |
|
query (search term) |
|
type |
Must be set to 'video' if 'forMine' is set to 'true'.
Option |
Value |
channel |
channel |
playlist |
playlist |
video |
video |
|
channelId |
|
channelType |
Option |
Value |
any |
any |
show |
show |
|
eventType |
Option |
Value |
completed |
completed |
live |
live |
upcoming |
upcoming |
|
location |
|
locationRadius |
|
maxResults |
|
onehalfOfContentOwner |
|
order |
Option |
Value |
date |
date |
rating |
rating |
relevance |
relevance |
title |
title |
videoCount |
videoCount |
viewCount |
viewCount |
|
publishedAfter |
|
publishedBefore |
|
regionCode |
|
relevanceLanguage |
|
safeSearch |
Option |
Value |
moderate |
moderate |
none |
none |
strict |
strict |
|
topicId |
|
videoCaption |
Option |
Value |
any |
any |
closedCaption |
closedCaption |
none |
none |
|
videoCategoryId |
|
videoDefinition |
Option |
Value |
any |
any |
high |
high |
standard |
standard |
|
videoDimension |
Option |
Value |
2d |
2d |
3d |
3d |
any |
any |
|
videoDuration |
Option |
Value |
any |
any |
long |
long |
medium |
medium |
short |
short |
|
videoEmbeddable |
Option |
Value |
any |
any |
true |
true |
|
videoLicense |
Option |
Value |
any |
any |
creativeCommon |
creativeCommon |
youtube |
youtube |
|
videoSyndicated |
Option |
Value |
any |
any |
true |
true |
|
videoType |
Option |
Value |
any |
any |
episode |
episode |
movie |
movie |
|
forContentOwner |
Option |
Value |
true |
true |
false |
false |
|
forDeveloper |
Option |
Value |
true |
true |
false |
false |
|
relatedToVideoId |
|
[
Read more...]
Parameter |
Description |
ids |
Option |
Value |
Filter1 |
channel==MINE |
Filter2 |
channel==ENTER_CHANNEL_ID |
Filter3 |
contentOwner==ENTER_OWNER_NAME |
|
metrics |
Option |
Value |
adEarnings |
adEarnings |
annotationImpressions |
annotationImpressions |
annotationClickableImpressions |
annotationClickableImpressions |
annotationClicks |
annotationClicks |
annotationClickThroughRate |
annotationClickThroughRate |
annotationClosableImpressions |
annotationClosableImpressions |
annotationCloses |
annotationCloses |
annotationCloseRate |
annotationCloseRate |
audienceWatchRatio |
audienceWatchRatio |
averageViewDuration |
averageViewDuration |
averageViewPercentage |
averageViewPercentage |
cardClickRate |
cardClickRate |
cardClicks |
cardClicks |
cardImpressions |
cardImpressions |
cardTeaserClickRate |
cardTeaserClickRate |
cardTeaserClicks |
cardTeaserClicks |
cardTeaserImpressions |
cardTeaserImpressions |
comments |
comments |
dislikes |
dislikes |
earnings |
earnings |
estimatedMinutesWatched |
estimatedMinutesWatched |
estimatedPartnerAdSenseRevenue |
estimatedPartnerAdSenseRevenue |
estimatedPartnerDoubleClickRevenue |
estimatedPartnerDoubleClickRevenue |
grossRevenue |
grossRevenue |
impressionBasedCpm |
impressionBasedCpm |
impressions |
impressions |
likes |
likes |
monetizedPlaybacks |
monetizedPlaybacks |
playbackBasedCpm |
playbackBasedCpm |
playlistStarts |
playlistStarts |
savesAdded |
savesAdded |
savesRemoved |
savesRemoved |
shares |
shares |
subscribersGained |
subscribersGained |
subscribersLost |
subscribersLost |
videosAddedToPlaylists |
videosAddedToPlaylists |
videosRemovedFromPlaylists |
videosRemovedFromPlaylists |
viewerPercentage |
viewerPercentage |
views |
views |
|
Start Date (yyyy-MM-dd) |
The date for which to retrieve the report in YYYYMMDD format. Supported functions now|today|yesterday|weekstart|weekend|monthstart|monthend|yearstart|yearend and supported intervals for add/subtract are ms|s|sec|min|h|hour|y|year|d|day|m|month|y|year. Example monthstart-3d (subtract 3days from month start)
Option |
Value |
today |
today |
yesterday |
yesterday |
monthstart |
monthstart |
monthend |
monthend |
yearstart |
yearstart |
yearend |
yearend |
weekstart |
weekstart |
weekend |
weekend |
yearstart-1y |
yearstart-1y |
yearend-1y |
yearend-1y |
monthstart-1d |
monthstart-1d |
monthend+1d |
monthend+1d |
|
End Date (yyyy-MM-dd) |
The date for which to retrieve the report in YYYYMMDD format. Supported functions now|today|yesterday|weekstart|weekend|monthstart|monthend|yearstart|yearend and supported intervals for add/subtract are ms|s|sec|min|h|hour|y|year|d|day|m|month|y|year. Example monthstart-3d (subtract 3days from month start)
Option |
Value |
today |
today |
yesterday |
yesterday |
monthstart |
monthstart |
monthend |
monthend |
yearstart |
yearstart |
yearend |
yearend |
weekstart |
weekstart |
weekend |
weekend |
yearstart-1y |
yearstart-1y |
yearend-1y |
yearend-1y |
monthstart-1d |
monthstart-1d |
monthend+1d |
monthend+1d |
|
currency |
|
dimensions |
Option |
Value |
adType |
adType |
ageGroup |
ageGroup |
asset |
asset |
audienceType |
audienceType |
channel |
channel |
claimedStatus |
claimedStatus |
contentOwner |
contentOwner |
country |
country |
day |
day |
deviceType |
deviceType |
elapsedVideoTimeRatio |
elapsedVideoTimeRatio |
gender |
gender |
insightPlaybackLocationDetail |
insightPlaybackLocationDetail |
insightPlaybackLocationType |
insightPlaybackLocationType |
insightTrafficSourceDetail |
insightTrafficSourceDetail |
insightTrafficSourceType |
insightTrafficSourceType |
liveOrOnDemand |
liveOrOnDemand |
operatingSystem |
operatingSystem |
playlist |
playlist |
province |
province |
sharingService |
sharingService |
subscribedStatus |
subscribedStatus |
subtitleLanguage |
subtitleLanguage |
uploaderType |
uploaderType |
video |
video |
|
filters |
A list of filters that should be applied when retrieving YouTube Analytics data. The documentation for channel reports and content owner reports identifies the dimensions that can be used to filter each report, and the Dimensions document defines those dimensions.
Option |
Value |
Example1 |
country==IT |
Example2 |
video==dMH0bHeiRNg |
Example3 |
gender==FEMALE |
Example4 |
dimension==some_value |
|
includeHistoricalChannelData |
Option |
Value |
true |
true |
false |
false |
|
maxResults |
|
sort |
A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The - prefix causes descending sort order.
Option |
Value |
adType |
adType |
ageGroup |
ageGroup |
asset |
asset |
audienceType |
audienceType |
channel |
channel |
claimedStatus |
claimedStatus |
contentOwner |
contentOwner |
country |
country |
day |
day |
deviceType |
deviceType |
elapsedVideoTimeRatio |
elapsedVideoTimeRatio |
gender |
gender |
insightPlaybackLocationDetail |
insightPlaybackLocationDetail |
insightPlaybackLocationType |
insightPlaybackLocationType |
insightTrafficSourceDetail |
insightTrafficSourceDetail |
insightTrafficSourceType |
insightTrafficSourceType |
liveOrOnDemand |
liveOrOnDemand |
operatingSystem |
operatingSystem |
playlist |
playlist |
province |
province |
sharingService |
sharingService |
subscribedStatus |
subscribedStatus |
subtitleLanguage |
subtitleLanguage |
uploaderType |
uploaderType |
video |
video |
|
This is generic endpoint. Use this endpoint when some actions are not implemented by connector. Just enter partial URL (Required), Body, Method, Header etc. Most parameters are optional except URL. [
Read more...]
Parameter |
Description |
Url |
API URL goes here. You can enter full URL or Partial URL relative to Base URL. If it is full URL then domain name must be part of ServiceURL or part of TrustedDomains
|
Body |
Request Body content goes here
|
IsMultiPart |
Set this option if you want to upload file(s) (i.e. POST RAW file data) or send data using Multi-Part encoding method (i.e. Content-Type: multipart/form-data). Multi-Part request allows you to mix key/value and upload files in same request. On the other hand raw upload allows only single file upload (without any key/value)
==== Raw Upload (Content-Type: application/octet-stream) =====
To upload single file in raw mode check this option and specify full file path starting with @ sign in the Body (e.g. @c:\data\myfile.zip )
==== Form-Data / Multipart Upload (Content-Type: multipart/form-data) =====
To treat your Request data as multi part fields you must specify key/value pairs separated by new lines into RequestData field (i.e. Body). Each key value pair is entered on new-line and key/value are separated using equal sign (=). Preceding and trailing spaces are ignored also blank lines are ignored.
If field value has some any special character(s) then use escape sequence (e.g. For NewLine: \r\n, For Tab: \t, For at (@): \@). When value of any field starts with at sign (@) its automatically treated as File you want to upload. By default file content type is determined based on extension however you can supply content type manually for any field using this way [ YourFileFieldName.Content-Type=some-content-type ]. By default File Upload Field always includes Content-Type in the request (non file fields do not have content-type by default unless you supply manually). For some reason if you dont want to use Content-Type header in your request then supply blank Content-Type to exclude this header altogather [e.g. SomeFieldName.Content-Type= ]. In below example we have supplied Content-Type for file2 and SomeField1, all other fields are using default content-type.
See below Example of uploading multiple files along with additional fields. If some API requires you to pass Content-Type: multipart/form-data rather than multipart/form-data then manually set Request Header => Content-Type: multipart/mixed (it must starts with multipart/ else will be ignored).
file1=@c:\data\Myfile1.txt
file2=@c:\data\Myfile2.json
file2.Content-Type=application/json
SomeField1=aaaaaaa
SomeField1.Content-Type=text/plain
SomeField2=12345
SomeFieldWithNewLineAndTab=This is line1\r\nThis is line2\r\nThis is \ttab \ttab \ttab
SomeFieldStartingWithAtSign=\@MyTwitterHandle
|
Filter |
Enter filter to extract array from response. Example: $.rows[*] --OR-- $.customers[*].orders[*]. Check your response document and find out hierarchy you like to extract
|
Headers |
Headers for Request. To enter multiple headers use double pipe or new line after each {header-name}:{value} pair
|
Conclusion
In this article we discussed how to connect to YouTube in SSIS and integrate data without any coding. Click here to Download YouTube Connector for SSIS and try yourself see how easy it is. If you still have any question(s) then ask here or simply click on live chat icon below and ask our expert (see bottom-right corner of this page).
Download YouTube Connector for SSIS
Documentation
More integrations
Other application integration scenarios for YouTube
Other connectors for SSIS
Download YouTube Connector for SSIS
Documentation
Common Searches:
How to connect YouTube in SSIS?
How to get YouTube data in SSIS?
How to read YouTube data in SSIS?
How to load YouTube data in SSIS?
How to import YouTube data in SSIS?
How to pull YouTube data in SSIS?
How to push data to YouTube in SSIS?
How to write data to YouTube in SSIS?
How to POST data to YouTube in SSIS?
Call YouTube API in SSIS
Consume YouTube API in SSIS
YouTube SSIS Automate
YouTube SSIS Integration
Integration YouTube in SSIS
Consume real-time YouTube data in SSIS
Consume real-time YouTube API data in SSIS
YouTube ODBC Driver | ODBC Driver for YouTube | ODBC YouTube Driver | SSIS YouTube Source | SSIS YouTube Destination
Connect YouTube in SSIS
Load YouTube in SSIS
Load YouTube data in SSIS
Read YouTube data in SSIS
YouTube API Call in SSIS