You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cl/api/templates/v2_rest-docs-vlatest.html
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ <h1>REST API – v4</h1>
62
62
<p>Note that when you press the button in your browser, you get an HTML result, but when you run <code>curl</code> you get a JSON object. This is <aclass="underline" href="#formats">discussed in more depth below</a>.</p>
63
63
<divclass="alert-warning alert">
64
64
<strong>Listen Up!</strong> Something else that's curious just happened. You didn't authenticate to the API. To encourage experimentation, many of our APIs are open by default. The biggest gotcha people have is that they forget to enable authentication before deploying their code. Don't make this mistake! Remember to add <ahref="#authentication" class="underline">authentication</a>.
65
-
</div>
65
+
</div>
66
66
<p>The APIs listed in this response can be used to make queries against our database or search engine.</p>
67
67
<p>To learn more about an API, you can send an <aclass="underline" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS">HTTP OPTIONS</a> request, like so:</p>
<p>Some of our APIs are only available to select users. If you need greater access to these APIs, <aclass="underline" href="{% url "contact" %}">please get in touch</a>.</p>
99
99
<p>All other endpoints are available according to the <aclass="underline" href="#rates">throttling</a> and <aclass="underline" href="#authentication">authentication</a> limitations listed below.</p>
<p>Authentication is necessary to monitor and throttle the system, and so we can assist with any errors that may occur.</p>
119
119
<p>Per our <aclass="underline" href="{% url "terms" %}#privacy">privacy policy</a>, we do not track your queries in the API, though we do collect statistical information for system monitoring.</p>
120
120
<p>There are currently three types of authentication available on the API:</p>
<p>You can see more examples of filters in <ahref="https://github.com/freelawproject/courtlistener/blob/main/cl/api/tests.py" target="_blank" class="underline">our automated tests</a>.</p>
251
251
</c-layout-with-navigation.section>
252
-
252
+
253
253
<c-layout-with-navigation.sectionid="ordering">
254
254
<h3>Ordering</h3>
255
255
<p>With the exception of the search API, you can see which fields can be used for ordering, by looking at the <code>ordering</code> key in an <code>OPTIONS</code> request. For example, the <code>Position</code> endpoint contains this:
@@ -278,13 +278,13 @@ <h3>Ordering</h3>
278
278
<p>Ordering by fields with duplicate values is non-deterministic. If you wish to order by such a field, you should provide a second field as a tie-breaker to consistently order results. For example, ordering by <code>date_filed</code> will not return consistent ordering for items that have the same date, but this can be fixed by ordering by <code>date_filed,id</code>. In that case, if two items have the same <code>date_filed</code> value, the tie will be broken by the <code>id</code> field.
279
279
</p>
280
280
</c-layout-with-navigation.section>
281
-
281
+
282
282
<c-layout-with-navigation.sectionid="counting">
283
283
<h3>Counting</h3>
284
284
<p>To retrieve the total number of items matching your query without fetching all the data, you can use the <code>count=on</code> parameter. This is useful for verifying filters and understanding the scope of your query results without incurring the overhead of retrieving full datasets.</p>
<p>To save bandwidth and increase serialization performance, fields can be limited by using the <code>fields</code> parameter with a comma-separated list of fields.</p>
@@ -343,7 +343,7 @@ <h3>Field Selection</h3>
343
343
</c-code>
344
344
<p>You can also exclude fields using <code>omit=educations,date_modified</code>. Unfortunately, this cannot currently be used for nested resources.</p>
345
345
</c-layout-with-navigation.section>
346
-
346
+
347
347
<c-layout-with-navigation.sectionid="pagination">
348
348
<h3>Pagination</h3>
349
349
<p>Most APIs can be paginated by using the <code>page</code> GET parameter, but that will be limited to 100 pages of results.</p>
@@ -408,7 +408,7 @@ <h3>PACER Data APIs</h3>
408
408
<p>We have almost half a billion PACER-related objects in the RECAP Archive including dockets, entries, documents, parties, and attorneys. Use these APIs to access and understand this data.</p>
<p>Use these APIs to gather data from PACER and to share your PACER data with the public.</p>
@@ -426,33 +426,33 @@ <h3>Judge APIs</h3>
426
426
<p>Use these APIs to query and analyze thousands of federal and state court judges, including their biographical information, political affiliations, education and employment histories, and more.</p>
<p>CourtListener is home to the largest collection of oral argument recordings on the Internet. Use these APIs to gather and analyze our collection.</p>
<p>Use this API to look up citations in CourtListener's database of millions of citations.</p>
446
446
<p>This API can look up either an individual citation or can parse and look up every citation in a block of text. This can be useful as a guardrail to help prevent hallucinated citations.</p>
<p>CourtListener is a scalable system for sending alerts by email or <ahref="{% url "webhooks_getting_started" %}" class="underline">webhook</a> based on search queries or for particular cases. Use these APIs to create, modify, list, and delete alerts.</p>
0 commit comments