WiFi Client - REST API?

I know people have used WiFi detection to turn on a virtual presence sensor, so similar idea. The options available depend on the specific router you have. See the presence FAQ for discussion of several projects:

FAQ: The Many Ways of Detecting Presence