API Data Mismatch: Incorrect Party Listings for Docket 68118928 #4016
Replies: 5 comments 4 replies
-
The way parties link to dockets is one of the more complicated relationships in our data. I'm seeing a couple things that are weird here:
Weird stuff. I'm hopeful that this is just us using the API incorrectly. We'll continue investigating. Thanks for raising this. |
Beta Was this translation helpful? Give feedback.
-
OK, I understand what it's doing, but I don't have an opinion about whether it's right yet. The API is not returning more than 20 results. It's returning 3 parties. The problem is that one of the parties is the United States, and for each party, the API is returning all of the attorneys that ever represented that party (not just the ones that repped the party in that case). As you might expect, a LOT of attorneys have repped the U.S. over the years.... |
Beta Was this translation helpful? Give feedback.
-
Thinking aloud here, I think it might just be doing the right thing. The API is designed to return parties, and that's precisely what it's doing. It's returning the parties (and everything we know about them) from the case you selected. I'm trying to think if there's a smart way that we could make it only return the attorneys in a selected case. Maybe a new URL parameter that works with the
Or, perhaps it's better to do that by default when you filter to a docket? But if we do that, the documentation has to explain that a magic thing is happening. My gut is that this is better, but it would be a breaking change. We're doing v4 of the API right now though, so the timing is good for breaking changes. PS: Doing |
Beta Was this translation helpful? Give feedback.
-
Gotcha! On the non API endpoint (https://www.courtlistener.com/docket/5541058/united-states-v-the-state-of-west-virginia/), how is the US being rendered as a party? How does it know to not list every single attorney in the US party? |
Beta Was this translation helpful? Give feedback.
-
Well in that case, the context is obviously the docket, so we filter to just the attorneys for that party on that docket. Here, the context is the parties for that docket, which means we filter to all parties on that docket, and include all the attorneys for those parties. |
Beta Was this translation helpful? Give feedback.
-
While reviewing the docket for [United States v. The State of West Virginia] (https://www.courtlistener.com/docket/5541058/united-states-v-the-state-of-west-virginia/), I've encountered a discrepancy between the number of parties listed in different API endpoints.
The API's parties endpoint (https://www.courtlistener.com/api/rest/v3/parties/?docket__id=5541058) for this docket should list 4 defendants and 4 plaintiffs if consistent with what's displayed on the docket page. However, the parties endpoint is showing an unexpectedly large number of entries, nearly including every person in the database.
Could someone investigate why the parties API is returning a complete or near-complete list of individuals from the database for this specific docket? Assistance in resolving this discrepancy would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions