According to the OFX API documentation (http://www.ofxhome.com//api.txt) they use XML.
You may want to research the following:
- cURL to grab the data from the API http://php.net/manual/en/book.curl.php
- SimpleXML to parse the data returned http://php.net/manual/en/book.simplexml.php
- Here's a tutorial on parsing XML http://www.sitepoint.com/parsing-xml-with-simplexml/
In your program, the first step would probably would be grabbing the index of all institutions (view source):
http://www.ofxhome.com/api.php?all=yes
Then referencing the ID values from step 1 in a lookup query for a specific institution:
http://www.ofxhome.com/api.php?lookup=424