api filtering with from param