#help for carhub project car-image api key

29 messages · Page 1 of 1 (latest)

civic hearth
#

hi there, I was referring to carHub project using Nextjs, I'm here to ask help. I'm implementing the cars image api from imagin studio car-image- api, but its not displaying trail option now. How do i get my own api key, could any one help me for this?

gray sparrow
#

There's a dummy API key the website gives you

#

Let me find it

civic hearth
gray sparrow
#

https://cdn.imagin.studio/getimage

#

in your generateCarImageUrl function

#

this should be your URL

#

mine looks like this

civic hearth
#

The url you provided is for fetching the data from the api, but I'm asking how do i get my own api key, as its asking for business email on signup and its no longer free.

#

I didn't found any dummy key tho

gray sparrow
#

My mistake.

#

You should be able to find your api key on the api website

calm jasperBOT
civic hearth
#

I was got successful to render the car images from api onto card component, but when i callled generateCarImageUrl() function into carDetails Image component i got this dummy image, into the modal, my code ss attached alongside.

gray sparrow
#

yep

#

thats what it's suppoed to look like

#

good job! 🙂

#

thats exactly how mine looks like

civic hearth
#

any fixes for displaying car image into carDetails modal?

gray sparrow
#

what do you mean

#

is it an issue, or are your asking to help you style it?

civic hearth
#

its an issue, see, the cars are displayed into card section, but same function not been able to display the car image into modal section, instead displayin dummy car image

civic hearth
#

fixed, it was process.ENV.API_KEY problem 👍

gray sparrow
#

glad you were able to solve it! all you needed was time to figure it out 🙂