Are you a Marvel fan? Then this API is for you for your next amazing project. The purpose of this API is to fetch your favourite Marvel Characters ⚔️
GET /api/
https://marvelheroesapi.herokuapp.com/api/
function fetchData(){
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log(this.responseText)
}
};
xhttp.open("GET", "https://marvelheroesapi.herokuapp.com/api", true);
xhttp.send();
}
Photo by Erik Mclean on Unsplash
If you liked the product, then don't forget to show some love by starring this repositry 🙂