Use API to get serverId