API code searching for dropdown