Back to APIs
Google Books API
Access Google Books to search volumes by title, author, or ISBN, retrieve metadata, and get preview links for books.
Base URL
https://www.googleapis.com/books/v1booksISBNpreviewauthorsmetadata
Endpoints
GET
/volumesSearch for books by query, title, author, or ISBN.
const response = await fetch("https://www.googleapis.com/books/v1/volumes?q=inauthor:tolkien&maxResults=5&key=YOUR_API_KEY", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);Response Preview
{
"totalItems": 142,
"items": [{
"id": "abc123",
"volumeInfo": {
"title": "The Lord of the Rings",
"authors": ["J.R.R. Tolkien"],
"publishedDate": "1954",
"pageCount": 1178,
"imageLinks": { "thumbnail": "https://books.google.com/..." }
}
}]
}