Can't print data from the server Yandex.Weather?

Can't print data from the server Yandex.Weather?
Yandex bad documentation + I have little experience to understand it.
Help do I refer to the APIs, if it is correct why doesn't print json.
getWeather(){
 return new Promise((resolve,reject) => {
fetch(this.uri,{
 method: 'GET',
 headers: {
 'Content-type': 'application/json',
 'X-Yandex-API-Key': this.apiKey
}
})
.then(res => res.json()) // <--- Error?
.then(data => resolve(data))
.catch(err => reject(err));
});
}
March 19th 20 at 08:25
0 answer

Find more questions by tags YandexJSONJavaScript