Simple connection to the API