How can I implement a search box plugin which give the data from the another API?

Hello, I am new to the Bubble family. I am implementing a plugin, where I am calling an API which provides us some ajax code and html. But currently I have no Idea how to deal with the Bubble plugin building page.

Whenever this search box being clicked, API should be called and give the data under the input box in a drop-down manner.
Can anybody give me some hint or any idea to implement this?