Decouverte de l API de la Freebox OS
To discover a Freebox supporting this API you can either use mDNS, or make a HTTP request to mafreebox.freebox.fr to get API information.
Discovery using mDNS¶
This is the preferred method since it does not require to know the Freebox IP address.
The Freebox broadcasts the “_fbx-api._tcp” service
On iOS devices, you can use a NSNetServiceBrowser
On the TXT record you can obtain the following information:
The current API version on the Freebox
“FreeboxServer1,1” for the Freebox Server revision 1,1
The API root path on the HTTP server
The device unique id
Discovery using HTTP¶
If you can, avoid this method because it requires to use a hardcoded address to retreive API information.
If you make a HTTP get request on http://mafreebox.freebox.fr/api_version you can get the same API information as provided in mDNS.