This website will use the API in the background and/or return data it already collected.
It collects information from public endpoints and draws it’s own conclusions.
First convert the channel name (aka login) to an ID
Then call Get Users Follows, this endpoint only supports ID’s
A token is required… The authentication requirements have changed since February 2020. This changed in (started to change in) April (and enforced in May) as per the announcmenet thread I linked to in the post you linked to.
You omitted the Client-ID header.
async function getData() {
const url = "https://api.twitch.tv/helix/users?login=ghaleon_rlz"
const { access_token } = await getToken()
const data = await axios.get(url, {
headers: { Authorization: `Bearer ${access_token}` }
})
return data
}
Should be
async function getData() {
const url = "https://api.twitch.tv/helix/users?login=ghaleon_rlz"
const { access_token } = await getToken()
const data = await axios.get(url, {
headers: {
Authorization: `Bearer ${access_token}`,
'Client-ID': ENV.CLIENT_ID
}
})
return data
}