Obsidian API
up:: Obsidian
Snippets
API request
const url = "https://www.googleapis.com/books/v1/volumes?q=+isbn:0310109566"
let response = await fetch(url);
if (response.ok) { // if HTTP-status is 200-299
// get the response body (the method explained below)
let json = await response.json();
console.log(json);
} else {
alert("HTTP-Error: " + response.status);
}