Getting an error when making a api call [Solved]

I will post a reply when I change my code and will tell u the results