How to solve google books api 403 restriction?

So what is the exact error response? It actually sounds more like you exceeded your request rate limit, in which case you might increase the per-user quota (requires an account, obviously). However 40 individual requests is quite a lot anyway, so I’d suggest to query these books in a single request instead:

const isbns = ['0596007124', '0704381362']

const url = isbns.reduce(
  (res, isbn, index) => res + (index > 0 ? '+OR+' : '') + 'isbn:' + isbn,
  'https://www.googleapis.com/books/v1/volumes?q='
)

axios.get(url).then(console.log)