Skip to content
Advertisement

Error: Request Failed with status code 400 – React – API Key

this is my code:

JavaScript

Is anyone able to figure out why I am unable to get this to work? I keep getting a Request failed error and I am not sure what is going wrong. I have manually entered my url into the my browser such as this:

https://www.googleapis.com/books/v1/volumes?q=javascript&key=APIKEY

But when I do it through my code it is not working.

Thanks in advance.

Advertisement

Answer

maxResults should be less than <= 40 according to recommendation. Update the max result in code. It would work after that

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement