Why isn't my API call using Ajax working?

I am trying to call a first party using ajax but i am getting an error an it is not working.I can’t understand what is the error and how to resolve it please help me with it.