Netflix Interview Question

Q: How would you filter results dynamically from rest-api basing on the input query?