const url = 'API URL';
fetch(url)
.then(function (data) {
return data.json();
})
.then(function (json) {
console.log(json.entity)
});
Just another WordPress site
const url = 'API URL';
fetch(url)
.then(function (data) {
return data.json();
})
.then(function (json) {
console.log(json.entity)
});