added api

post query to app and receive terms as json