Hi,
I read your project's description and got complete understanding of the task.
Details:
The error is occurring because the javascript does not allow to make the call to resource which is not on the same domain. But we can achieve the required task by using the server side language (PHP in your case I guess).
I have complete knowledge about the APIs and can do this task for you. Please have a chat with me so that I can start working
I have gone through your requirements and am able to work on your project.
I am an Experienced Full Stack Developer, you can look at my profile for my previous work.
Is your api in php or its Frameworks?
Thank you