Free-to-Play Games Database

GRATIS
Por Digiwalls Media | Actualizada 5 days ago | Gaming
Popularidad

9.8 / 10

Latencia

1,731ms

Nivel de servicio

99%

Health Check

N/A

Volver a todas las conversaciones

help function

Rapid account: Xbeatrizscosta
xbeatrizscosta
a year ago

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));

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios