Last updated 8 months ago
fetch('https://trivia.apiwant.xyz/trivia/cultura-general') .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Fetch error:', error));
{ "question": "¿Quién es la líder de la formación política Sumar?", "options": [ { "answer": "Irene Montero", "correct": false }, { "answer": "Ada Colau", "correct": false }, { "answer": "Yolanda Díaz", "correct": true } ], "optionalURL": "https://api.wantimg.xyz/triviaapiwant.png" }
{ "detail": "ohh!! Lo siento mi sistema esta muy sobrecargado" }