text box to make api call