Skip to main content
POST
/
legal
/
v1
/
similar
Find similar legal sources
curl --request POST \
  --url https://api.case.dev/legal/v1/similar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "jurisdiction": "<string>",
  "numResults": 10,
  "startPublishedDate": "2023-12-25"
}
'
{
  "sourceUrl": "<string>",
  "jurisdiction": "<string>",
  "found": 123,
  "similarSources": [
    {
      "url": "<string>",
      "title": "<string>",
      "snippet": "<string>",
      "publishedDate": "<string>",
      "source": "<string>"
    }
  ],
  "hint": "<string>"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json

Source URL and filtering options

url
string<uri>
required

URL of a legal document to find similar sources for

jurisdiction
string

Optional jurisdiction ID to filter results

numResults
integer
default:10

Number of results 1-25 (default: 10)

Required range: 1 <= x <= 25
startPublishedDate
string<date>

Optional ISO date to find only newer documents (e.g., "2020-01-01")

Response

Similar sources found successfully

sourceUrl
string

Original source URL

jurisdiction
string

Jurisdiction filter applied

found
integer

Number of similar sources found

similarSources
object[]
hint
string

Usage guidance