Building in Public #5 - Generate Metadata From Google Books API

Last week I was able to curate lists of books. In order to add them to the app, I need every book's:

  • Title
  • Description
  • Authors
  • Thumbnail
  • Google Books link

Fortunately Google Books API can be used as below with `q={book title}` to get the related metadata.

const bookTitle = "Zero to one"

const results = await axios.get(`${bookTitle}&key={GOOGLE_BOOKS_API}&maxResults=1`)


We can then cleanse, process, and save the data to ingested by the Next.js app.

Didn't find this guide useful? Let me know