Netflix interview question

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