freelawproject / foresight

Where we discuss and prioritize new features
2 stars 1 forks source link

New Feature: Allow Pacer Document purchases using pacer_doc_id #47

Open ERosendo opened 1 week ago

ERosendo commented 1 week ago

Headline

what would an ideal headline be for a press release?

What would we want to announce?

What is the Feature?

New logic for the recap-fetch endpoint that enables users to initiate a document purchase by simply providing the court ID and Pacer document ID from a PACER link.

What Problem Might it Solve?

The current implementation of the fetch endpoint requires users to send the document ID from our database. This can be time-consuming, especially for users who have a PACER link but need to make additional API calls to retrieve the correct document ID.

For more information on the current endpoint, please refer to the documentation: https://www.courtlistener.com/help/api/rest/recap/#pdf.

The new feature simplifies the process by allowing users to directly input information from their PACER link, saving time and effort.

Describe a Scenario in Which the Feature Might be Used

A user has a PACER link for a specific document they want to purchase. Instead of manually searching for the document ID using other APIs endpoints, they can directly input the court ID and Pacer document ID from the link into the fetch endpoint. Our code will then locate the matching document and initiate the purchase process.

Technical Requirements

mlissner commented 1 week ago

One extra complication here is that a feature like this would allow people to buy documents from PACER for which we lack the docket. That'd make them orphan documents, which would be confusing for them, but it's probably something we can document.

One solution might be to automatically go get the docket when this happens. We could do that, I guess, by grabbing the docket number from the header of the PDF after we bought it, but, well, this is getting complicated now...