Getting the settings from the API