Skip to main content
POST
/
legal
/
v1
/
citations-from-url
Extract citations from URL
curl --request POST \
  --url https://api.case.dev/legal/v1/citations-from-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "url": "<string>",
  "title": "<string>",
  "totalCitations": 123,
  "citations": {
    "cases": [
      {
        "type": "<string>",
        "citation": "<string>",
        "count": 123
      }
    ],
    "statutes": [
      {
        "type": "<string>",
        "citation": "<string>",
        "count": 123
      }
    ],
    "regulations": [
      {
        "type": "<string>",
        "citation": "<string>",
        "count": 123
      }
    ]
  },
  "externalLinks": [
    "<string>"
  ],
  "hint": "<string>"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json

Document URL to extract citations from

url
string<uri>
required

URL of the legal document to extract citations from

Response

Citations extracted successfully

url
string

Source document URL

title
string

Document title

totalCitations
integer

Total citations found

citations
object

External links found in the document

hint
string

Usage guidance