-
I am trying to find precedential decisions by 'il' court after 2023-01-01 with this api query https://www.courtlistener.com/api/rest/v3/opinions/?cluster__date_filed__gte=2023-01-01&cluster__docket__court_id=il&cluster__precedential_status=Published but am getting Texas courts instead :-) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Well, invalid fields will be ignored, so if you're getting Texas content when you try to filter to Illinois, that means your filter didn't work (and probably Texas is just at the top of whatever returned). Your query has two problems:
So you should do this instead: You could also do this: But that involves another join, so it's slower. |
Beta Was this translation helpful? Give feedback.
Well, invalid fields will be ignored, so if you're getting Texas content when you try to filter to Illinois, that means your filter didn't work (and probably Texas is just at the top of whatever returned).
Your query has two problems:
ill
, notil
).So you should do this instead:
https://www.courtlistener.com/api/rest/v3/opinions/?cluster__date_filed__gte=2023-01-01&cluster__docket__court=ill&cluster__precedential_status=Published
You could also do this:
https://www.courtlistener.com/api/rest/v3/opinions/?cluster__date_filed__gte=2023-01-01&cluster__docket__court__id=ill&cluster__precedential_status=Published
B…