Skip to main content
POST
/
v1
/
company-ratios-ttm
/
query
Company Ratios TTM
curl --request POST \
  --url https://api.bigdata.com/v1/company-ratios-ttm/query \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "identifier": {
    "type": "rp_entity_id",
    "value": "4A6F00"
  }
}
'
import requests

url = "https://api.bigdata.com/v1/company-ratios-ttm/query"

payload = { "identifier": {
"type": "rp_entity_id",
"value": "4A6F00"
} }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({identifier: {type: 'rp_entity_id', value: '4A6F00'}})
};

fetch('https://api.bigdata.com/v1/company-ratios-ttm/query', 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.bigdata.com/v1/company-ratios-ttm/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identifier' => [
'type' => 'rp_entity_id',
'value' => '4A6F00'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.bigdata.com/v1/company-ratios-ttm/query"

payload := strings.NewReader("{\n \"identifier\": {\n \"type\": \"rp_entity_id\",\n \"value\": \"4A6F00\"\n }\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.bigdata.com/v1/company-ratios-ttm/query")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"identifier\": {\n \"type\": \"rp_entity_id\",\n \"value\": \"4A6F00\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bigdata.com/v1/company-ratios-ttm/query")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identifier\": {\n \"type\": \"rp_entity_id\",\n \"value\": \"4A6F00\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "results": [
    {
      "rp_entity_id": "<string>",
      "target_identifier_id": "<string>",
      "gross_profit_margin_ttm": 0.589,
      "ebit_margin_ttm": 0.377,
      "ebitda_margin_ttm": 0.425,
      "operating_profit_margin_ttm": 0.327,
      "pretax_profit_margin_ttm": 0.376,
      "continuous_operations_profit_margin_ttm": 0.311,
      "net_profit_margin_ttm": 0.311,
      "bottom_line_profit_margin_ttm": 0.311,
      "receivables_turnover_ttm": 6.747,
      "payables_turnover_ttm": 18.268,
      "inventory_turnover_ttm": 0,
      "fixed_asset_turnover_ttm": 1.708,
      "asset_turnover_ttm": 0.74,
      "current_ratio_ttm": 1.904,
      "quick_ratio_ttm": 1.904,
      "solvency_ratio_ttm": 0.958,
      "cash_ratio_ttm": 0.241,
      "price_to_earnings_ratio_ttm": 26.708,
      "price_to_earnings_growth_ratio_ttm": 5.761,
      "forward_price_to_earnings_growth_ratio_ttm": 2.066,
      "price_to_book_ratio_ttm": 8.505,
      "price_to_sales_ratio_ttm": 8.292,
      "price_to_free_cash_flow_ratio_ttm": 46.154,
      "price_to_operating_cash_flow_ratio_ttm": 23.086,
      "debt_to_assets_ratio_ttm": 0.083,
      "debt_to_equity_ratio_ttm": 0.115,
      "debt_to_capital_ratio_ttm": 0.103,
      "long_term_debt_to_capital_ratio_ttm": 0.061,
      "financial_leverage_ratio_ttm": 1.383,
      "working_capital_turnover_ratio_ttm": 4.975,
      "operating_cash_flow_ratio_ttm": 1.531,
      "operating_cash_flow_sales_ratio_ttm": 0.36,
      "free_cash_flow_operating_cash_flow_ratio_ttm": 0.499,
      "debt_service_coverage_ratio_ttm": 29.641,
      "interest_coverage_ratio_ttm": 301.915,
      "short_term_operating_cash_flow_coverage_ratio_ttm": 32.556,
      "operating_cash_flow_coverage_ratio_ttm": 3.209,
      "capital_expenditure_coverage_ratio_ttm": 1.996,
      "dividend_paid_and_capex_coverage_ratio_ttm": 1.74,
      "dividend_payout_ratio_ttm": 0.085,
      "dividend_yield_ttm": 0.003,
      "enterprise_value_ttm": 3100393856350,
      "revenue_per_share_ttm": 30.638,
      "net_income_per_share_ttm": 9.534,
      "interest_debt_per_share_ttm": 3.471,
      "cash_per_share_ttm": 7.849,
      "book_value_per_share_ttm": 29.939,
      "tangible_book_value_per_share_ttm": 27.271,
      "shareholders_equity_per_share_ttm": 29.939,
      "operating_cash_flow_per_share_ttm": 11.03,
      "capex_per_share_ttm": 5.525,
      "free_cash_flow_per_share_ttm": 5.505,
      "net_income_per_ebt_ttm": 0.827,
      "ebt_per_ebit_ttm": 1.151,
      "price_to_fair_value_ttm": 8.505,
      "debt_to_market_cap_ttm": 0.009,
      "effective_tax_rate_ttm": 0.173,
      "enterprise_value_multiple_ttm": 19.654,
      "dividend_per_share_ttm": 0.82
    }
  ],
  "errors": [
    {
      "message": "<string>"
    }
  ],
  "metadata": {
    "request_id": "<string>",
    "timestamp": "<string>"
  }
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
identifier
Identifier · object
required

An object containing the identifier value(s) and their type for the Company Ratios TTM tool.

Response

200 - application/json

Successful Response

results
CompanyRatiosTTM · object[]
required
errors
ErrorDetail · object[] | null
metadata
Metadata · object | null