Add api to search