All standard databases have APIs, without them they can’t work. If FBs data wasn’t properly firewalled all you need is the address to hit, and a good guess as to what tools they use. Last I heard they were running MySQL, you can get that API anywhere.
Probably a standard REST API that uses JSON format.