API V2 orderBy date possible?


#1

When querying bills from a rep, I’ve kept the first: parameter low to keep data transfers low. But the dictionary returned has a fairly unpredictable sequence of bills (I assume they are ordered as lastUpdated). Which is fine. Is there any way to sequence based on some date property of the billActionNode?

I’m not asking as a wishlist thing…just seeing if there is a way I haven’t seen. Else, I’ll just up the batch download to the max and sort client side.

Thanks!


#2

You might consider doing two fetch cycles: one to just get whatever the sort/filter criteria you want is + the bill id, then one or more “bundled” bill queries asking for just the ones you want, keeping the bundle sizes within reason. I wrote up “bundled” queries in:


#3

Thanks for the help, Ed. Appreciated. I think for now I’ll just stick with the current system I have as I need to get an update pushed (2018 is apparently over lol). Just wanted to see if I was missing something in the documentation.


#4

This topic was automatically closed 70 days after the last reply. New replies are no longer allowed.