HTTP API local address

Hello,
about the HTTP API, do we had to send command to “https://api.lifx.com/”, for the speed issue, can it use local address or not?
and is HTTP command to bulbs is also based on Wifi broadcast or not?

Thanks

There is no local version of the HTTP API. It requires cloud communication. The only local option is the LAN Protocol.