Free-to-Play Games Database

FREE
By Digiwalls Media | Updated vor 2 Jahren | Gaming
Popularity

9.9 / 10

Latency

16,129ms

Service Level

87%

Back to All Discussions

help function

Rapid account: Xbeatrizscosta
xbeatrizscosta
vor 8 Monaten

i have this function but I want to change console.log to return, so that I can use the function to remove the thumbnail to html later, can anyone help me?

const options = {
method: ‘GET’,
headers: {
‘X-RapidAPI-Key’: ‘5a417bb0c3msh9ad46ccb984dd3fp19d5f5jsn9469e39506ab’,
‘X-RapidAPI-Host’: ‘free-to-play-games-database.p.rapidapi.com
}
};

fetch(‘https://free-to-play-games-database.p.rapidapi.com/api/filter?tag=3d.mmorpg.fantasy.pvp&platform=pc’, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));

Join in the discussion - add comment below:

Login / Signup to post new comments