Search API and integration in my own webpage

(from github.com/zopyx)
Is there a reasonable to integrate the FESS search form into my own web page or is there at least an API for creating my own search form, sending the search request to fess and getting hold of the search results as JSON, XML or as HTML fragment.

(from github.com/marevol)
Fess provides JSON API.
http://localhost:8080/json/?q=something