Add API search and sort functionality