Search Companies
curl --request GET \
--url https://api.example.com/v1/companiesimport requests
url = "https://api.example.com/v1/companies"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/companies', 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/v1/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/v1/companies"
req, _ := http.NewRequest("GET", url, nil)
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/v1/companies")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"meta": {
"total": 123,
"limit": 123,
"offset": 123
}
}Companies
Search Companies
Filter and retrieve companies
GET
/
v1
/
companies
Search Companies
curl --request GET \
--url https://api.example.com/v1/companiesimport requests
url = "https://api.example.com/v1/companies"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/companies', 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/v1/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/v1/companies"
req, _ := http.NewRequest("GET", url, nil)
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/v1/companies")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{}
],
"meta": {
"total": 123,
"limit": 123,
"offset": 123
}
}Overview
Search and filter companies by leverage, sector, debt metrics, and more. Supports field selection for optimized responses.Request
Response
Examples
curl "https://api.debtstack.ai/v1/companies?ticker=AAPL,MSFT,GOOGL,AMZN,NVDA,META,TSLA&fields=ticker,name,net_leverage_ratio&sort=-net_leverage_ratio&limit=1" \
-H "X-API-Key: ds_xxxxx"
import requests
response = requests.get(
"https://api.debtstack.ai/v1/companies",
params={
"ticker": "AAPL,MSFT,GOOGL,AMZN,NVDA,META,TSLA",
"fields": "ticker,name,net_leverage_ratio",
"sort": "-net_leverage_ratio",
"limit": 1
},
headers={"X-API-Key": "ds_xxxxx"}
)
print(response.json())
const response = await fetch(
"https://api.debtstack.ai/v1/companies?" +
new URLSearchParams({
ticker: "AAPL,MSFT,GOOGL,AMZN,NVDA,META,TSLA",
fields: "ticker,name,net_leverage_ratio",
sort: "-net_leverage_ratio",
limit: "1"
}),
{
headers: { "X-API-Key": "ds_xxxxx" }
}
);
const data = await response.json();
console.log(data);
Response
{
"data": [
{
"ticker": "TSLA",
"name": "Tesla, Inc.",
"net_leverage_ratio": 1.8
}
],
"meta": {
"total": 7,
"limit": 1,
"offset": 0,
"filters_applied": {
"ticker": ["AAPL", "MSFT", "GOOGL", "AMZN", "NVDA", "META", "TSLA"]
}
}
}
Use Cases
Find Highly Leveraged Companies
curl "https://api.debtstack.ai/v1/companies?min_leverage=4.0&fields=ticker,name,leverage_ratio,net_leverage_ratio&sort=-leverage_ratio" \
-H "X-API-Key: ds_xxxxx"
Screen by Sector
curl "https://api.debtstack.ai/v1/companies?sector=Energy&has_floating_rate=true&fields=ticker,name,total_debt,secured_debt" \
-H "X-API-Key: ds_xxxxx"
Near-Term Maturity Wall
curl "https://api.debtstack.ai/v1/companies?has_near_term_maturity=true&fields=ticker,name,debt_due_1yr,debt_due_2yr,nearest_maturity" \
-H "X-API-Key: ds_xxxxx"

