Skip to main content
POST
/
search
/
v1
/
similar
Find similar content
curl --request POST \
  --url https://api.case.dev/search/v1/similar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "numResults": 10,
  "includeDomains": [
    "<string>"
  ],
  "excludeDomains": [
    "<string>"
  ],
  "startCrawlDate": "2023-12-25",
  "endCrawlDate": "2023-12-25",
  "startPublishedDate": "2023-12-25",
  "endPublishedDate": "2023-12-25",
  "includeText": true,
  "contents": "<string>"
}
'
{
  "results": [
    {
      "url": "<string>",
      "title": "<string>",
      "snippet": "<string>",
      "similarityScore": 123,
      "publishedDate": "<string>",
      "domain": "<string>",
      "text": "<string>"
    }
  ],
  "totalResults": 123,
  "processingTime": 123
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
url
string<uri>
required

The URL to find similar content for

numResults
integer
default:10

Number of similar results to return

Required range: 1 <= x <= 50
includeDomains
string[]

Only search within these domains

excludeDomains
string[]

Exclude results from these domains

startCrawlDate
string<date>

Only include pages crawled after this date

endCrawlDate
string<date>

Only include pages crawled before this date

startPublishedDate
string<date>

Only include pages published after this date

endPublishedDate
string<date>

Only include pages published before this date

includeText
boolean

Whether to include extracted text content in results

contents
string

Additional content to consider for similarity matching

Response

Successfully found similar content

results
object[]
totalResults
integer
processingTime
number