How to hold the value in the input box from the click of the Repeating group's value?

Hello,

I am using a third-party API plugin, and by the search from the input box, I’m showing the values in the Repeating group. I wanted to use Bubble’s search box, but it is not working for me(or maybe I exactly don’t know how to use search box with the third party API plugin).

So, now I want that after typing the word in the input box, there will be values coming from the API, and when I click on the value, the value will come to the input box, and everything will be reset. And then I will type the word in the input box, just after the value, which I clicked earlier.