YP Database Question

Has anyone used RapidWeaver, Foundation, & Stacks to interact with YP (Yellow Pages Database)? They have APIs. My idea would be for my visitor to fill out a form (search for a restaurant for example), build a html string for YP to process, get back from YP the results in a HTML or JSON string to then display on my search result page. I could write some HTML to do that outside RapidWeaver, but I would like to keep the format of my RapidWeaver pages. I will want to do similar APIs for hotel searches, job searches, etc. on my Website. Any ideas?

You can write HTML pages inside RW as well.