You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
some thing with game:GetService(“HttpService”)
What is the issue? Include screenshots / videos if possible!
Can’t parse JSON
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i dont know
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
--script
local http = game:GetService("HttpService")
local Async = http:GetAsync('https://www.youtube.com/c/ImKibitz/videos')
print(Async)
print(http:JSONDecode(Async))
i dont know what to expect but i dont expect an error
Since you haven’t tried any solutions, you should do some research into the problem and understand exactly what you’re working with. This GetAsync call is returning the HTML for the page URL you passed in, not JSON. You can look up what JSON is to know what format it’s in; as for what gets returned from this query, just look at the print - at the end it says HTML.
If you want to do something with YouTube then you should be looking at the API docs. For any website you want to interact with ideally you should be looking for their developer portal or API docs instead of directly querying pages, unless you have a use case for parsing through a web page directly.
This is quite a difficult task. Many steps will be taken to get the videos. First step is to create your cloud platform account then you have to get your api key from Google Cloud Platform this website, then put it in this API url and get the channel id to get all the videos.
Once you get the key then you paste in there and then put the channel id. the channel id in there is the roblox channel id. You can get a channel id from this website:
Here is a peice of code to help. All you have to do is put the channel id and key in the variables then you can get the url.
local key = "" -- put your youtube api key here
local channel_id = "" -- put the channel id here
local url = "https://www.googleapis.com/youtube/v3/search?key="..key.."&channelId="..channel_id.."&part=snippet,id&order=date&maxResults=20"