How do I make a flexible interface to make this work



I am working with mosh new react course, I am trying another API to try new app. but the API I am using the fetch response is difference. How do I make flexible interface to make useData hook flexible.

How is it different? Does it get data from the same RAWG web site?