API simple y gratuita que devuelve un meme aleatorio en cada solicitud.
GET https://the-meme-api-oujs.drexelxx.workers.dev/api/imagen-aleatoria
Devuelve un arreglo con un objeto:
[
{
"id": "f29hja7",
"url": "https://i.redd.it/b45dxk0xvq8d1.png",
"width": null,
"height": null
}
]
fetch("https://the-meme-api-oujs.drexelxx.workers.dev/api/imagen-aleatoria")
.then(res => res.json())
.then(data => {
const meme = data[0];
console.log(meme.url);
});
✔ Compatible con frontend y backend
✔ No necesita API key
✔ Funciona con navegadores modernos y fetch