Vai al contenuto
GET /v1/justices

All justices

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/oyez-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/oyez-api/v1/justices" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/oyez-api/v1/justices", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/oyez-api/v1/justices");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/oyez-api/v1/justices",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 30,
        "justices": [
            {
                "id": "ketanji_brown_jackson",
                "href": "https://api.oyez.org/people/ketanji_brown_jackson",
                "name": "Ketanji Brown Jackson",
                "last_name": "Jackson",
                "view_count": 0
            },
            {
                "id": "amy_coney_barrett",
                "href": "https://api.oyez.org/people/amy_coney_barrett",
                "name": "Amy Coney Barrett",
                "last_name": "Barrett",
                "view_count": 0
            },
            {
                "id": "brett_m_kavanaugh",
                "href": "https://api.oyez.org/people/brett_m_kavanaugh",
                "name": "Brett M. Kavanaugh",
                "last_name": "Kavanaugh",
                "view_count": 0
            },
            {
                "id": "neil_gorsuch",
                "href": "https://api.oyez.org/people/neil_gorsuch",
                "name": "Neil Gorsuch",
                "last_name": "Gorsuch",
                "view_count": 0
            },
            {
                "id": "elena_kagan",
                "href": "https://api.oyez.org/people/elena_kagan",
                "name": "Elena Kagan",
                "last_name": "Kagan",
                "view_count": 0
            },
            {
                "id": "sonia_sotomayor",
                "href": "https://api.oyez.org/people/sonia_sotomayor",
                "name": "Sonia Sotomayor",
                "last_name": "Sotomayor",
                "view_count": 0
            },
            {
                "id": "samuel_a_alito_jr",
                "href": "https://api.oyez.org/people/samuel_a_alito_jr",
                "name": "Samuel A. Alito, Jr.",
                "last_name": "Alito",
                "view_count": 0
            },
            {
                "id": "john_g_roberts_jr",
                "href": "https://api.oyez.org/people/john_g_roberts_jr",
                "name": "John G. Roberts, Jr.",
                "last_name": "Roberts",
                "view_count": 0
            },
            {
                "id": "stephen_g_breyer",
                "href": "https://api.oyez.org/people/stephen_g_breyer",
                "name": "Stephen G. Breyer",
                "last_name": "Breyer",
                "view_count": 0
            },
            {
                "id": "ruth_bader_ginsburg",
                "href": "https://api.oyez.org/people/ruth_bader_ginsburg",
                "name": "Ruth Bader Ginsburg",
                "last_name": "Ginsburg",
                "view_count": 0
            },
            {
                "id": "clarence_thomas",
                "href": "https://api.oyez.org/people/clarence_thomas",
                "name": "Clarence Thomas",
                "last_name": "Thomas",
                "view_count": 0
            },
            {
                "id": "david_h_souter",
                "href": "htt
…