Skip to main content
POST
/
api
/
justia
/
opinions
/justia/opinions
curl --request POST \
  --url https://api.anysite.io/api/justia/opinions \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "opinion": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "case_title": "<string>",
    "@type": "JustiaOpinion",
    "citation": "<string>",
    "court": "<string>",
    "volume": 123,
    "page": 123,
    "year": 123,
    "decided_at": 123,
    "argued_at": [],
    "reargued_at": [],
    "primary_holding": "<string>",
    "facts": "<string>",
    "syllabus": "<string>",
    "annotation": "<string>",
    "justices": [],
    "text": "<string>",
    "url": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
opinion
string
required

U.S. Supreme Court opinion reference: citation (e.g. '347 U.S. 483'), volume/page (e.g. '347/483') or the Justia opinion URL

Minimum string length: 1
Example:

"347 U.S. 483"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
case_title
string
required
@type
string
default:JustiaOpinion
citation
string | null
court
string | null
volume
integer | null
page
integer | null
year
integer | null
decided_at
integer | null
argued_at
integer[]
reargued_at
integer[]
primary_holding
string | null
facts
string | null
syllabus
string | null
annotation
string | null
justices
object[]
text
string | null
url
string | null