Example jQuery ajax call to the API.