1 of 1 people found this helpful
You can use the filterExpression and append the following to your query: filterExpression=hour('*')>=7 and hour('*') <=23
Also, you can use the day('*') expression to remove weekends!
3 of 3 people found this helpful
I realized it should be "weekday" and not day in the above post.
And now for the bonus question answer in full:
filterExpression=hour('*')>11 and hour('*') <=17 and not (weekday('*') = 1 or weekday('*')=7)
2 of 2 people found this helpful
I think if you want to return data in a single call, then Dan's answer is correct. However, in some cases you can get more performance from the Web API by getting data in your original manner and then filtering unneeded/unwanted values in your client rather than having it pre-processed by the Data Archive. I would recommend implementing both and see what works out better.
Thank you both!! Very helpful!
We were already considering filtering the results on the client-side, so it's also helpful to have confirmation of this proposed approach. We may end up doing this instead of altering the API call.