Skip to content

What's the best endpoint to get list of cases, filtered by district and nature of suit, along with the complaints for those cases? #3239

Answered by mlissner
ghing asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for asking. A few replies:

* What endpoint should I use if I want to retrieve all cases in a particular district that match a particular nature of suit pattern? I'm looking for results similar to this search using the web form: 

Probably the easiest thing to do with that is convert it to an API request by changing the URL a bit. This has the same GET params but returns JSON instead of HTML:

https://www.courtlistener.com/api/rest/v3/search/?q=&type=r&order_by=dateFiled%20desc&nature_of_suit=Prisoner%3APrison%20conditions&court=azd

You could also tweak this to get back one result per case by changing it to type=d (that only works on API results, I believe).

* Is it possible to li…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ghing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants