Can I access the query link via an Ajax request?

For security reasons, JavaScript cannot make cross-domain requests. In this case, you would need to make the request to your own server, which in turn would request from the API.