Add search API endpoint.