How do i make a GET requests from Imgur’s API via Axios on my react app

I’ve tried everything,it keeps returning an error message

main.js?attr=_BODkjRO5QpCpDBDHmq3zW7ER-QQAJ8TUaG_zfoS-_UYoHvVr1lIpJQyTDNBAEyN:2605 GET 400


createError.js:16 Uncaught (in promise) Error: Request failed with status code 400
    at createError (createError.js:16)
    at settle (settle.js:17)
    at XMLHttpRequest.handleLoad (xhr.js:62)

It works with their GET gallery URL though, so I don’t understand if the GET Image URL is broken.

My code:

const response = await axios.get( '' , {
  params: {query: text},
  headers: {
    Authorization: 'Client-ID {MY ACTUAL CLIENT ID}'



the api is like{imageID}

and not

maybe you are looking for something like this?