Added check to verify that the correct API is responding