{"id":6894,"date":"2019-05-06T18:06:07","date_gmt":"2019-05-06T18:06:07","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=6894"},"modified":"2025-03-19T13:08:56","modified_gmt":"2025-03-19T13:08:56","slug":"read-youtube-api-data-ssis-videos-channels-playlists","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/","title":{"rendered":"How to read YouTube API data in SSIS (Videos, Channels, Playlists)"},"content":{"rendered":"<h2>Introduction<\/h2>\n<div class=\"su-note\"  style=\"border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFF8B7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><strong>UPDATE:<\/strong>\u00a0ZappySys has released a brand new <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/youtube-connector\/\">API Connector for YouTube<\/a> which makes it much simpler to\u00a0<strong>Read\/Write YouTube Data in SSIS<\/strong> compared to the steps listed in this article. You can still use steps from this article but if you are new to API or want to avoid learning curve with API then use newer approach.<\/p>\n<p>Please visit <a href=\"https:\/\/zappysys.com\/api\/integration-hub\/\">this page to see all<\/a>\u00a0Pre-Configured ready to use API connectors which you can use in <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-api-source\/\">SSIS API Source<\/a> \/ <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-api-destination\/\">SSIS API Destination<\/a> OR\u00a0<a href=\"https:\/\/zappysys.com\/products\/odbc-powerpack\/odbc-api-driver\/\">API ODBC Driver<\/a> (for non-SSIS Apps such as Excel, Power BI, Informatica).<\/p>\n<\/div><\/div>\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-6904 alignleft\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png\" alt=\"\" width=\"100\" height=\"100\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png 400w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo-150x150.png 150w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo-300x300.png 300w\" sizes=\"(max-width: 100px) 100vw, 100px\" \/><\/a>In last <a href=\"https:\/\/zappysys.com\/blog\/category\/google-api\/\">few articles<\/a> we saw how to read data from various Google Services. In this article we will see how to read YouTube API data in SSIS. This blog mainly focus on SSIS approach but steps mentioned to call Google APIs can be useful for any developer regardless which programming language or toolset you use.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"content_block\" id=\"custom_post_widget-2523\"><h2><span id=\"Prerequisites\">Prerequisites<\/span><\/h2>\r\nBefore we perform the steps listed in this article, you will need to make sure the following prerequisites are met:\r\n<ol style=\"margin-left: 1.5em;\">\r\n \t<li><abbr title=\"SQL Server Integration Services\">SSIS<\/abbr> designer installed.\u00a0Sometimes it is referred to as <abbr title=\"Business Intelligence Development Studio\">BIDS<\/abbr> or <abbr title=\"SQL Server Data Tools\">SSDT<\/abbr> (<a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/ssdt\/download-sql-server-data-tools-ssdt\" target=\"_blank\" rel=\"noopener\">download it from the Microsoft site<\/a>).<\/li>\r\n \t<li>Basic knowledge of SSIS package\u00a0development using\u00a0<em>Microsoft SQL Server Integration Services<\/em>.<\/li>\r\n \t<li>Make sure\u00a0<span style=\"text-decoration: underline;\"><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys SSIS PowerPack<\/a><\/span>\u00a0is installed (<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/download\/\" target=\"_blank\" rel=\"noopener\">download it<\/a>, if you haven't already).<\/li>\r\n \t<li>(<em>Optional step<\/em>)<em>.<\/em>\u00a0<a href=\"https:\/\/zappysys.zendesk.com\/hc\/en-us\/articles\/360035974593\" target=\"_blank\" rel=\"noopener\">Read this article<\/a>, if you are planning to deploy packages to a server and schedule their execution later.<\/li>\r\n<\/ol><\/div>\n<h2>Connect to YouTube API in SSIS (OAuth Connection)<\/h2>\n<p>Very first step to call any Google API is to create an API project for Google Service and then enable APIs you like to call in Console. In our case we need to enable YouTube API.<\/p>\n<p><a href=\"https:\/\/zappysys.com\/blog\/register-google-oauth-application-get-clientid-clientsecret\/\" target=\"_blank\" rel=\"noopener\">Check this article<\/a>\u00a0to learn how to create API Project and obtain Client ID and Client Secret to connect to YouTube API. For ease of use use Default Application provided by ZappySys but we still recommend using your own Custom Application\u00a0 on OAuth Connection.<\/p>\n<p>Before we try our first YouTube API example, we recommend you to get familiar with <a href=\"https:\/\/developers.google.com\/youtube\/v3\/docs\/\" target=\"_blank\" rel=\"noopener\">YouTube API here<\/a>.\u00a0Once you done with above steps you can perform the following steps to call YouTube API in SSIS.<\/p>\n<ol>\n<li>Open existing SSIS Project or Create new One in Visual Studio (i.e. SSDT)<\/li>\n<li>Create a new SSIS Package. Right click in the Connection Manager Panel and click <strong>&#8220;New Connection&#8230;&#8221;<\/strong>.<br \/>\n<img decoding=\"async\" class=\"figureimage\" title=\"SSIS Create New Connection\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/ssis-new-connection.png\" alt=\"SSIS Create New Connection\" \/><\/li>\n<li>When Dialog box opens select <strong>ZS-OAUTH<\/strong> connection type.\n<div id=\"attachment_4724\" style=\"width: 681px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4724\" class=\"size-full wp-image-4724\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager.png\" alt=\"SSIS Connection Maangers List: Select O-AUTH Connection Manager\" width=\"671\" height=\"549\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager.png 671w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/08\/ssis-connection-managers-list-select-zs-oauth-connection-manager-300x245.png 300w\" sizes=\"(max-width: 671px) 100vw, 671px\" \/><\/a><p id=\"caption-attachment-4724\" class=\"wp-caption-text\">SSIS Connection Managers List: Select O-AUTH Connection Manager<\/p><\/div><\/li>\n<li>Once OAuth UI opens, Configure Google connection like below.\n<ol>\n<li>Select Service Type as <strong>Google<\/strong><\/li>\n<li>You can select Default App for ease of use or Select Custom Application (Enter Client Id and Secret Obtained using <a href=\"https:\/\/zappysys.com\/blog\/register-google-oauth-application-get-clientid-clientsecret\/\" target=\"_blank\" rel=\"noopener\">these steps<\/a> )<\/li>\n<li>In the Scope Enter below &#8211; One scope per line for calling correct YouTube API. Refer to <a href=\"https:\/\/developers.google.com\/youtube\/v3\/docs\/\" target=\"_blank\" rel=\"noopener\">YouTube API documentation<\/a> incase you need extra permissions. For read only operation we just need below scopes. Last scope is only needed if you need to use <a href=\"https:\/\/developers.google.com\/youtube\/analytics\/reference\/reports\/query\" target=\"_blank\" rel=\"noopener\">YouTube Analytics Reports<\/a>\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.googleapis.com\/auth\/youtube\r\nhttps:\/\/www.googleapis.com\/auth\/youtube.readonly\r\nhttps:\/\/www.googleapis.com\/auth\/yt-analytics.readonly\r\n<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>Click Generate Token to obtain Refresh Token (You may see Login Prompt, and then Grant Permission Confirmation Screen)\n<div id=\"attachment_6855\" style=\"width: 930px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/04\/ssis-oauth-connection-manager-generate-access-token.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6855\" class=\"size-full wp-image-6855\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/04\/ssis-oauth-connection-manager-generate-access-token.png\" alt=\"Connect to Google API using OAuth 2.0 (Youtube API Example)\" width=\"920\" height=\"1032\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/04\/ssis-oauth-connection-manager-generate-access-token.png 920w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/04\/ssis-oauth-connection-manager-generate-access-token-267x300.png 267w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/04\/ssis-oauth-connection-manager-generate-access-token-768x861.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2016\/04\/ssis-oauth-connection-manager-generate-access-token-913x1024.png 913w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/a><p id=\"caption-attachment-6855\" class=\"wp-caption-text\">Connect to Google API using OAuth 2.0 (YouTube API Example)<\/p><\/div><\/li>\n<li>Click OK to save UI.<\/li>\n<\/ol>\n<h2>Call YouTube REST API Example<\/h2>\n<p>Now lets look at how to call YouTube API <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-rest-api-web-service-task\/\" target=\"_blank\" rel=\"noopener\">REST API Task<\/a>\u00a0this task is more suitable to call GET, POST, DELETE, PUT requests without parsing data in Rows and Columns. If you need to parse data and load into Database table then see next section (Use JSON Source)<\/p>\n<ol>\n<li>From SSIS Toolbox look for items starting with \u201cZS\u201d. Drag and Drop\u00a0<b>[ZS Rest API Task]<\/b>\u00a0to Designer Surface.<br \/>\n<img decoding=\"async\" class=\"figureimage\" title=\"SSIS REST Api Web Service Task - Drag and Drop\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/rest-api-task\/ssis-rest-api-web-service-task-drag.png\" alt=\"SSIS REST Api Task - Drag and Drop\" \/><\/li>\n<li>Double click it to configure like below.\n<ol>\n<li>Select URL From Connection option<\/li>\n<li>Select OAuth connection created in previous section.<\/li>\n<li>Enter URL like below (For example <a href=\"https:\/\/developers.google.com\/youtube\/v3\/docs\/playlists\/list\" target=\"_blank\" rel=\"noopener\">get all playlists<\/a>). Replace xxxxxxxxxxx with your own channel ID (Its usually found in URL when you visit Youtube Channel Homepage)\n<pre class=\"lang:default highlight:0 decode:true \">https:\/\/www.googleapis.com\/youtube\/v3\/playlists?part=snippet,id&amp;channelId=xxxxxxxxxxxxx<\/pre>\n<\/li>\n<li>Click Test Request Button<\/li>\n<\/ol>\n<\/li>\n<li>Here is how it looks like\n<div id=\"attachment_6896\" style=\"width: 854px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-call-youtube-api-with-dynamic-url.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6896\" class=\"size-full wp-image-6896\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-call-youtube-api-with-dynamic-url.png\" alt=\"Call Youtube API in SSIS Example (Dynamic URL)\" width=\"844\" height=\"640\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-call-youtube-api-with-dynamic-url.png 844w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-call-youtube-api-with-dynamic-url-300x227.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-call-youtube-api-with-dynamic-url-768x582.png 768w\" sizes=\"(max-width: 844px) 100vw, 844px\" \/><\/a><p id=\"caption-attachment-6896\" class=\"wp-caption-text\">Call Youtube API in SSIS Example (Dynamic URL)<\/p><\/div><\/li>\n<\/ol>\n<p>That&#8217;s it we have successfully configured Connection for YouTube API in SSIS. In the next section we will see how to use this connection and read various data from YouTube API.<\/p>\n<h2>Read YouTube Playlists in SSIS<\/h2>\n<p>Once we done creating OAuth Connection Manager we can move forward to read YouTube data inside Data Flow.<\/p>\n<p>Configure SSIS JSON \/ REST API Source<\/p>\n<ol>\n<li>Now, Drag and Drop SSIS\u00a0<b>Data Flow Task<\/b>\u00a0from SSIS Toolbox.<br \/>\n<img decoding=\"async\" class=\"figureimage\" title=\"SSIS Data Flow Task - Drag and Drop\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/drag-and-drop-data-flow-task.png\" alt=\"SSIS Data Flow Task - Drag and Drop\" \/><\/li>\n<li>Double click on the Data Flow task to see Data Flow designer surface.<\/li>\n<li>From the SSIS toolbox drag and drop JSON Source on the dataflow designer surface.<br \/>\n<img decoding=\"async\" class=\"figureimage\" title=\"SSIS JSON Source - Drag and Drop\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/json-source\/ssis-json-source-adapter-drag.png\" alt=\"SSIS JSON Source - Drag and Drop\" \/><\/li>\n<li>Double click JSON Source and enter URL as below (Use variable or Hardcode Channel Id). maxResults controls how many rows you want to get in each response. Rep\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.googleapis.com\/youtube\/v3\/playlists?part=snippet,id&amp;maxResults=50&amp;channelId={{User::varChannelId}}\r\n--OR--\u00a0\r\nhttps:\/\/www.googleapis.com\/youtube\/v3\/playlists?part=snippet,id&amp;maxResults=50&amp;channelId=xxxxxxxxxxxxxxxxxxxxxx<\/pre>\n<\/li>\n<li>Check Use Credentials and select existing OAuth connection or Create New one<\/li>\n<li>Select Array Filter (Items node) or type <span class=\"lang:default highlight:0 decode:true crayon-inline \">$.items[*]<\/span>\u00a0\u00a0as below.\n<div id=\"attachment_6900\" style=\"width: 857px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-get-playlists.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6900\" class=\"size-full wp-image-6900\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-get-playlists.png\" alt=\"Get Playlists for YouTube Channel\" width=\"847\" height=\"738\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-get-playlists.png 847w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-get-playlists-300x261.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-get-playlists-768x669.png 768w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/a><p id=\"caption-attachment-6900\" class=\"wp-caption-text\">Get Playlists for YouTube Channel<\/p><\/div><\/li>\n<li>That&#8217;s it you can now Click <strong>Preview<\/strong> to see sample data. In the next section we will configure Pagination to read all records if you have more than 100 rows.<\/li>\n<\/ol>\n<h3>Configure YouTube REST API Pagination<\/h3>\n<p>Most REST APIs dont return data in one big response. So you have to make sure you implement looping \/ pagination to read more records. Luckily ZappySys supports <a href=\"https:\/\/zappysys.com\/blog\/ssis-rest-api-looping-until-no-more-pages-found\/\">many different Pagination Settings<\/a>. Here is how to configure YouTube REST API Pagination.<\/p>\n<ol>\n<li>Go to Pagination Tab found on JSON Source and select following 3 settings<\/li>\n<li>Select Pagination Mode as <span class=\"lang:default highlight:0 decode:true crayon-inline \">Response Attribute Mode<\/span><\/li>\n<li>Enter Next Link as <span class=\"lang:default highlight:0 decode:true crayon-inline \">$.nextPageToken<\/span><\/li>\n<li>Enter Suffix for Next URL as <span class=\"lang:default highlight:0 decode:true crayon-inline \">&amp;pageToken=&lt;%nextlink%&gt;<\/span><\/li>\n<\/ol>\n<div id=\"attachment_6899\" style=\"width: 555px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-rest-api-pagination.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6899\" class=\"size-full wp-image-6899\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-rest-api-pagination.png\" alt=\"YouTube REST API Pagination Settings\" width=\"545\" height=\"246\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-rest-api-pagination.png 545w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-rest-api-pagination-300x135.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><p id=\"caption-attachment-6899\" class=\"wp-caption-text\">YouTube REST API Pagination Settings<\/p><\/div>\n<h2>Read YouTube Playlist Videos in SSIS<\/h2>\n<p>So in previous section we saw simple API call to read all playlists from YouTube. Now lets see how to get information about <a href=\"https:\/\/developers.google.com\/youtube\/v3\/docs\/playlistItems\/list\" target=\"_blank\" rel=\"noopener\">Playlist Videos<\/a>.<\/p>\n<p>For that everything should remain same as previous section except change URL as below. Where\u00a0xxxxxxxxxxxxxxxxxxxxx is your Playlist ID obtained from Previous Call.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.googleapis.com\/youtube\/v3\/playlistItems?part=snippet,id&amp;maxResults=50&amp;playlistId=xxxxxxxxxxxxxxxxxxxxx<\/pre>\n<h2>Get all Videos for YouTube Channel<\/h2>\n<p>If you want to get all video name and ID for specific channel then use below URL. Click here to <a href=\"https:\/\/developers.google.com\/youtube\/v3\/docs\/search\/list\" target=\"_blank\" rel=\"noopener\">read more<\/a>. Replace xxxxxxxxxxxxxxxxxxx with your Channel ID.<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.googleapis.com\/youtube\/v3\/search?channelId=xxxxxxxxxxxxxxxxxxx&amp;part=snippet,id&amp;order=date&amp;maxResults=50<\/pre>\n<p>&nbsp;<\/p>\n<h2>Read YouTube Video Views, Likes, Dislikes (Extended Videos)<\/h2>\n<p>Another common request from YouTube API is get Video Information such as Views, Likes, Dislikes, Comment Count etc. For that you can <a href=\"https:\/\/developers.google.com\/youtube\/v3\/docs\/videos\/list\" target=\"_blank\" rel=\"noopener\">use this api<\/a>\u00a0. However the issue is this endpoint requires you to pass Comma separated Ids of Video. You can only pass 25 Ids in one requests so if you have 200 videos for which you need to get information then you have to make 8 requests (25 Ids in each Request). In below screenshot you can see we used <a href=\"https:\/\/zappysys.com\/blog\/how-to-use-fiddler-to-analyze-http-web-requests\/\" target=\"_blank\" rel=\"noopener\">Fiddler to debug web requests<\/a>.<\/p>\n<p>So here is how high level process to fetch extended information for all Videos in your channel. Full <a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/Google_Youtube_API_Demo.zip\">SSIS Package is attached here (SSIS 2012 Format)<\/a>.<\/p>\n<ol>\n<li>Get all videos for your channel by calling (Assuming you will paginate in below request.\n<pre class=\"lang:default decode:true \">https:\/\/www.googleapis.com\/youtube\/v3\/search?channelId=xxxxxxxxxxxxxxxxxxx&amp;part=snippet,id&amp;order=date&amp;maxResults=50<\/pre>\n<\/li>\n<li>Build Video Id groups for 25 Ids from above result and submit requests. For example if above request returns 200 Videos then your request to fetch extended information may look like below.\n<pre class=\"lang:default highlight:0 decode:true\">https:\/\/www.googleapis.com\/youtube\/v3\/videos?part=snippet,contentDetails,statistics&amp;id=ID1,ID2,ID3........ID25\r\nhttps:\/\/www.googleapis.com\/youtube\/v3\/videos?part=snippet,contentDetails,statistics&id=ID26,ID27,ID28........ID50\r\n........\r\n........\r\nhttps:\/\/www.googleapis.com\/youtube\/v3\/videos?part=snippet,contentDetails,statistics&amp;id=ID176,ID177,ID178........ID200<\/pre>\n<\/li>\n<li>Parse response coming from each Request Above&#8230;. Each Response will give you details about 25 videos you requesting.<\/li>\n<\/ol>\n<p>Here is the flow of our complete data flow to read extended information for all videos. You can read extended information one by one too but it wont be good idea if you have many videos.<\/p>\n<p>We have used Following Components to achieve Bulk Mode<\/p>\n<ul>\n<li><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-source\/\" target=\"_blank\" rel=\"noopener\">JSON Source (REST API Source)<\/a><\/li>\n<li><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-csv-parser-transform\/\" target=\"_blank\" rel=\"noopener\">CSV Parser Transform<\/a><\/li>\n<li><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-web-api-destination-connector\/\" target=\"_blank\" rel=\"noopener\">Web API Destination<\/a><\/li>\n<li><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-parser-transform\/\" target=\"_blank\" rel=\"noopener\">JSON Parser Transform<\/a><\/li>\n<\/ul>\n<div id=\"attachment_6901\" style=\"width: 1306px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-get-youtube-video-view-count-likes-dislikes.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6901\" class=\"size-full wp-image-6901\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-get-youtube-video-view-count-likes-dislikes.png\" alt=\"Get YouTube Video View Clicks, Likes, Dislikes (Bulk Mode for all videos)\" width=\"1296\" height=\"823\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-get-youtube-video-view-count-likes-dislikes.png 1296w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-get-youtube-video-view-count-likes-dislikes-300x191.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-get-youtube-video-view-count-likes-dislikes-768x488.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-get-youtube-video-view-count-likes-dislikes-1024x650.png 1024w\" sizes=\"(max-width: 1296px) 100vw, 1296px\" \/><\/a><p id=\"caption-attachment-6901\" class=\"wp-caption-text\">Get YouTube Video View Clicks, Likes, Dislikes (Bulk Mode for all videos)<\/p><\/div>\n<h2>Read data from YouTube Analytics \/ Reporting API (Metrics, Dimensions Report)<\/h2>\n<p>So far we have seen basic YouTube APIs to extract your Channel information. However there is another very powerful API endpoint to query custom reports from YouTube. Check <a href=\"https:\/\/developers.google.com\/youtube\/analytics\/reference\/reports\/query\" target=\"_blank\" rel=\"noopener\">this YouTube Analytics API endpoint<\/a>. In this section we will learn how to extract useful information from YouTube using Analytics API.<\/p>\n<h3>Step-By-Step<\/h3>\n<p>Let&#8217;s look at an example to read total views,\u00a0estimated watch time, average view duration and some other metrics by date for channel you have access.<\/p>\n<ol>\n<li>Go to Data Flow, Drag ZS JSON Source from SSIS Toolbox<\/li>\n<li>Double click to configure.<\/li>\n<li>Check Use Credentials. Select OAuth connection we created in previous section.<\/li>\n<li>In the URL field, Enter Below Sample URL. Change Parameters as per your need or leave it default.<br \/>\nFor example:<br \/>\n<strong>ids=channel==MINE<\/strong>\u00a0 \u00a0(where MINE can be replaced by other channel id or keep it as MINE to get data for your own channel)<br \/>\n<strong>metrics<\/strong> (can be changed from any <a href=\"https:\/\/developers.google.com\/youtube\/analytics\/metrics\" target=\"_blank\" rel=\"noopener\">valid list here<\/a>)<br \/>\n<strong>dimensions<\/strong> (can be changed to any valid <a href=\"https:\/\/developers.google.com\/youtube\/analytics\/dimensions\" target=\"_blank\" rel=\"noopener\">list from here<\/a>)<br \/>\n<strong>startDate<\/strong> (Must be\u00a0YYYY-MM-DD format)<br \/>\n<strong>endDate<\/strong> (Must be YYYY-MM-DD format)<\/p>\n<pre class=\"lang:default highlight:0 decode:true \">https:\/\/youtubeanalytics.googleapis.com\/v2\/reports?ids=channel==MINE&amp;metrics=views,estimatedMinutesWatched,averageViewDuration,averageViewPercentage,subscribersGained&amp;dimensions=day&amp;startDate=2019-03-01&amp;endDate=2019-04-01<\/pre>\n<\/li>\n<li>Change Filter to <span class=\"lang:default highlight:0 decode:true  crayon-inline \">$.rows[*]<\/span><\/li>\n<li>Go to <strong>2D Array Transform<\/strong> tab.<br \/>\nSelect Method as <span class=\"lang:default highlight:0 decode:true  crayon-inline \">Simple 2-dimensional array<\/span><br \/>\nEnterColumn Filter as\u00a0 <span class=\"lang:default highlight:0 decode:true  crayon-inline\">$.columnHeaders[*].name<\/span><\/p>\n<div id=\"attachment_6909\" style=\"width: 906px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/advanced-transform-youtube-analytics-api.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6909\" class=\"size-full wp-image-6909\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/advanced-transform-youtube-analytics-api.png\" alt=\"YouTube Analytics API Advanced Transformation\" width=\"896\" height=\"270\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/advanced-transform-youtube-analytics-api.png 896w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/advanced-transform-youtube-analytics-api-300x90.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/advanced-transform-youtube-analytics-api-768x231.png 768w\" sizes=\"(max-width: 896px) 100vw, 896px\" \/><\/a><p id=\"caption-attachment-6909\" class=\"wp-caption-text\">YouTube Analytics API Advanced Transformation<\/p><\/div><\/li>\n<li>That&#8217;s it now Preview your data. See below over all steps.\n<div id=\"attachment_6910\" style=\"width: 978px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-analytics-report-api-dimensions-metrics.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6910\" class=\"size-full wp-image-6910\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-analytics-report-api-dimensions-metrics.png\" alt=\"Read data from YouTube Analytics API (Custom Reports using Dimensions, Metrics Query)\" width=\"968\" height=\"741\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-analytics-report-api-dimensions-metrics.png 968w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-analytics-report-api-dimensions-metrics-300x230.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/ssis-youtube-analytics-report-api-dimensions-metrics-768x588.png 768w\" sizes=\"(max-width: 968px) 100vw, 968px\" \/><\/a><p id=\"caption-attachment-6910\" class=\"wp-caption-text\">Read data from YouTube Analytics API (Custom Reports using Dimensions, Metrics Query)<\/p><\/div><\/li>\n<\/ol>\n<h3>Build YouTube Analytics \/ Reporting API Query (API Playground)<\/h3>\n<p>With Analytics API You can extract many interesting data. You can use Test Tool found <a href=\"https:\/\/developers.google.com\/youtube\/analytics\/reference\/reports\/query\" target=\"_blank\" rel=\"noopener\">on this page to build<\/a> some interesting queries. Scroll to <strong>Common Use Cases<\/strong> section on that link. On the right side you can select Credentials Type as OAuth and click Execute.<\/p>\n<p><a href=\"https:\/\/developers.google.com\/youtube\/analytics\/reference\/reports\/query\" target=\"_blank\" rel=\"noopener\">https:\/\/developers.google.com\/youtube\/analytics\/reference\/reports\/query<\/a><\/p>\n<div id=\"attachment_6911\" style=\"width: 944px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-analytics-api-explorer-test-query-builder.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6911\" class=\"size-full wp-image-6911\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-analytics-api-explorer-test-query-builder.jpg\" alt=\"YouTube Analytics \/ Reporting API Explorer (Testing API Calls)\" width=\"934\" height=\"688\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-analytics-api-explorer-test-query-builder.jpg 934w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-analytics-api-explorer-test-query-builder-300x221.jpg 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-analytics-api-explorer-test-query-builder-768x566.jpg 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/a><p id=\"caption-attachment-6911\" class=\"wp-caption-text\">YouTube Analytics \/ Reporting API Explorer (Testing API Calls)<\/p><\/div>\n<h2>Loading YouTube API Data into SQL Server<\/h2>\n<div class=\"content_block\" id=\"custom_post_widget-5617\"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination<\/strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.<\/p>\r\n<h3>Step 1: Add Upsert Destination to Data Flow<\/h3>\r\n<ol>\r\n<li>Drag and drop the <strong>Upsert Destination<\/strong> component from the SSIS Toolbox.<\/li>\r\n<li>Connect your source component (e.g., JSON \/ REST \/ Other Source) to the Upsert Destination.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/08\/ssis-data-flow-drag-drop-upsert-destination.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS - Data Flow - Drang and Drop Upsert Destination Component<\/p>\r\n<\/div>\r\n<h3>Step 2: Configure Target Connection<\/h3>\r\n<ol>\r\n<li>Double-click the <strong>Upsert Destination<\/strong> component to open the configuration window.<\/li>\r\n<li>Under <strong>Connection<\/strong>, select an existing target connection or click <strong>NEW<\/strong> to create a new connection.\r\n<ul>\r\n<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<h3>Step 3: Select or Create Target Table<\/h3>\r\n<ol>\r\n<li>In the <strong>Target Table<\/strong> dropdown, select the table where you want to load data.<\/li>\r\n<li>Optionally, click <strong>NEW<\/strong> to create a new table based on the source columns.<\/li>\r\n<\/ol>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-configuration.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">Configure SSIS Upsert Destination Connection - Loading data (REST \/ SOAP \/ JSON \/ XML \/CSV) into SQL Server or other target using SSIS<\/p>\r\n<\/div>\r\n<h3>Step 4: Map Columns<\/h3>\r\n<ol>\r\n<li>Go to the <strong>Mappings<\/strong> tab.<\/li>\r\n<li>Click <strong>Auto Map<\/strong> to map source columns to target columns by name.<\/li>\r\n<li>Ensure you <strong>check the Primary key column(s)<\/strong> that will determine whether a record is inserted or updated.<\/li>\r\n<li>You can manually adjust the mappings if necessary.<\/li>\r\n<\/ol>\r\n <div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2020\/09\/upsert-destination-key.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination - Columns Mappings<\/p>\r\n<\/div>\r\n<h3>Step 5: Save Settings<\/h3>\r\n<ul>\r\n<li>Click <strong>OK<\/strong> to save the Upsert Destination configuration.<\/li>\r\n<\/ul>\r\n<h3>Step 6: Optional: Add Logging or Analysis<\/h3>\r\n<ul>\r\n<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.<\/li>\r\n<\/ul>\r\n<h3>Step 7: Execute the Package<\/h3>\r\n<ul>\r\n<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.<\/li>\r\n<\/ul>\r\n<div class=\"wp-caption aligncenter\">\r\n<a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\">\r\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full\" alt=\"\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/12\/ssis-upsert-destination-execute.png\" \/><\/a>\r\n<p class=\"wp-caption-text\">SSIS Upsert Destination Execution<\/p>\r\n<\/div><\/div>\n<h2>Download Sample SSIS Package<\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/Google_Youtube_API_Demo.zip\">SSIS Package is attached here (SSIS 2012 Format)<\/a>.<\/p>\n<h2>Conclusion<\/h2>\n<p>In this article we saw how to extract information from REST API such as YouTube REST API using OAuth 2.0. We also learned techniques like Pagination, JSON Parsing, Request Batching using multiple components to achieve full scale API integration. To explore many other scenarios not discussed in this article download <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\">SSIS PowerPack from here (includes 70+ Components)<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In last few articles we saw how to read data from various Google Services. In this article we will see how to read YouTube API data in SSIS. This blog mainly focus on SSIS approach but steps mentioned to call Google APIs can be useful for any developer regardless which programming language or toolset [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6904,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,176,225,446,136,17,205,10,200],"tags":[154,6,60,3,487],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to read YouTube API data in SSIS (Videos, Channels, Playlists) | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Examples to read Youtube API data in SSIS.Get Youtube Video Clicks, Likes, Dislikes. Read videos from playlist \/ channel. Connect Google API using OAuth 2.0\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to read YouTube API data in SSIS (Videos, Channels, Playlists) | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Examples to read Youtube API data in SSIS.Get Youtube Video Clicks, Likes, Dislikes. Read videos from playlist \/ channel. Connect Google API using OAuth 2.0\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ZappySys\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2019-05-06T18:06:07+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2025-03-19T13:08:56+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"400\" \/>\r\n\t<meta property=\"og:image:height\" content=\"400\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/zappysys\/\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/\",\"url\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/\",\"name\":\"How to read YouTube API data in SSIS (Videos, Channels, Playlists) | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png\",\"datePublished\":\"2019-05-06T18:06:07+00:00\",\"dateModified\":\"2025-03-19T13:08:56+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Examples to read Youtube API data in SSIS.Get Youtube Video Clicks, Likes, Dislikes. Read videos from playlist \/ channel. Connect Google API using OAuth 2.0\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png\",\"width\":400,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to read YouTube API data in SSIS (Videos, Channels, Playlists)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"sameAs\":[\"http:\/\/www.zappysys.com\/\",\"https:\/\/www.facebook.com\/ZappySys\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to read YouTube API data in SSIS (Videos, Channels, Playlists) | ZappySys Blog","description":"Examples to read Youtube API data in SSIS.Get Youtube Video Clicks, Likes, Dislikes. Read videos from playlist \/ channel. Connect Google API using OAuth 2.0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/","og_locale":"en_US","og_type":"article","og_title":"How to read YouTube API data in SSIS (Videos, Channels, Playlists) | ZappySys Blog","og_description":"Examples to read Youtube API data in SSIS.Get Youtube Video Clicks, Likes, Dislikes. Read videos from playlist \/ channel. Connect Google API using OAuth 2.0","og_url":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2019-05-06T18:06:07+00:00","article_modified_time":"2025-03-19T13:08:56+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/","url":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/","name":"How to read YouTube API data in SSIS (Videos, Channels, Playlists) | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png","datePublished":"2019-05-06T18:06:07+00:00","dateModified":"2025-03-19T13:08:56+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Examples to read Youtube API data in SSIS.Get Youtube Video Clicks, Likes, Dislikes. Read videos from playlist \/ channel. Connect Google API using OAuth 2.0","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/05\/youtube-logo.png","width":400,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/read-youtube-api-data-ssis-videos-channels-playlists\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to read YouTube API data in SSIS (Videos, Channels, Playlists)"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","caption":"ZappySys"},"sameAs":["http:\/\/www.zappysys.com\/","https:\/\/www.facebook.com\/ZappySys\/","https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/"],"url":"https:\/\/zappysys.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6894"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=6894"}],"version-history":[{"count":9,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6894\/revisions"}],"predecessor-version":[{"id":11263,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6894\/revisions\/11263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/6904"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=6894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=6894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=6894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}