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.
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.
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
love you b,rother,
it’s really helpful,
many many thanks
Because you didn’t add this one at the end of your url:
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.