How do I get titles from videos

How do I get titles from youtube videos

If you want titles of particular videos then you could make a list or store the titles in Airtable Spreadsheet. Personally I would prefer the second option.

no particular videos .
i need all Videos titles

You will need YouTube API.

I think there might be a extension for what you are looking.

1 Like

have any extensions ?

i know , but how to use ?

I am not a extension developer yet.

I’ve found a way without any new extension!
Here it is:
You will need to do a http get request using the web component.You will set the url property to:
join three strings : https://www.youtube.com/oembed?url= + youryoutubevideourl + &format=json
And now you will cal the get block (web component ),
You will get the response content in the GotText event.it will be something like that:

{"width":480,"provider_name":"YouTube","thumbnail_url":"someimage.jpg","thumbnail_height":360,"title":"Imytitle","height":270,"type":"video","provider_url":"https:\/\/www.youtube.com\/","thumbnail_width":480,"author_url":"myChannelUrl","version":"1.0","html":"\u003ciframe width=\"480\" height=\"270\" src=\"https:\/\/www.youtube.com\/embed\/myvideoid?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen\u003e\u003c\/iframe\u003e","author_name":"my name"}

As you see it’s a lot of info about the video ( title , auther,autherchannel) ,etc…But it’s in the json format you will need to decode it.:wink:
To decode it you will use my extension here . The json text you’ll decode is the responsecontent variable in the GotText event.
The result will be a dictionary.Now you can use GetValue block ( dictionary blocks ) to get any value of any key you want.For ex:
getValue , key = title,dictionary = the dictionary decoded by me extension,ValueIfNotFound = not found
Hope it helps :slightly_smiling_face:

4 Likes

love you b,rother, :heart: :heart: :heart: :heart:
it’s really helpful,
many many thanks :heart: :heart:

1 Like

@Mohamed_Tamer Mohamed
Can you help me more?

i don’t got video titel :sleepy: :sleepy: :sleepy: :sleepy:

Because you didn’t add this one at the end of your url:

i don’t got bangla languages

i need JS to Beautify

complete, thanks for your helping

1 Like

How do I get titles from youtube videos ?
The solution for everyone :point_down:t2:

1 Like

This post was flagged by the community and is temporarily hidden.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.