Get Videos from a Channel using Youtube API V3 in C#

Nitesh

I have a ASP.Net webpage where I was displaying Youtube Videos from my channel using V2. Since Google has retired V2 API, I am trying to use V3 API, but unable to get the videos from the channel.

I did look at the samples at github, but the example shows how to create a video, but no way to retrieve videos. Searching on SO, I see examples using php library, I am looking something specific to C#.

Can anyone help me with regard to this?

DaImTo

By adding channel id to Search.list it returns a list of the videos in the channel.

var searchListRequest = service.Search.List("snippet");
searchListRequest.ChannelId = "UCIiJ33El2EakaXBzvelc2bQ";
var searchListResult = searchListRequest.Execute();

Update response to comment explanation to what is happening:

Actually search returns everything associated with the channel id, you are after all searching on a channel id.

Search returns a SearchListResponse which contains a number of items. Each item is of type SearchResource search resources can have different types or Kinds. In the two pictures below you can see that the first one is kind youtube#channel the second is kind youtube#video it will be up to you to loop though them and find the youtube videos. if you scroll to the bottom of the search.list page you can try it and see the raw JSon that the API is returning.

enter image description here

enter image description here

solution:

Now if all you want to do is get the videos back you can just tell it that all you want are videos by adding type to your request:

searchListRequest.Type = "video";

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Get Videos from a Channel using Youtube API V3 in C#

From Dev

Get all videos from channel - Youtube API v3 c#

From Dev

Youtube API v3 - Related videos from specific channel

From Dev

Youtube API v3 - Related videos from specific channel

From Dev

Get videos from youtube api from channel

From Dev

Get videos from youtube api from channel

From Dev

youtube api v3 - get videos from a public playlist. with out using api key

From Dev

Youtube api v3 - Get all of videos from the chanel

From Dev

How do I obtain a list of all videos in a channel using the YouTube Data API v3?

From Dev

youtube api v3 fetch all videos from a channel that are newer than a video

From Dev

Youtube api v3 cannot retrieve all videos from a channel

From Dev

YouTube API v3 not retrieving videos for a channel

From Dev

Retrieve all videos from youtube playlist using youtube v3 API

From Dev

Youtube Related Videos using Youtube V3 API

From Java

Youtube api v3 Get list of user's videos

From Dev

Youtube get the videos IDs of user in API v3 PHP

From Dev

Youtube get the videos IDs of user in API v3 PHP

From Dev

Search Videos by keyword using YouTube Data API V3

From Dev

Get all playlist ids from channel id - youtube api v3

From Dev

Getting all videos of a channel using youtube API

From Dev

Fetch list of videos from Youtube channels using Youtube API v3 (without the annoying authentication pop-up)

From Dev

Fetch list of videos from Youtube channels using Youtube API v3 (without the annoying authentication pop-up)

From Dev

Youtube data api v3 search all uploaded and posted videos by a specific channel

From Dev

Get all youtube videos from a channel (some videos are missing)

From Dev

Upload videos to my Youtube channel without user authentication using YoutubeApi v3 and ouath2

From Dev

Get youtube channel videos of particular channel using PHP Code

From Dev

Getting the list of videoId in array using YouTube api v3 playlistItems and build another videos query to get statistics viewCount

From Dev

using php, how do i upload youtube videos on my site using the youtube v3 api?

From Dev

YouTube v3 API upload to channel

Related Related

  1. 1

    Get Videos from a Channel using Youtube API V3 in C#

  2. 2

    Get all videos from channel - Youtube API v3 c#

  3. 3

    Youtube API v3 - Related videos from specific channel

  4. 4

    Youtube API v3 - Related videos from specific channel

  5. 5

    Get videos from youtube api from channel

  6. 6

    Get videos from youtube api from channel

  7. 7

    youtube api v3 - get videos from a public playlist. with out using api key

  8. 8

    Youtube api v3 - Get all of videos from the chanel

  9. 9

    How do I obtain a list of all videos in a channel using the YouTube Data API v3?

  10. 10

    youtube api v3 fetch all videos from a channel that are newer than a video

  11. 11

    Youtube api v3 cannot retrieve all videos from a channel

  12. 12

    YouTube API v3 not retrieving videos for a channel

  13. 13

    Retrieve all videos from youtube playlist using youtube v3 API

  14. 14

    Youtube Related Videos using Youtube V3 API

  15. 15

    Youtube api v3 Get list of user's videos

  16. 16

    Youtube get the videos IDs of user in API v3 PHP

  17. 17

    Youtube get the videos IDs of user in API v3 PHP

  18. 18

    Search Videos by keyword using YouTube Data API V3

  19. 19

    Get all playlist ids from channel id - youtube api v3

  20. 20

    Getting all videos of a channel using youtube API

  21. 21

    Fetch list of videos from Youtube channels using Youtube API v3 (without the annoying authentication pop-up)

  22. 22

    Fetch list of videos from Youtube channels using Youtube API v3 (without the annoying authentication pop-up)

  23. 23

    Youtube data api v3 search all uploaded and posted videos by a specific channel

  24. 24

    Get all youtube videos from a channel (some videos are missing)

  25. 25

    Upload videos to my Youtube channel without user authentication using YoutubeApi v3 and ouath2

  26. 26

    Get youtube channel videos of particular channel using PHP Code

  27. 27

    Getting the list of videoId in array using YouTube api v3 playlistItems and build another videos query to get statistics viewCount

  28. 28

    using php, how do i upload youtube videos on my site using the youtube v3 api?

  29. 29

    YouTube v3 API upload to channel

HotTag

Archive