local HttpService = game:GetService("HttpService")
local apiKey = "API_KEY"
local channelId = "ID"
local url = "https://www.googleapis.com/youtube/v3/subscriptions?part=snippet&channelId=" .. channelId .. "&key=" .. apiKey
local success, response = pcall(function()
return HttpService:GetAsync(url)
end)
if success then
local data = HttpService:JSONDecode(response)
if data and data.items then
for _, item in ipairs(data.items) do
print("Subscriber Channel ID: " .. item.snippet.resourceId.channelId)
print("Subscriber Title: " .. item.snippet.title)
end
else
warn("No items found in the response.")
end
else
warn("Failed to access API: " .. tostring(response))
end
Above is my script that will get the channel id of all subscribers for a channel id. However i am getting 403 forbidden upon requesting and cant find a way of stopping it as my api key is correct. Is there a way of solving it using google API or would i need a proxy such as rapidapi. Provide examples please