search queries to api working