Solution to search API