curl --request GET \
--url https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric', 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.beta.dealroom.app/analytics/aggregate/{source}/multi-metric",
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.beta.dealroom.app/analytics/aggregate/{source}/multi-metric"
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.beta.dealroom.app/analytics/aggregate/{source}/multi-metric")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric")
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{
"data": [
{}
],
"query_info": {
"source": "<string>",
"group_by": "<string>",
"metrics": [
{
"label": "<string>",
"type": "<string>"
}
],
"total_groups": 123
},
"currency": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required — provide a valid bearer token."
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}
}{
"error": {
"code": "FILTER_PARSE_ERROR",
"message": "The request could not be processed — check the filter syntax and any identifiers."
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — retry after the delay in the `Retry-After` header."
}
}Multi-metric aggregate
Return multiple labeled metrics from a single SQL query, each with optional per-metric filters using aggregate FILTER (WHERE …) clauses. Supports all metric types (COUNT, SUM, AVG, MEDIAN, MAX) and optional dimensional grouping (group_by).
Metric param format: metric=<label>,<metric_type>
- First segment = label (lowercase alphanumeric + underscore)
- Second segment = metric type (e.g.,
count,sum:total_funding,percentage:label_a/label_b)
Percentage metrics (percentage:numerator/denominator): Computes ROUND(numerator * 100.0 / NULLIF(denominator, 0), 2).
- Both referenced labels must be defined as non-percentage metrics in the same request.
- Percentage metrics cannot have per-metric filters (apply filters to the referenced metrics instead).
- Example:
metric=filtered,count&metric=total,count&metric=pct,percentage:filtered/total
Per-metric filters (metric_filter param): metric_filter=<label>:<filter_expression>
- Uses the same AST filter syntax as the shared
filterparam - Example:
metric_filter=unicorns:is_unicorn[eq]:true - Compound:
metric_filter=funded:and(total_funding[gte]:100000,is_vc_backed[eq]:true)
group_by (optional): Dimension(s) to group by, comma-separated.
sort (optional): Sort by metric label or dimension. Prefix - for descending (default).
limit (optional): Max results when grouped (1-500, default 25).
Post-aggregation filter (metric_having param): Filter grouped rows by metric values.
- Format:
metric_having=<label>[op]:<value>where op is gt, gte, lt, lte, eq, neq - Repeatable for multiple conditions (AND semantics)
- Only valid when
group_byis present - Example:
metric_having=percentage[gt]:25&metric_having=filtered[gte]:5
Shared filters (filter param): Uses structured AST syntax, same as /analytics/aggregate/:source.
- Single filter:
filter=tag_id[eq]:42 - AND:
filter=and(tag_id[eq]:42,launch_year[gte]:2020) - OR:
filter=or(hq_location[eq]:133,hq_location[eq]:75)
Example — mixed metrics with group_by:
GET /analytics/aggregate/companies/multi-metric
?metric=total,count
&metric=unicorns,count
&metric=unicorn_funding,sum:total_funding
&metric_filter=unicorns:is_unicorn[eq]:true
&metric_filter=unicorn_funding:is_unicorn[eq]:true
&group_by=hq_country
&sort=-total
&limit=10
&filter=launch_year[gte]:2015
Example — flat (no group_by):
GET /analytics/aggregate/companies/multi-metric
?metric=total,count
&metric=unicorns,count
&metric=unicorn_funding,sum:total_funding
&metric_filter=unicorns:is_unicorn[eq]:true
&metric_filter=unicorn_funding:is_unicorn[eq]:true
Returns: { data: [{ total: 52341, unicorns: 1287, unicorn_funding: 3400000000000 }], query_info: { source: "companies", metrics: [...] } } — note that data is a single-element array even for the flat (no-group_by) variant, for shape consistency with the grouped response.
curl --request GET \
--url https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric', 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.beta.dealroom.app/analytics/aggregate/{source}/multi-metric",
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.beta.dealroom.app/analytics/aggregate/{source}/multi-metric"
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.beta.dealroom.app/analytics/aggregate/{source}/multi-metric")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.dealroom.app/analytics/aggregate/{source}/multi-metric")
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{
"data": [
{}
],
"query_info": {
"source": "<string>",
"group_by": "<string>",
"metrics": [
{
"label": "<string>",
"type": "<string>"
}
],
"total_groups": 123
},
"currency": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required — provide a valid bearer token."
}
}{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to perform this action."
}
}{
"error": {
"code": "FILTER_PARSE_ERROR",
"message": "The request could not be processed — check the filter syntax and any identifiers."
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded — retry after the delay in the `Retry-After` header."
}
}Authorizations
OAuth2 client-credentials flow against the Dealroom Auth0 tenant. Use the client_id / client_secret from a Programmatic API key. Tokens are valid for 24h — Swagger UI will reuse the same token across operations. Revoking or deactivating a key rejects it on the next request (within a ≤5-minute server-side cache window), not at token expiry.
Headers
Pin a Stripe-style date-based API version (YYYY-MM-DD). Omit to use the latest version (2026-09-01). A pinned version is supported for 30 days after it is superseded, after which it returns 400.
"2026-09-01"
Path Parameters
The source to aggregate
founders, investors, companies, funding-rounds, valuations, entities, fundings "companies"
Query Parameters
ISO 4217 currency code for monetary metric conversion. Defaults to USD.
"EUR"
Metric definition: label,metric_type. Repeat for multiple metrics. Types: count, count_distinct:field, sum:field, avg:field, median:field, p25:field, p75:field, percentage:numerator_label/denominator_label. Example: metric=total,count&metric=unicorns,count&metric=pct,percentage:unicorns/total
1"total,count"
Per-metric filter expression: :<filter_expression>. Example: metric_filter=unicorns:is_unicorn[eq]:true
1"unicorns:is_unicorn[eq]:true"
Post-aggregation filter: [op]:. Operators: gt, gte, lt, lte, eq, neq. Only valid with group_by. Example: metric_having=percentage[gt]:25
1"percentage[gt]:25"
Dimension(s) to group by, comma-separated. Omit for flat aggregation. Includes map_area — the startup-map choropleth dimension (requires an active ecosystem); its per-entity dots counterpart is GET /data/{companies|investors|universities}/geo.
1^[a-z][a-z0-9_.]*(?:,[a-z][a-z0-9_.]*)*$"hq_country"
Filter expression: and(key[op]:value,...), or(...). Example: and(tag_id[eq]:42,launch_year[gte]:2020)
"and(tag_id[eq]:42,launch_year[gte]:2020)"
Sort by metric label or 'dimension'. Prefix with - for descending
^-?[a-z][a-z0-9_]*$"-total"
Number of results to return (1-500, default 25)
"25"