match api to return all matches