Shamik
Shamik

Reputation: 1731

How to query / retrieve keywords using YouTube Data API (v3)

I'm currently in the process of migrating from an obsolete youtube gdata API to V3. One of the things I'm looking for is :

  1. Search videos using a filter

    I used to run something like this

    https://gdata.youtube.com/feeds/api/users/lyndapodcast/uploads?v=2&max-results=50&start-index=1&query=sample_keyword

Will this V3 request will be equivalent using "q" parameter ?

 https://www.googleapis.com/youtube/v3/search?part=snippet&q=sample_keyword&channelId=UCUtTNe0bVxvk8exLBKkvCNg&maxResults=50&key={my_key}&maxResults=2
  1. Is there a way to retrieve "keywords" as part of the result ? gdata API didn't allow it earlier, only way was to scrape the html page and look for keywords metadata.

Any pointers will be appreciated.

-Thanks,

Shamik

Upvotes: 1

Views: 1933

Answers (2)

mhlavacka
mhlavacka

Reputation: 701

I'm using https://github.com/fent/node-ytdl-core to get keywords for youtube videos.

Upvotes: 0

johnh10
johnh10

Reputation: 4185

  1. Yes, except for the different maxResults value you're using.

  2. You can get tags only if you own the videos. Otherwise scrape the keywords metadata.

Upvotes: 1

Related Questions