Widget:APITest
<script type="text/javascript"> var apiEndpoint = "https://commons.tsadra.org/api.php"; var params = "action=ask&query=Dorje,_G.|%3FBio&format=json"; fetch(apiEndpoint + "?" + params + "&origin=*") .then(function(response){return response.json();}) .then(function(response) { var results = response.query.results; Object.keys(results).forEach(function(key) { console.log(results[key].Bio); }); }); </script>