-
I'm looking to see how many cases are filed in each bankruptcy court per day. I messed around with the API for a bit and read the docs. And it seemed to be working for me to get opinions. But of course few cases ever go to opinion. I just want to see the metadata for each case filing, not any of the documents from it. So here's an example of trying to pull up all the cases filed on January 5, 2023 in Connecticut bankruptcy court: Steps to reproduce in R:
This yields the html for this error: "Hmmm, something didn't work, sorry :/ Am I missing something here? Does anyone have code to pull just one day's worth of case names or case numbers or something? Thanks so much for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Ultimately, I suspect the RECAP database in Courtlistener is not going to be sufficiently comprehensive for this purpose. Generally speakingPrimarily, cases are contributed when users upload them using the RECAP extension, and that is also supplemented by the courts' RSS feeds. Many if not most cases are not uploaded by users, because there are a lot of cases that are not terribly interesting to people who use the RECAP extension. Many courts do have RSS feeds and some of them (such as But looking at https://www.courtlistener.com/?q=&type=r&order_by=score%20desc&docket_number=23-30004%20&court=ctd%20ctb , the search alleges that 23-30004 was Date Filed Jan. 4, 2023. But the docket page, https://www.courtlistener.com/docket/66701592/alexis-hernandez/ says Date Filed Jan 5., 2023. CMECF says Jan. 5. If I wanted this information, I would probably try to scrape it from CMECF directly, although there are a lot of Gotchas. For instance, in Connecticut, according to the District Court, there are three office codes https://ecf.ctd.uscourts.gov/cgi-bin/CourtInfo.pl :
And Conn. Bk. court uses the first digit of the case number to indicate the office code, in addition to the office code itself. I don't do enough BK to know if all BK courts use this convention (but based on the fact that only a handful of the district courts do something similar, I would tend to doubt it), but the point is that it is tricky and every district has its own way of doing things. APII am the worst possible person to address questions of the API, but you are using the I'd recommend starting with the HTML interface first. If you'd tried https://www.courtlistener.com/api/rest/v3/recap-query/? you'd have gotten back:
which definitely hints at issues. But my recommendations here are not worth the paper they are printed on. |
Beta Was this translation helpful? Give feedback.
-
The CourtInfo page for each court, referenced above, indicates the alleged comprehensiveness of the RSS feed, e.g. https://ecf.ctb.uscourts.gov/cgi-bin/CourtInfo.pl:
Or if you look at the top of the RSS feed itself, https://ecf.ctb.uscourts.gov/cgi-bin/rss_outside.pl:
Aside from EDNY's district court, they might even be accurate! |
Beta Was this translation helpful? Give feedback.
Right! For that, I'd use the docket endpoint and do something like:
https://www.courtlistener.com/api/rest/v3/dockets/?court=ctb&date_filed=2023-08-25
That should do it, I think.