Les comparto mi JavaScript, sólo adapte unas líneas para usar Fetch API y async await:
class Search { static get(url) { return new Promise((resolve, reject) => { fetch(url) .then(response => response.json()) .then(json => resolve(json)) .catch(error => reject(error)); }); } } (async function () { const GoogleBooksApiURL = "https://www.googleapis.com/books/v1/volumes?q="; console.log(await Search.get(GoogleBooksApiURL + "harry")); })();