call search api multiple times if not enough links were found