Read published peer percentiles from consenting, threshold-protected cohorts.
/api/v2/benchmarking/comparisonsOnly published aggregates are exposed. Raw peer values and absolute contributed amounts are never returned.
benchmark:readThe playground uses deterministic isolated sandbox fixtures. It never queries production workspace data and does not require you to paste an API secret into the browser.
Sign in to run{
"data": [
{
"metric_key": "net_margin_pct",
"peer_count": 42,
"p50": 15.4000000000000003552713678800500929355621337890625,
"percentile_rank": 81
}
]
}curl -X GET \ https://equitygpt.app/api/v2/benchmarking/comparisons?metric_key=net_margin_pct \ -H "Authorization: Bearer $FINANCEGPT_API_KEY" \ -H "Content-Type: application/json"
import os, requests
url = "https://equitygpt.app/api/v2/benchmarking/comparisons?metric_key=net_margin_pct"
headers = {"Authorization": f"Bearer {os.environ['FINANCEGPT_API_KEY']}"}
response = requests.request("GET", url, headers=headers)
response.raise_for_status()
print(response.json())const response = await fetch('https://equitygpt.app/api/v2/benchmarking/comparisons?metric_key=net_margin_pct', {
method: 'GET',
headers: { Authorization: `Bearer ${process.env.FINANCEGPT_API_KEY}`, 'Content-Type': 'application/json' }
});
if (!response.ok) throw new Error(`FinanceGPT ${response.status}`);
console.log(await response.json());<?php
$ch = curl_init('https://equitygpt.app/api/v2/benchmarking/comparisons?metric_key=net_margin_pct');
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('FINANCEGPT_API_KEY'), 'Content-Type: application/json']]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) >= 400) throw new RuntimeException($response);
echo $response;Explorer gives immediate isolated sandbox access. Production plans require a commercial entitlement.
Create account