Aşağıdaki şekilde url'den okuyabilirsiniz.
<script>
fetch("https://api.github.com/users/hadley/orgs")
.then(res=>res.json())
.then(data=>console.log(data))
</script>