YouTube API V3 - How to get normalized game title?
Asked Answered
C

2

10

I am trying to get the normalized game name using youtube API for a video if it is in Gaming category.

For example: https://www.youtube.com/watch?v=qIvWgSpy31k, for this video I can see its normalized game name is the description:

normalized game name in description

But when I use the videos.list method, I can not see this returned. After checking all the properties for the video, I can not find it either.

Is there any way to fetch the game name?

Conjuncture answered 24/5, 2016 at 2:57 Comment(0)
B
4

That information isn't exposed by the YouTube API. You can see that by checking the documentation for Videos.list which returns a list of videos resources this is the information available about a video.

You can request it as a new feature here gdata-issues why they are using a gdata forum for issues I have no idea.

Bigelow answered 24/5, 2016 at 7:5 Comment(0)
S
2

I've encountered the same problem, so far in 2020 they haven't implemented it yet. It looks more like business issue. The only way to get game title bound to video is webscraping. I've used headless browser library for Java called HtmlUnit. When you go to the direct url of the video you want to scrape just get html from it and use the regex listed below to acquire game title.

(?<=,"title":\{"simpleText":").*?(?="},"subtitle")
Stuck answered 30/10, 2020 at 9:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.