Skip to main content
POST
/
api
/
courtlistener
/
judges
/
search
/courtlistener/judges/search
curl --request POST \
  --url https://api.anysite.io/api/courtlistener/judges/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "name": "<string>",
  "court": "<string>",
  "dob_after": "<string>",
  "dob_before": "<string>",
  "dob_city": "<string>",
  "dob_state": "<string>",
  "school": "<string>",
  "appointer": "<string>",
  "order_by": "score desc"
}
'
import requests

url = "https://api.anysite.io/api/courtlistener/judges/search"

payload = {
"count": 2,
"timeout": 300,
"name": "<string>",
"court": "<string>",
"dob_after": "<string>",
"dob_before": "<string>",
"dob_city": "<string>",
"dob_state": "<string>",
"school": "<string>",
"appointer": "<string>",
"order_by": "score desc"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 2,
timeout: 300,
name: '<string>',
court: '<string>',
dob_after: '<string>',
dob_before: '<string>',
dob_city: '<string>',
dob_state: '<string>',
school: '<string>',
appointer: '<string>',
order_by: 'score desc'
})
};

fetch('https://api.anysite.io/api/courtlistener/judges/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/courtlistener/judges/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 2,
'timeout' => 300,
'name' => '<string>',
'court' => '<string>',
'dob_after' => '<string>',
'dob_before' => '<string>',
'dob_city' => '<string>',
'dob_state' => '<string>',
'school' => '<string>',
'appointer' => '<string>',
'order_by' => 'score desc'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.anysite.io/api/courtlistener/judges/search"

payload := strings.NewReader("{\n \"count\": 2,\n \"timeout\": 300,\n \"name\": \"<string>\",\n \"court\": \"<string>\",\n \"dob_after\": \"<string>\",\n \"dob_before\": \"<string>\",\n \"dob_city\": \"<string>\",\n \"dob_state\": \"<string>\",\n \"school\": \"<string>\",\n \"appointer\": \"<string>\",\n \"order_by\": \"score desc\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/courtlistener/judges/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 2,\n \"timeout\": 300,\n \"name\": \"<string>\",\n \"court\": \"<string>\",\n \"dob_after\": \"<string>\",\n \"dob_before\": \"<string>\",\n \"dob_city\": \"<string>\",\n \"dob_state\": \"<string>\",\n \"school\": \"<string>\",\n \"appointer\": \"<string>\",\n \"order_by\": \"score desc\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/courtlistener/judges/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 2,\n \"timeout\": 300,\n \"name\": \"<string>\",\n \"court\": \"<string>\",\n \"dob_after\": \"<string>\",\n \"dob_before\": \"<string>\",\n \"dob_city\": \"<string>\",\n \"dob_state\": \"<string>\",\n \"school\": \"<string>\",\n \"appointer\": \"<string>\",\n \"order_by\": \"score desc\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": 123,
    "@type": "CourtlistenerJudgeResult",
    "name": "<string>",
    "gender": "<string>",
    "religion": "<string>",
    "races": [],
    "aliases": [],
    "schools": [],
    "aba_ratings": [],
    "political_affiliations": [],
    "fjc_id": "<string>",
    "born_at": 123,
    "died_at": 123,
    "dob_city": "<string>",
    "dob_state": "<string>",
    "positions": [],
    "web_url": "<string>",
    "score": 123
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
name
string | null
court
string | null
dob_after
string | null
dob_before
string | null
dob_city
string | null
dob_state
string | null
school
string | null
appointer
string | null
selection_method
enum<string> | null
Available options:
e_part,
e_non_part,
a_pres,
a_gov,
a_legis
political_affiliation
enum<string> | null
Available options:
d,
r,
i,
g,
l,
f,
w,
j,
u,
z
order_by
enum<string>
default:score desc
Available options:
score desc,
name_reverse asc,
dob desc,
dob asc

Response

Successful Response

id
integer
required
@type
string
default:CourtlistenerJudgeResult
name
string | null
gender
string | null
religion
string | null
races
string[]
aliases
string[]
schools
string[]
aba_ratings
string[]
political_affiliations
string[]
fjc_id
string | null
born_at
integer | null
died_at
integer | null
dob_city
string | null
dob_state
string | null
positions
object[]
web_url
string | null
score
number | null