Get Citing Cases
curl --request GET \
--url https://api.casebyte.ai/v1/cases/{id}/cited-by \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.casebyte.ai/v1/cases/{id}/cited-by"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.casebyte.ai/v1/cases/{id}/cited-by', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.casebyte.ai/v1/cases/{id}/cited-by",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.casebyte.ai/v1/cases/{id}/cited-by"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.casebyte.ai/v1/cases/{id}/cited-by")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.casebyte.ai/v1/cases/{id}/cited-by")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"case_id": "HKCFA_2021_12",
"total": 2,
"citing_cases": [
{
"case_id": "HKCA_2023_487",
"case_name": "Smith v AG",
"neutral_citation": "[2023] HKCA 487",
"publish_date": "2023-09-15",
"citation_text": "[2021] HKCFA 12"
},
{
"case_id": "HKCFI_2022_1843",
"case_name": "Lee v Commissioner of Police",
"neutral_citation": "[2022] HKCFI 1843",
"publish_date": "2022-07-04",
"citation_text": "[2021] HKCFA 12"
}
]
}
Cases
Get Citing Cases
Returns later judgments that cite the given case. Combines direct case-to-case citations with action-number citations (where the citing case mentioned an action number that wasn’t resolved to a case ID by the citation parser). Results are deduplicated by case_id and sorted by publish_date descending. Pagination is not supported — the full list is returned in a single response.
GET
/
v1
/
cases
/
{id}
/
cited-by
Get Citing Cases
curl --request GET \
--url https://api.casebyte.ai/v1/cases/{id}/cited-by \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.casebyte.ai/v1/cases/{id}/cited-by"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.casebyte.ai/v1/cases/{id}/cited-by', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.casebyte.ai/v1/cases/{id}/cited-by",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.casebyte.ai/v1/cases/{id}/cited-by"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.casebyte.ai/v1/cases/{id}/cited-by")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.casebyte.ai/v1/cases/{id}/cited-by")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"case_id": "HKCFA_2021_12",
"total": 2,
"citing_cases": [
{
"case_id": "HKCA_2023_487",
"case_name": "Smith v AG",
"neutral_citation": "[2023] HKCA 487",
"publish_date": "2023-09-15",
"citation_text": "[2021] HKCFA 12"
},
{
"case_id": "HKCFI_2022_1843",
"case_name": "Lee v Commissioner of Police",
"neutral_citation": "[2022] HKCFI 1843",
"publish_date": "2022-07-04",
"citation_text": "[2021] HKCFA 12"
}
]
}
Authorizations
Casebyte API key, prefixed with cb_live_. Generate one from your casebyte.ai dashboard.
Path Parameters
Case identifier — case ID, neutral citation, or action number. Same format as GET /v1/cases/{id}.