By default, if I want to get information from an ESXi server API using a local account, using a secure connection, what port will be used? 443 or some other?
yes secure connection port is used 443
please see below link for full details and it may help you
VMware KB: Required ports for ESXi 5.1.x