API server is within your running node. You can use a HTTP-Client to connect to it. Here some samples:
More comprehensive post: