Someone knows why I'm doing wrong, because I want to get to work with this riot api and use the .json that I see when I access the link. the only thing that returns when I use this code is a "response" and without the .json.
PDT: in the link, after the "api-ket=" is a key that expires, I will renew it when alguein asks me for help
below the code:
fetch('https://na1.api.riotgames.com/lol/summoner/v3/summoners/by-name/Einstein?api_key=RGAPI-998c0637-97db-4460-a57f-55db7b9c2f36', {
method: "GET",
mode: "no-cors",
redirect:"follow",
Headers : new Headers({
'Content-Type': 'text/plain',
cache: 'default',
}),
})
.then((response) => {
console.log(response)
})