Connect to an API

I had some experience connecting to my API for login page - details here - Unable to display Server side "API Action" data on my page. Might be helpful, please have a read.

Each API is different depending on it’s definition. But, it boils down to GET or POST calls with a combination of input parameters, query and headers.