curl --request GET \
--url https://api.example.com/api/v1/repositories/{repo_id}/dependents \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/api/v1/repositories/{repo_id}/dependents"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/api/v1/repositories/{repo_id}/dependents', 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.example.com/api/v1/repositories/{repo_id}/dependents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.example.com/api/v1/repositories/{repo_id}/dependents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.example.com/api/v1/repositories/{repo_id}/dependents")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/repositories/{repo_id}/dependents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"confidence": 123,
"dependency_type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"raw_reference": "<string>",
"resolved": true,
"source_file": "<string>",
"source_line": 123,
"version_constraint": "<string>",
"dependency_relationship": "<string>",
"target_artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_repository_name": "<string>",
"version_constraint_state": "absent"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}List the repositories that directly depend on this repository.
Get the declarations in other repositories that resolve to this repository, one row per declaration.
Each row is one use: the consuming repository is target_repository_id /
target_repository_name (count distinct values of it for the number of
dependent repositories), and source_file / source_line locate the use in
it. Rows are deduplicated at read time on declaration identity — consumer
repository, dependency type, version constraint, source file, raw reference and
source line — so a consumer that calls several GitHub Actions or reusable
workflows of this repository, or the same one on several lines, appears once per
use. Group by lower(raw_reference) to list consumers per action, workflow or
package: for GitHub Actions it is the full uses: path, such as
grafana/shared-workflows/actions/send-slack-message. A row whose consumer was
last scanned before v1.25.0 carries only the bare owner/repo there.
Paginated via limit / offset (default 100, max 500). X-Total-Count
carries the post-dedup total of these declarations, not of repositories.
curl --request GET \
--url https://api.example.com/api/v1/repositories/{repo_id}/dependents \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/api/v1/repositories/{repo_id}/dependents"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/api/v1/repositories/{repo_id}/dependents', 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.example.com/api/v1/repositories/{repo_id}/dependents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.example.com/api/v1/repositories/{repo_id}/dependents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.example.com/api/v1/repositories/{repo_id}/dependents")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/repositories/{repo_id}/dependents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"confidence": 123,
"dependency_type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"raw_reference": "<string>",
"resolved": true,
"source_file": "<string>",
"source_line": 123,
"version_constraint": "<string>",
"dependency_relationship": "<string>",
"target_artifact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_repository_name": "<string>",
"version_constraint_state": "absent"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Authorizations
Headers
Path Parameters
Query Parameters
Maximum items to return.
1 <= x <= 500Items to skip.
x >= 0Drop declarations known to be transitive — Go require lines marked // indirect, i.e. modules pulled in by another dependency rather than imported by this repo's own code. Off by default, because a transitive dependency still propagates breakage and belongs in a blast radius. Rows whose ecosystem cannot express transitivity (dependency_relationship: null) are always kept. X-Total-Count follows the filter.
Cookies
Response
Successful Response
